![]() |
How to sort forums automatically
I'm building a site that has a ton of forums, sub-forums, etc. I'd like it if they could all be sorted alphabetically, ignoring the "display order" key. It's quite a pain to keep up with the "display order" for all of the games. It'd be much easier if I could just drop new forums in there and they'd be sorted automatically.
In fact, if I could just change it site-wide (which would probably be easiest anyhow), that'd be fine. I figured I could just find the ORDER BY clause in there somewhere, but I'm not having much luck. I imagine this is a very minor code change somewhere. Any ideas? |
I found in "functions_databuild.php", on line 48, the following:
Code:
$forums = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "forum ORDER BY parentid, displayorder"); [code] Code:
$forums = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "forum ORDER BY parentid, title"); |
All times are GMT. The time now is 07:58 PM. |
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:
|