PDA

View Full Version : First page of thread


squishi
05-06-2009, 01:33 PM
Is there a variable I can use in the SHOWTHREAD template to check if the page is the first page of a thread?

I want to do something like this:
<if condition="$thread[pagecount] == 1">
//show something only on first page of thread
</if>

Lynne
05-06-2009, 04:48 PM
If you look at showthread.php, there is a variable put through the cleaner called "pagenumber". So, that is probably the one you want to look at. Take a look at the code in showthread.php