The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Listing Sub-Forums in alphabetical order..
Greetings...
After much hunting I have discovered that vBulletin doesn't have the ability to list all of my Sub-Forums alphabetically out of the box....it can be done by inserting the right bit of code into the right .php file. Can any of you vBulletin Modders give me a push in the right direction here? I was just reminiscing how easy it was to write a BASIC program 25 years ago which could sort lists alphabetically. Isn't it funny how with today's powerful computers and software I've had to submit multiple posts to multiple forums in the hope that I've caught the attention of someone who can answer this? Oh, and manually doing it isn't an option - several thousand subforums and daily additions/removals. It needs to be 100% automatic. Thanks in advance!! |
#2
|
||||
|
||||
You could probably create a script to sort the forums using sort().
|
#3
|
||||
|
||||
I posted this on your thread at vb.com:
Go to the file /includes/adminfunctions.php around line 3077. There is a query called $newforumcache and it is ORDER BY displayorder. Change that line to ORDER BY title. Save. Upload file. You may have to go to Forum Manager and hit Save Display Order to get the datastore cache rebuilt. See if that works. Warning though!!! That will put it all in alphabetical order including the Main Categories. You would have to tweak that area in the code to do it differently. |
#4
|
|||
|
|||
Thank you!!
It worked!! This is exactly what I was after.... Special thanks to Lynne! |
#5
|
|||
|
|||
is this possible to make this one only forum subforum? i dont want main forum is this possible
|
#6
|
|||
|
|||
same problem here
|
#7
|
|||
|
|||
same problem here..
--------------- Added [DATE]1360267704[/DATE] at [TIME]1360267704[/TIME] --------------- is this possible to make this only one forum subforum? i dont want all my main forum are listed in alphabetical order. i want only listed this sub-forums: http://forum.insidegames.ch/xbox-live-arcade-games-f173 http://forum.insidegames.ch/windows-phone-7-games-f218 http://forum.insidegames.ch/playstation-vita-games-f838 http://forum.insidegames.ch/xbox-360...tail-games-f96 and all subforums in their subforums |
#8
|
|||
|
|||
Nobody?
|
#9
|
||||
|
||||
Did you try just putting a condition around it based on the forumid?
|
#10
|
|||
|
|||
Hi, thank you very much for your kind response. Actually we tried to solve the problem by adding a field in the order by part of the Query (actually i do not remember which one but the idea was to order by Forum an then by title if I remember well). But this didn't change anything (maybe it was the wrong field). Is that what you asked or do you mean an approach on the forum structure itself ?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|