PDA

View Full Version : template condition to show something only for the first post of a topic


NeXuM
06-01-2010, 05:38 PM
I just want to display something inside the FIRST POSt of a topic

right now i am using this condition:
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
Hello
</if>

It will write "Hello" for the first post of a topic, but it will also write it on first post of page2, and first post of page3, etc....

I want to display it only for the first post of page1 !!

how can i do this??

thanks !!

jamesyfx
06-01-2010, 06:13 PM
<if condition="$post[postcount] == 1">Hello</if>

This should do the trick.

NeXuM
06-03-2010, 08:27 AM
thanks !

jamesyfx
06-03-2010, 08:45 AM
You're welcome. :] Happy to help! Yadda yadda. :3