way2xtreme
02-10-2010, 03:29 PM
Hi
I am trying to set alternating row background color in threadbit. After searing around, I found this:
http://www.vbulletin.com/forum/showthread.php?256882-alt1-alt2-per-row-instead-of-per-column&p=1490421&viewfull=1#post1490421
I altered the code (see below) and tried it to find I am getting only "alt1" from {vb:raw $altclass} .
Maybe there's something else I need to do?
Please help and thank you in advance :)
WC
<vb:if condition="!isset($altrow)">
<vb:if condition="$altrow = 0"></vb:if>
</vb:if>
<vb:if condition="++$altrow % 2 == 0">
<vb:if condition="$altclass = 'alt2'"></vb:if>
<vb:else />
<vb:if condition="$altclass = 'alt1'"></vb:if>
</vb:if>
...{vb:raw $altclass}
I am trying to set alternating row background color in threadbit. After searing around, I found this:
http://www.vbulletin.com/forum/showthread.php?256882-alt1-alt2-per-row-instead-of-per-column&p=1490421&viewfull=1#post1490421
I altered the code (see below) and tried it to find I am getting only "alt1" from {vb:raw $altclass} .
Maybe there's something else I need to do?
Please help and thank you in advance :)
WC
<vb:if condition="!isset($altrow)">
<vb:if condition="$altrow = 0"></vb:if>
</vb:if>
<vb:if condition="++$altrow % 2 == 0">
<vb:if condition="$altclass = 'alt2'"></vb:if>
<vb:else />
<vb:if condition="$altclass = 'alt1'"></vb:if>
</vb:if>
...{vb:raw $altclass}