The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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'] |
#2
|
|||
|
|||
![]()
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. ![]() |
#3
|
|||
|
|||
![]()
Neither of those work. I'm using the latest vb version 3.6.5
|
#4
|
|||
|
|||
![]()
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']"> <!-- / Your ad code here --> </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|