PDA

View Full Version : using an if condition on the first post of each page.


Hell Bomb
08-10-2010, 12:11 PM
Hey guys, i am working on a nice little template mod but i need your guys help. I need to target the first post on each page so say if a new page starts every 15 posts it would target post numbers 1, 16, 31,46 etc. basicly the first thread on each page in when viewing a thread. I found the code below but it only works on the first post of the entire thread. Do you guys know how i can accomplish this task?


<if condition="THIS_SCRIPT == 'showthread' AND $post[postid] == $GLOBALS['qrfirstpostid'] AND $thread['prefixid'] == news">

kh99
08-10-2010, 12:47 PM
You could try

<if condition="$post['isfirstshown']">

</if>

Hell Bomb
08-10-2010, 04:34 PM
Ha Ha your awesome! It's working great and I got the exact look I was going for thank you man.