PDA

View Full Version : threadbit row highlight for post with zero replies


dethfire
09-24-2008, 08:48 PM
Simply how do I highlight a row automaticly with a color if the thread has zero replies in it?

dethfire
11-23-2011, 09:14 PM
looking for a solution for 3.8 thanks!

LifesGreatestGift
12-01-2011, 05:20 AM
the conditional you need to use is

vB3x
<if condition="$thread[replycount] == 0">style="background-color:#FF0000;"</if>

vB4x
<vb:if condition="$thread[replycount] == 0">style="background-color:#FF0000;"</vb:if>

in the threadbit template. you can place it as a style for the
main <li> element by adding a background color or use as
you wish.

Just guessing, could be wrong. havent tested it, but its a place to start.