The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
how do i select the number of posts on a page in a thread? (rather than all posts in the thread?
|
#2
|
||||
|
||||
![]()
Is there even a variable that defines that number?
|
#3
|
||||
|
||||
![]()
i hope so as the $bbuerinfo[maxpost] variable seems to be set at -1 for most of my users, although i suppose that i could user
PHP Code:
![]() |
#4
|
||||
|
||||
![]()
hmm, doesn'T $perpage already give you the ammount of posts per page?
|
#5
|
||||
|
||||
![]()
thinking about it $perpage should be the same as $bbuserinfo[maxposts]
|
#6
|
||||
|
||||
![]()
it's a bit more complicated ^^
example from showthread.php: PHP Code:
|
#7
|
||||
|
||||
![]()
so you trying to tell me that my code is wrong and $postsonthispage wouldn't return anything?
|
#8
|
||||
|
||||
![]()
well, it would return something, but not what you want to get.
|
#9
|
||||
|
||||
![]()
lol
![]() i thought maybe the errors in this line? PHP Code:
PHP Code:
|
#10
|
||||
|
||||
![]()
hmm, try to use $counter, iirc it already stores the ammount of actual shown posts.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|