The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Global Sort Order, Override?
Hey guys, looking for a little programming help. I am trying to edit the forumdisplay.php to make all my forums/threads/etc show up alphabetical order, descending order (a,b,c,d,e,.,.,.).
I have located the code, just unsure what changes need to be made? There seems to be 2 different default sort options in the code? PHP Code:
I did a lot of experimentation buy I only got as far as sorting them in ascending order (backwards, e,d,c,b,a). I am a newb, forgive me. |
#2
|
||||
|
||||
Just edit your forum and set the default sort field to 'Thread Title'.
|
#3
|
|||
|
|||
I know about this but I am not going to go back and change it for a couple hundred forums. I prefer to do it this way. Can you help?
|
#4
|
||||
|
||||
Sure, you could do it by editing the file, or with a plugin, but it's going to be a lot easier to just run the following 2 lines (as separate SQL queries) (vB ACP -> Maintenance -> Execute SQL Query)
[sql]UPDATE forum SET defaultsortfield = 'title'[/sql] [sql]UPDATE forum SET defaultsortorder = 'asc'[/sql] Then run "Rebuild Forum Information" in ACP -> Maintenance -> Update Counters. |
#5
|
|||
|
|||
Quote:
To make these queries reversable i would just have to change it to [sql]UPDATE forum SET defaultsortfield = 'lastpost'[/sql] [sql]UPDATE forum SET defaultsortorder = 'desc'[/sql] Correct? |
#6
|
||||
|
||||
That's correct, that would set them back to the default vB order, where the threads with new posts are on top.
|
#7
|
|||
|
|||
Quote:
I tried to just set the forum in the forum manager but it didn't work. |
#8
|
||||
|
||||
Quote:
|
#9
|
|||
|
|||
is there away to do this just in certain topics / threads/ cats
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|