Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Anncouncement Background Color Details »»
Anncouncement Background Color
Version: 1.00, by optrex optrex is offline
Developer Last Online: Mar 2011 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 01-12-2007 Last Update: Never Installs: 29
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-02-2007, 09:53 AM
taumau taumau is offline
 
Join Date: Aug 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by optrex View Post
normal html options should be used

Code:
background="/imageurl.jpg"
Thank you!
Reply With Quote
  #13  
Old 02-03-2007, 04:15 AM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by optrex View Post
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?
Reply With Quote
  #14  
Old 03-19-2007, 01:13 PM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure at the moment, I'll try and ake a look for you over the next few days
Reply With Quote
  #15  
Old 03-19-2007, 05:44 PM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #16  
Old 12-25-2007, 05:50 AM
ndut ndut is offline
 
Join Date: Sep 2007
Location: Indonesia
Posts: 335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

done !! thx
Reply With Quote
  #17  
Old 12-26-2007, 09:25 PM
Symmetrical?'s Avatar
Symmetrical? Symmetrical? is offline
 
Join Date: Mar 2007
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Princeton done this modifications.
Reply With Quote
  #18  
Old 01-12-2008, 04:42 PM
Derek Chai Derek Chai is offline
 
Join Date: Aug 2007
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 01-12-2008, 09:06 PM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Symmetrical? View Post
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.
Reply With Quote
  #20  
Old 01-12-2008, 09:17 PM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Derek Chai View Post
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.
Reply With Quote
  #21  
Old 09-21-2009, 07:16 PM
adpar adpar is offline
 
Join Date: Jun 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this mod safe to use with 3.8.4 ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:24 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.10559 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete