Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Feb 2005, 12:59
SS9267547's Avatar
SS9267547 SS9267547 is offline
 
Join Date: Nov 2001
Real name: Lucas
Alternating Row Color

Morning all, I have a quick question about alternating row colors. How would I make this work on any page in vbulletin? I have this working in forumdisplay, showthread, etc but I can't get it to work for example under memberlist.php or online.php. All it does is show one color but doesn't alternate. This is what I've been using.

Example:

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

Any help in the mater would be great, thanks.
Reply With Quote
  #2  
Old 15 Feb 2005, 15:33
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Real name: Lucius Hunk
you need to modify no templates, just go to ACP --> Styles & Templates -> Style Manager -> Edit Main CSS --> now you just change the value in "Background" for Alt1 and Alt2 to the same then it would show the same color for row.
Reply With Quote
  #3  
Old 15 Feb 2005, 23:35
SS9267547's Avatar
SS9267547 SS9267547 is offline
 
Join Date: Nov 2001
Real name: Lucas
Thanks for the reply but I don't think thats what I'm looking for. What I would like is to keep Alt1 and Alt2 different colors and have the rows alternate the colors so one if one row is white the next would be black and so forth.
Reply With Quote
  #4  
Old 15 Feb 2005, 23:39
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002

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

Reply With Quote
  #5  
Old 15 Feb 2005, 23:47
SS9267547's Avatar
SS9267547 SS9267547 is offline
 
Join Date: Nov 2001
Real name: Lucas
Now I would insert the code into memberlist.php or whatever the file I need and not in the templates?
Reply With Quote
  #6  
Old 15 Feb 2005, 23:51
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
correct

and your template bit would look something like

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

Reply With Quote
  #7  
Old 16 Feb 2005, 00:07
SS9267547's Avatar
SS9267547 SS9267547 is offline
 
Join Date: Nov 2001
Real name: Lucas
Ah what a pain. Still can't get it to work, seems to still display one color on all the rows. Dosn't matter what code I use, displays one or the other hehe. :speechless:
Reply With Quote
  #8  
Old 16 Feb 2005, 01:06
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Here is what I used (the entire while statement)

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

Looks like you are just missing the $name++.
Reply With Quote
  #9  
Old 16 Feb 2005, 01:10
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Originally Posted by TheSpecialist
Here is what I used (the entire while statement)

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

Looks like you are just missing the $name++.
thats the long way around .... i dont use it in a while loop ... and im not missing the $name++

but your code should still work
Reply With Quote
  #10  
Old 29 Oct 2006, 11:27
imported_infitech's Avatar
imported_infitech imported_infitech is offline
 
Join Date: Apr 2004
Location: Queens, NY
Real name: Daniel Michel
Originally Posted by trafix
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
i tried to do this for every alternating tcat in my vbadvanced cmps by putting it in my forums/global.php and editing adv_porta;_module_shell here
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and it didnt work.... any ideas? im not a coder.
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:37.

Layout Options | Width: Wide Color: