vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is it possible to add custom background colours to notices? (https://vborg.vbsupport.ru/showthread.php?t=178248)

dannykilla 05-05-2008 11:14 PM

Is it possible to add custom background colours to notices?
 
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

Code:

<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:-

Code:

<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

Quote:

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:-

Code:

<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

Code:

<td style="width:100%; background-color:#000000">
This would change the color behind


All times are GMT. The time now is 04:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01096 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete