![]() |
Alternating row colors
Instead of alternating row colors, vb does each column a different color...
Is there some way I can create a counter in the template and then input that style? I can get the whole "alternating row colors" thing just fine, I just need a way to increase/modulus a var and I am not familar with how that would be possible through the vB templates |
Depending on where do you want rows to alternate colors, edit either forumbit or threadbit template (or both) as follows:
Find all instances of alt1 & alt2, & replace them with $bgclass. Then at the beginning of the template add: Code:
<if condition="exec_switch_bg()"></if> |
Wonderful! I don't understand how you knew about that availability :(
HOW!? :) I can't seem to get this to work for the forum home template... forumhome_forumbit_level2_post it just ends up with an empty class name... |
Credits of this method goes to Colin Frey.
Try adding this at the beginning of the template (after the first if condition line): Code:
<td class="$bgclass"> |
I have this in forumhome_forumbit_level2_post:
Code:
<if condition="exec_switch_bg(1)"></if> Edit: But it DOES work just fine in the threadbit template this is VERY frustrating.. boooo ANYBODY? any ideas? |
Same here, did not get it work at the forumbits ;(
Tobi |
I'm working on this now... Did anybody find a solution yet?
Kaitlyn, I figured this out, and created a plugin to handle it. The instructions are relatively simple: https://vborg.vbsupport.ru/showthread.php?t=125654 |
All times are GMT. The time now is 07:18 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:
|