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)

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 05:15 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.01121 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)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