PDA

View Full Version : Change Posts per Page Per Style VB4


Cedric_FP
06-07-2010, 06:07 AM
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:

if ($styleid == 23){
$vbulletin->options['maxposts'] = x (HOW MANY POSTS YOU WANT PER PAGE);
}

7. Save.


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.