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

taumau 02-02-2007 09:53 AM

Quote:

Originally Posted by optrex (Post 1171207)
normal html options should be used

Code:

background="/imageurl.jpg"

Thank you! :)

Cybershaolin 02-03-2007 04:15 AM

Quote:

Originally Posted by optrex (Post 1171212)
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

Thanks a lot. I'd like to be able to do that for the subscribed threads. How to achieve this?

optrex 03-19-2007 01:13 PM

Not sure at the moment, I'll try and ake a look for you over the next few days

Cybershaolin 03-19-2007 05:44 PM

Thanks :)

ndut 12-25-2007 05:50 AM

done !! thx

Symmetrical? 12-26-2007 09:25 PM

Princeton done this modifications.

Derek Chai 01-12-2008 04:42 PM

Can you make it so that the staff "user" can specify what color the want their sticky's to be like red blue green? Sticky/annoucement.

optrex 01-12-2008 09:06 PM

Quote:

Originally Posted by Symmetrical? (Post 1409725)
Princeton done this modifications.

Yes you are correct. Princeton has made a similar hack to this, however, it has some subtle differences and was made over 5 months after this one. You can find it here https://vborg.vbsupport.ru/showthread.php?t=149780

Priceton is a good man and I have some of his hacks installed on my site, but I do object to you coming on here trying to make out I've ripped him off.

optrex 01-12-2008 09:17 PM

Quote:

Originally Posted by Derek Chai (Post 1420227)
Can you make it so that the staff "user" can specify what color the want their sticky's to be like red blue green? Sticky/annoucement.

It would require a lot more coding as the inline moderation would need to have multiple sticky choices. It could be done by copying the phrases and templates to create a sticky 1, sticky 2, sticky 3 then having a colour for each one. But I'm not sure how practical it would be.

You might have better results using something like global threads instead with a different colour prefix, but then I would wait for 3.7 to go to GOLD before looking into that, as the new prefix system could do it all for you anyway.

adpar 09-21-2009 07:16 PM

is this mod safe to use with 3.8.4 ?


All times are GMT. The time now is 06:25 PM.

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.01269 seconds
  • Memory Usage 1,757KB
  • 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
  • (8)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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