Hi there, I'm wondering how to setup alternating row colours instead of columns as used on this website. Can someone please help me?
Thanks!
This is a discussion on vBSEO-Style: How to setup alternating row colours? within the General Discussion forums, part of the vBulletin SEO Discussion category; Hi there, I'm wondering how to setup alternating row colours instead of columns as used on this website. Can someone ...
Hi there, I'm wondering how to setup alternating row colours instead of columns as used on this website. Can someone please help me?
Thanks!
Put this code snippet at the top of the template bit,
eg. : for forumhome_forumbit_level2_post
And then replace every instance of Alt1 , Alt1Active and Alt2 in that particular templatePHP Code:<if condition="$altrow =& $GLOBALS['altrow']"></if>
<if condition="!isset($altrow)"><if condition="$altrow = 0"></if></if>
<if condition="++$altrow % 2 == 0"><if condition="$rowClass = 'alt1'"></if>
<else /><if condition="$rowClass = 'alt2'"></if></if>
with this variable : $rowClass
There are other ways of accomplishing this too...
Thanks! It's workin, but which template do I have to modify to have this effect applied on the thread listings inside of a forum?
threadbit (under the 'Threadbit Templates' group) would need to be edited.
Thanks a lot!![]()
Np.
I'm gonna implement the same in the new vB skin
that I'm developing for my Forum for 2009.