PDA


View Full Version : How Do I Change a Module's Background Color?


CheeseKate
11-28-2005, 03:06 PM
I've been searching through the forums for a few hours now and each time I find something that I think will help me out, I find out that it isn't really what I'm looking for.

I've included a .jpg attachment of what I'm trying to modify on my forum. I'm trying to modify the "Moderator Announcement" module, which is a BB code module. What I ideally want is to change the header's background color (ie: where it says "» Moderator Announcement"). I want to change it from grey to gold. What I'd settle for is changing the body background color (the light blue where the text of the Moderator Announcement module is).

I'm not sure if this is possible or not. If it is possible, how can I do it?

Thank you in advance for your help. :)

Brian
11-30-2005, 02:33 PM
You could edit your adv_portal_module_shell template and add an if condition that looked something like this around the class part:

class="<if condition="$mods['modid'] == X">newclassname<else />thead</if>"

You would need to change X there to the module id, then 'newclassname' to whatever class you want to use.

CheeseKate
12-05-2005, 11:26 AM
Ah, thank you, Brian. :) I'll give it a try when I get home from work.