Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Jun 2010, 18:38
NeXuM NeXuM is offline
 
Join Date: Mar 2003
template condition to show something only for the first post of a topic

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 !!
Reply With Quote
  #2  
Old 01 Jun 2010, 19:13
jamesyfx jamesyfx is offline
 
Join Date: Feb 2005
Real name: James

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This should do the trick.
Reply With Quote
  #3  
Old 03 Jun 2010, 09:27
NeXuM NeXuM is offline
 
Join Date: Mar 2003
thanks !
Reply With Quote
  #4  
Old 03 Jun 2010, 09:45
jamesyfx jamesyfx is offline
 
Join Date: Feb 2005
Real name: James
You're welcome. :] Happy to help! Yadda yadda. :3
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:35.

Layout Options | Width: Wide Color: