View Full Version : hot thread coloring
This is a tiny hack that changes the background color of a thread title in forumdisplay.php when it qualifies as a "hot thread".
NOTE: vB.org's replacements are automatically parsed in the attached text file. Wherever you see #F1F1F1, you may want to change that to { firstaltcolor } (without the spaces).
Xanthine
05-05-2002, 01:33 AM
Very nice, thank you.
dude, it just changes the background color of the title cell.
Originally posted by nicksaunders
dude, it just changes the background color of the title cell. it would still be nice to have a screenshot for those newbies to vB who dont know title cells are and everything...
Originally posted by nicksaunders
dude, it just changes the background color of the title cell.
others probley dont want to install it and se ethey dont want it...
also be cool instead of a diffrent table color, have it diffrent text color, ect mabey bold
it's easy to adapt this if that's what you're after
lordofgun
05-05-2002, 03:30 AM
on my forums, it's higlighting the background of EVERY cell in that column, not just the hot ones!
lordofgun
05-05-2002, 03:51 AM
i don't show the F1F1F1 in my template, i show {firstaltcolor} instead. is that why i'm having problems?
looking @ your "NFL Smackdown" forum, almost every single thread is a "hot thread" (look at the icons), so...?
looking over the code again, i don't see how this could do the highlighting incorrectly - it works the same as the icons
lordofgun
05-05-2002, 04:23 AM
oh geesh...i'm an idiot. I thought you meant it would highlight sticky threads.
i'm going to go practice my reading comprehension now. THANKS!
BTW, is there an easy way to change the bgcolor color of a stuck thread?
NICE HACK! :D
lordofgun
05-05-2002, 04:28 AM
/me still feels like an idiot.
forumdisplay.php - find:
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
after, add (remember to remove the spaces in { firstaltcolor }):
$rowbg="{bghighlight}";
} else {
$rowbg="{ firstaltcolor }";
}
Then, create your replacement {bghighlight} and follow the instructions in the text file for editing your forumdisplaybit template.
lordofgun
05-06-2002, 03:28 AM
thanks bro! YOU ROCK! :D
mvigod
05-06-2002, 02:41 PM
Can you add the ability to do this for sticky threads too in a different color? And maybe also announcements?
ZiRu$
05-06-2002, 08:05 PM
sounds cool but I don't want the bg color to be changed I want the TEXT color to be changed when a thread is stickied or a ANNOUNCMENT
Mike Gaidin
03-06-2003, 08:04 PM
Originally posted by ZiRu$
sounds cool but I don't want the bg color to be changed I want the TEXT color to be changed when a thread is stickied or a ANNOUNCMENT
That's what I'm looking for too.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.