PDA

View Full Version : Anncouncement Background Color


optrex
13 Jan 2007, 17:13
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:
<td class="alt2" colspan="$announcecolspan">


replace class="alt2" with:
bgcolor="#FFFFFF"

where FFFFFF is equal to the html color code you wish to use.

optrex
13 Jan 2007, 17:14
Using a background image: http://www.vbulletin.org/forum/showpost.php?p=1171207&postcount=9
Modification for Sticky background colour: http://www.vbulletin.org/forum/showpost.php?p=1171212&postcount=10

grecostimpy
15 Jan 2007, 17:47
I like this, but wouldn't it be better do with CSS?

optrex
15 Jan 2007, 18:05
Yes you could use CSS, its easy enough to do. Just change the code as needed.

taumau
24 Jan 2007, 21:46
Can this be done to Sticky Threads?

maxicep
29 Jan 2007, 10:06
Can this be done to Sticky Threads?

i 'm searching this too.

optrex
29 Jan 2007, 11:08
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
29 Jan 2007, 22:11
what about image?

optrex
31 Jan 2007, 11:46
what about image?

normal html options should be used

background="/imageurl.jpg"

optrex
31 Jan 2007, 12:02
Can this be done to Sticky Threads?

In the threadbit template find:

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

replace with:
<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 Feb 2007, 10:53
normal html options should be used

background="/imageurl.jpg"

Thank you! :)

Cybershaolin
03 Feb 2007, 05:15
In the threadbit template find:

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

replace with:
<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
19 Mar 2007, 14:13
Not sure at the moment, I'll try and ake a look for you over the next few days

Cybershaolin
19 Mar 2007, 18:44
Thanks :)

ndut
25 Dec 2007, 06:50
done !! thx

Symmetrical®
26 Dec 2007, 22:25
Princeton done this modifications.

Derek Chai
12 Jan 2008, 17:42
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
12 Jan 2008, 22:06
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 http://www.vbulletin.org/forum/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
12 Jan 2008, 22:17
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
21 Sep 2009, 20:16
is this mod safe to use with 3.8.4 ?