PDA

View Full Version : Anncouncement Background Color


optrex
01-12-2007, 10:00 PM
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
01-13-2007, 04:14 PM
Using a background image: https://vborg.vbsupport.ru/showpost.php?p=1171207&postcount=9
Modification for Sticky background colour: https://vborg.vbsupport.ru/showpost.php?p=1171212&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
Can this be done to Sticky Threads?

i 'm searching this too.

optrex
01-29-2007, 10:08 AM
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
what about image?

normal html options should be used

background="/imageurl.jpg"

optrex
01-31-2007, 11:02 AM
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-02-2007, 09:53 AM
normal html options should be used

background="/imageurl.jpg"

Thank you! :)

Cybershaolin
02-03-2007, 04:15 AM
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
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
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
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 ?