The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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: PHP Code:
|
#2
|
||||
|
||||
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.
|
#3
|
||||
|
||||
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.
|
#4
|
||||
|
||||
PHP Code:
|
#5
|
||||
|
||||
Now I would insert the code into memberlist.php or whatever the file I need and not in the templates?
|
#6
|
||||
|
||||
correct
and your template bit would look something like HTML Code:
<tr> <td align="center" $backcolor> whatever </td> </tr> |
#7
|
||||
|
||||
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:
|
#8
|
||||
|
||||
Here is what I used (the entire while statement)
PHP Code:
|
#9
|
||||
|
||||
Quote:
but your code should still work |
#10
|
||||
|
||||
Quote:
Code:
$mods[formcode] <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <thead> <tr> <td colspan="$mods[colspan]" $backcolor> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|