Log in

View Full Version : Thread titles in different colors based on categories


Leah
12-08-2004, 04:04 AM
A user at my forum requested this hack and it sounds like a great one, so I'm requesting it here also.

The idea is that one by looking at the result of the "New posts"-search can see what category each thread is written in by the color of the threadtitle.

Like here, if all the thread titles from the hack request forum were red, the ones from the Beta releases were blue and the ones from the "Code Modifications vB3" category were blue and the ones form the category "Code Modifications vB2" were red.

Could this be done?

Xenon
12-08-2004, 11:21 AM
actually you can do this with a template modifications

just edit the threadbit template and around $thread[title] add something like
<font color="<if condition="in_array($thread[forumid], array(1,2,5))">red<else />blue</if>">$thread[title]</font>