Log in

View Full Version : Is it possible to add custom background colours to notices?


dannykilla
05-05-2008, 11:14 PM
Hi,

I was wondering is it possible to add custom colours to different notices?

i.e. if I had a notice saying "skafjsakfjasklfjasklfjakfjs" to all users who are in the usergroup "registered", could I set it so that the notice had a background colour of lets say for example Blue and the text was Dark Blue?
And also I had another notice saying "ruwqioruioqruwioqruwoqiruqwioru" to the moderators usergroup and I wanted it say a light red background and the text was white, can this be done?

Thanks
Danny

dannykilla
05-22-2008, 10:35 AM
Anyone have any idea?

veenuisthebest
05-22-2008, 01:30 PM
create two different notices for both and use HTML to add background color.

you can do so if you use the table tag and add bg color to it

<TABLE border=1 bgcolor=#FFFFFF>

The whole message body here

<table>

dannykilla
05-22-2008, 01:45 PM
thanks but that didn't work?

veenuisthebest
05-22-2008, 01:50 PM
it has to, coz I am using it !!

I hope you did not forgot to put the <tr><td>........</td></tr>

do this:-

<TABLE bgcolor=#FFFFFF>
<tr><td>
<SPAN style="color:black; font-size:8pt;">
MESSAGE
BODY
HERE
</SPAN></td></tr><table>

dannykilla
05-22-2008, 02:12 PM
awesome thanks m8,

Is it possible to add a border without the shadow look?

veenuisthebest
05-22-2008, 02:23 PM
Is it possible to add a border without the shadow look?

nice question !! coz even I wanted to get rid of that when I first implemented the bg color. Its not the shadow color but is the default bg color set by vB in navbar.

i have an answer for this.
you can easily do so, but I don't think you'd be able to change the colors then.. that one color would be fixed for the bg.

go to navbar template->find:-

<if condition="$show['notices']">


and perform some nice editing here. I have simply deleted the whole code here and replaced it with mine. Use something like

<td style="width:100%; background-color:#000000">

This would change the color behind