The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Different number of threads displayed depending on sub-forum
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? |
#2
|
||||
|
||||
Make a new plugin on the hook forumdisplay_start with this code:
Code:
if ($foruminfo['forumid'] == 2) $perpage = $vbulletin->options['maxthreads'] = 200; You can add additional lines for different forums- Code:
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; |
Благодарность от: | ||
laksaboyforum |
#3
|
|||
|
|||
Thanks! I'll try this tomorrow and report back.
--------------- Added [DATE]1319282710[/DATE] at [TIME]1319282710[/TIME] --------------- Works beautifully, thanks!!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|