PDA

View Full Version : Alternating postbit colour?


Alex Taylor
05-21-2004, 06:38 PM
I found a hack for vb2 that let you have alternating postbit colours, but it doesn't work for vB3.. how easy would this be? It seems like it should be pretty straightforward.. I basically want to use the alternating colours I use for my threadlist in the postbit, so that each post is a different colour. Thanks in advance :)

Zachery
05-22-2004, 02:57 AM
I found a hack for vb2 that let you have alternating postbit colours, but it doesn't work for vB3.. how easy would this be? It seems like it should be pretty straightforward.. I basically want to use the alternating colours I use for my threadlist in the postbit, so that each post is a different colour. Thanks in advance :)
you can just use a condition

<if condition="$post[postcount] % 2 == 0">even<else />odd</if> :)

Alex Taylor
05-22-2004, 05:29 AM
Ooh excellent, that's exactly what I'm looking for. Thanks!

Berethorn
07-02-2004, 02:51 PM
Where do I put this code? And how does it know which colors to alternate?

Jolten
07-02-2004, 03:17 PM
I just replied here as well. https://vborg.vbsupport.ru/showthread.php?t=61310