Log in

View Full Version : Diffrent color on every other <tr> ?


GriZzm0
09-26-2006, 11:16 PM
I've noticed that every vBulletin theme I've looked at has diffrent colors on every other colum (td) on the same row (tr).
My question: How do I add diffrent colors to every other row (tr) instead? I want every other row to be light and the other one to be dark. Any easy sulution for this?

Phaedrus
09-27-2006, 02:56 AM
Do you mean you wish alternate posts to have different colors?

GriZzm0
09-27-2006, 12:16 PM
Do you mean you wish alternate posts to have different colors?
What I meant was. While viewing forumhome or forumdisplay theres usaly one color on the icon td, post/reply count td, and last post td. And another color on the forum/topic td and thread/view count td.
And I wanted it to be like.
Icon forum posts threads lastpost <- light
Icon forum posts threads lastpost <- dark
Icon forum posts threads lastpost <- light

But, nvm. I made it the other way instead. :p

rolandogomez
10-10-2006, 11:50 PM
Now it would be cool if we could have alternate posts of different color. A two color, alternating scheme. Would love to see this, thanks, rg.

Smoothie
10-11-2006, 01:16 AM
If I'm understanding you guys correctly there already is a mod for this posted here.

GriZzm0
10-11-2006, 06:43 AM
Already found a sulution for it. :p Atleast for posts. But I guess it should work for threads aswell. Aslong as you change the condition. It might help the next person that needs it. So I'll just post it here. ;)
<td class="threadUser"<if condition="$post[postcount] % 2 == 0"> style="background-color: #d3d5d7;"</if>>