![]() |
Alternate infraction infotable backgrounds
Hey guys, it's always been a little bit of a problem when issuing an infraction to a user to see that mono-colored background in the infractions table. My idea was to give each alternating infraction displayed a different background color (i.e. grey) to make for less mischecking and a need to highlight just to line an infraction and its checkbox up correctly.
(screenshot) This is the sort of stuff I'm talking about. Now the raw HTML displays this as a table. And each separate infraction is held in a <tr>. My idea was to give each alternating <tr> a class, but the problem is I wouldn't know to go about doing this since it's not something you can just directly edit for each alternating infraction. Any help with this? Would be really appreciated. |
This is kind of an ugly hack but it works: edit the userinfractionbit template and at the top where the <tr> tag is, change it to something like this:
Code:
<vb:if condition="$GLOBALS['userinfractionbit_bg'] = !$GLOBALS['userinfractionbit_bg']"> ("grey" actually looks too dark, but of course you can change either or both <tr> tags to style it any way you want). |
Thanks for the help kh99, much appreciated. :)
|
All times are GMT. The time now is 07:06 PM. |
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:
|