The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Different forum order for different styles?
I have two basic styles on my site, one which focuses on Racing (Car racing) and one on Rallying.
In the Rallying style I'd like to have the rallying forums appear at the top, is there a simple way to do this? |
#2
|
|||
|
|||
*bump* I'm still trying to figure this out with no luck. It was so easy in vb2
|
#3
|
||||
|
||||
This is not something that many vBulletin owners may need so you should better post this at paid services forum.
|
#4
|
|||
|
|||
If I could just get some understanding of how the code gets the forum ordering from the database and then uses it to display the main page, I'd be half way there.
In vb2 it was the "displayorder" field in the forum table, which is still there. But the only reference I can find to that in the code seemingly isn't used any more Well I've finally figured it out.. I did it by going into the construct_forum_bit function and putting this in Code:
foreach ($vbulletin->iforumcache["$parentid"] AS $forumid) { if($userStyle == 13) // If we are on rallyforum then swap the sections over { if($forumid == 118) { $forumid = 120; } else { if($forumid == 120) { $forumid = 118; } } } // end if rallyforum etc... |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|