![]() |
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. :) |
Just edit your forum and set the default sort field to 'Thread Title'.
|
Quote:
|
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. |
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? |
Quote:
|
Quote:
I tried to just set the forum in the forum manager but it didn't work. |
Quote:
|
is there away to do this just in certain topics / threads/ cats
|
All times are GMT. The time now is 04:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|