View Full Version : [tip] - alternate something in the postbit


Elmer
22nd February 2004, 05:07 AM
This is a conditional that will allow you to alternate something diferent in your postbit..
For example if you would like to use this to alternate the userinfo to appear to the right and to the left.

You just have to put this conditional a the beggining of your postbit template
<if condition="$post[postcount]%2 == 1">
te postbit code here
<else />

the modifications made to the postbit

</if>

if you want to alternate colors in the postbit just search the <td class="alt1...
and change it to

<td <if condition="$post[postcount]%2 == 1">class="alt1"<else />class="alt2"</if>...



:)

regards

Gio Takahashi
22nd February 2004, 06:50 AM
Very NICE! I might do the alternating left and right legacy post bit!

Karma for you!

HiDeo
22nd February 2004, 11:54 AM
Thanks for sharing !!!


I hoped to have sooner :D

Thanks

Karma ++ too

n00belite
22nd February 2004, 12:20 PM
OMG karma karma karma. Only been looking for this for about 2 months =P THANK YOU!!!1

Yoshy
22nd February 2004, 09:05 PM
bleh - lol - I tool about 20 ppl in the chat how to do that, but I guess I should posted it...

omgli3k
22nd February 2004, 09:33 PM
Nifty :) thanks.

Elmer
23rd February 2004, 02:12 AM
bleh - lol - I tool about 20 ppl in the chat how to do that, but I guess I should posted it...
I don't visit the chat so I didn't know about that.. and I posted it first :p

Freedom
3rd April 2004, 03:03 PM
This is some cool shit :)

I noticed how they had this on vbulletintemplates some time ago.

Syn
8th April 2004, 09:14 PM
This is great! I subscribed to the thread so I don't forget about it. AND Karma!! XD

Elmer
9th April 2004, 05:18 AM
This is great! I subscribed to the thread so I don't forget about it. AND Karma!! XD
Thanks Syn, glad to hear you like it :)

Snake~eyes
9th April 2004, 06:35 AM
Cool, nice job. Simple task! :)