PDA

View Full Version : Different number of threads displayed depending on sub-forum


thenamesgould
10-15-2011, 12:32 PM
Hi there,

I'm not even sure if this is possible, but I've had a good search and can't find it mentioned anywhere.

I have a forum where I am creating a sub-forum that will be reference only - basically a listing of games played by a sport team - a different sub-forum for each year, and a different thread for each match. Now in those forums I want every game for the year to show up without the user having to go to another page - around 40 threads in some cases.

But I don't want to make all the other sub-forums display 40 threads on each page!

Is there any way to do this? Is a mod possible/easy enough for someone to do it?

BirdOPrey5
10-19-2011, 02:36 PM
Make a new plugin on the hook forumdisplay_start with this code:


if ($foruminfo['forumid'] == 2)
$perpage = $vbulletin->options['maxthreads'] = 200;


Where 2 is the forumid and 200 is the number of threads you want per page.

You can add additional lines for different forums-


if ($foruminfo['forumid'] == 2)
$perpage = $vbulletin->options['maxthreads'] = 200;

if ($foruminfo['forumid'] == 3)
$perpage = $vbulletin->options['maxthreads'] = 100;

if ($foruminfo['forumid'] == 4)
$perpage = $vbulletin->options['maxthreads'] = 250;

thenamesgould
10-21-2011, 11:39 AM
Thanks! I'll try this tomorrow and report back. :)

--------------- Added 1319282710 at 1319282710 ---------------

Works beautifully, thanks!!! :D