Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 Feb 2002, 12:36
DjSap DjSap is offline
 
Join Date: Nov 2001
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So could someone tell me what i should write to get alternating row colors working.

Last edited by DjSap : 27 Feb 2002 at 12:50.
Reply With Quote
  #2  
Old 27 Feb 2002, 13:05
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
See my thread in the Hints and Tips forum.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #3  
Old 04 Sep 2002, 15:34
mrbaseball34 mrbaseball34 is offline
 
Join Date: Sep 2002
Where is it?

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.

Reply With Quote
  #4  
Old 04 Sep 2002, 18:10
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jul 2002
For anything like this, you can use a function similar to the following :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

... 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.
Reply With Quote
  #5  
Old 05 Sep 2002, 13:53
mrbaseball34 mrbaseball34 is offline
 
Join Date: Sep 2002
I know...

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...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 23:11.

Layout Options | Width: Wide Color: