View Full Version : alternating row color
Im trying to make a classifieds hack for my board and i want to list all results in a table, it works fine but i can't get the row colors to alternate so that both second and firstaltcolor is used, ive tried to do it according to some tutorials but it doesnt seem to work on vb.
This is my query for displaying a list of the ads
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
So could someone tell me what i should write to get alternating row colors working.
See my thread in the Hints and Tips forum.
mrbaseball34
04 Sep 2002, 15:34
You mentioned a thread about alternating row colors in the
hints/tips forum but I could not find it.
I'd like to replace my XMB board with a VBulletin board but want to keep the same scheme, like the screenshot below.
http://www.austinmetrobaseball.com/board/images/AMBL/screenshot.gif
tHE DSS
04 Sep 2002, 18:10
For anything like this, you can use a function similar to the following :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
... basically, doing a 'modulus' operator divides 'x' by 'y', and returns the remainder.... as be do a modulus 2, if the number is not directly divisable by 2 (doesn't return a remainder of 0), then the number is not even, otherwise, it is.
Using that technique, you can display alternate stuff, depending on a counter being ODD or EVEN.
mrbaseball34
05 Sep 2002, 13:53
I *know* how to do it, it's just *where* in the vB code I need to.
As you can see, I was able to do it to XMB. FireFly posted that
he had a completed mod and I couldn't find the post. I was just
asking where to get the mod...
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.