![]() |
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! |
It needs hacking - you can't do it just in templates (AFAIK) - needs 4 lines of code I think. So moved to hack requests :)
|
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) And, if you're clever, you can also add the same thingy to what ever loop that lists threads, topics, posts etc. |
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? :)
|
All times are GMT. The time now is 08:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|