The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Alternate row colors
Hi
I have searched and searched and can't find the alternationg row colors mod here anywhere, or at least one that will work with 2.3.2. Can anyone provide the code for this? I don't want the colors to alterate for the colums, just the rows for forumhome and showthreads, Thanks! |
#2
|
||||
|
||||
It needs hacking - you can't do it just in templates (AFAIK) - needs 4 lines of code I think. So moved to hack requests
|
#3
|
|||
|
|||
You can do it quite simply for Forumdisplay like this:
Find in forumdisplay.php: Code:
while ($thread=$DB_site->fetch_array($threads)) { // and $counter++<$perpage) { Code:
if($oror++ % 2 == 0) { $tread[color] = "{secondaltcolor}"; } else { $tread[color] = "{firstaltcolor}"; } And, if you're clever, you can also add the same thingy to what ever loop that lists threads, topics, posts etc. |
#4
|
|||
|
|||
I don't know much about PHP code - I'm trying to figure out how to alternate the colors for each POST, not for each column. Any way to alter this code to accomplish that?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|