vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Anncouncement Background Color (https://vborg.vbsupport.ru/showthread.php?t=136397)

optrex 01-12-2007 10:00 PM

Anncouncement Background Color
 
The best way to make your forum announcements stand out is to change the color of the background.

This template adjustment, hard codes the change to your template, making it more efficient when loading the page.

Note: Background colours may need to be different, depending on the style colour you are using. You can achieve this by modifiying the template in each style.

Open "threadbit announcement" from within the threadbit templates.

Find:
Code:

<td class="alt2" colspan="$announcecolspan">
replace class="alt2" with:
Code:

bgcolor="#FFFFFF"
where FFFFFF is equal to the html color code you wish to use.

optrex 01-13-2007 04:14 PM

Using a background image: https://vborg.vbsupport.ru/showpost....07&postcount=9
Modification for Sticky background colour: https://vborg.vbsupport.ru/showpost....2&postcount=10

grecostimpy 01-15-2007 04:47 PM

I like this, but wouldn't it be better do with CSS?

optrex 01-15-2007 05:05 PM

Yes you could use CSS, its easy enough to do. Just change the code as needed.

taumau 01-24-2007 08:46 PM

Can this be done to Sticky Threads?

maxicep 01-29-2007 09:06 AM

Quote:

Originally Posted by taumau (Post 1166637)
Can this be done to Sticky Threads?

i 'm searching this too.

optrex 01-29-2007 10:08 AM

Quote:

Originally Posted by taumau (Post 1166637)
Can this be done to Sticky Threads?

I can't see anyway of doing this for stickies atm, but I have a mod on which uses different templates. I'll try and have another look if I get time.

stan111 01-29-2007 09:11 PM

what about image?

optrex 01-31-2007 10:46 AM

Quote:

Originally Posted by stan111 (Post 1170064)
what about image?

normal html options should be used

Code:

background="/imageurl.jpg"

optrex 01-31-2007 11:02 AM

Quote:

Originally Posted by taumau (Post 1166637)
Can this be done to Sticky Threads?

In the threadbit template find:

Code:

<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">
replace with:
Code:

<if condition="$thread['sticky'] == 1">
    <td bgcolor="#xxxxxx" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
<else />
    <td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
</if>

where bgcolor="#XXXXXX" is the hex color of your choice


All times are GMT. The time now is 01:58 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.01275 seconds
  • Memory Usage 1,734KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete