View Full Version : alternating row colors
s o r o k a
04-21-2002, 02:16 PM
seems like quite a few people want this but no one has done it?
I dont know if it would be that hard to do, but It would be really cool if you could make the row colors alternate instead of(or aswell as) the columns.
Chris M
04-21-2002, 02:55 PM
Hey Ray...
That would be a good idea...
Satan
here's an example:
<?
$color = "firstaltcolor";
while (SOME CONDITION HERE) {
$rowcolor = "{" . $color . "}";
eval("\$something .= \"".gettemplate("SOMETHINGbit")."\";");
if ($color == "firstaltcolor") {
$color = "secondaltcolor";
} else {
$color = "firstaltcolor";
}
}
eval("dooutput(\"".gettemplate("SOMETHING")."\");");
?>
now, in SOMETHINGbit (for instance, forumdisplaybit), use $rowcolor.
if there's errors, post and i'll fix them; i haven't tested this :D
s o r o k a
04-29-2002, 06:55 PM
thanks, what do i put this in though? admin/functions.php?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.