The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change Posts per Page Per Style VB4
I'm not sure if this will be useful to anyone, but I've been playing around and just figured this out.
THIS IS FOR VB4 BUT THE CODE WOULD WORK ON VB3.8/3.7/3.6 I believe. Anyhow, if you want to change the posts per page on a thread, you can do so by changing the posts per page of a specific style as VB4 has the option to assign a specific style to a specific forum. The steps are: 1. Assign the specific forum your style (eg. ID is 23). 2. Add New Plugin 3. Product: Vbulletin 4. Hook Location: style_fetch 5. Title; whatever you want. 6. the PHP code is: Code:
if ($styleid == 23){ $vbulletin->options['maxposts'] = x (HOW MANY POSTS YOU WANT PER PAGE); } And there we go, easy as that. Hopefully this can be of help to some. I understand this is very simple stuff but surely there are many more like me who are still learning to use the vbulletin code. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|