![]() |
Accessing perpage variable in postbit template?
How do I access the perpage variable in the postbit template? I've tried some different things but with no luck. I'm trying to add an advertisement after the first and last post of each page of a thread and I need to know how many posts per page there are to do this.
None of these seem to work: $perpage $vbulletin->GPC['perpage'] $vbulletin->options['grpspostsperpage'] $vboptions['perpage'] $vboptions['grpspostsperpage'] |
Use $FIRSTPOSTID for the first post on the page, and $LASTPOSTID for the last.
Use them both in a conditonal and compare them to the current post's postid. :) |
Neither of those work. I'm using the latest vb version 3.6.5
|
Ah I'm sorry, I forget about scope sometimes...
Try using this for the first post inside the postbit template; HTML Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"> |
All times are GMT. The time now is 11:38 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|