View Full Version : Threads ordering
VietLang
Wed 25th Jan '06, 1:03am
As of right now, you can only temporary set Threads/Users/Dates in alphabetical order or chronological order by clicking on them in forum display. Why not go a little bit more by being able to set it permantly in the admin control panel?
Andy
Wed 25th Jan '06, 6:27am
This has been requested many times and I for one have to modify my forumdisplay.php in order to do this.
One thing confusing about having alphabetical listing forced is when a user makes a new post or thread it does not go to the top of the forum as expected, I think if vBulletin implemented this feature they should add some sort of note indicating this. I have a sticky thread with a title indicating the forum is alphabetically sorted.
feldon23
Wed 25th Jan '06, 12:22pm
Here's a Plug-in (http://www.vbulletin.org/forum/showthread.php?t=93074) for vB3.5.x which lets you specify how each forum is sorted via the Forum Manager. Much more elegant than hard-coding forumdisplay.php (as I had to in vB3). Actually that Plug-in goes a bit too far since it lets users change the sort order of each forum in their User CP.
If you only want Admins to be able to set the default sort order, install/upload the XML files in that Plug-in, but not any of the template changes.
Andy
Wed 25th Jan '06, 4:35pm
I like to keep things as simple as possible. Did you see how much this plugin adds?
Details
1 Product XML with 2 Queries, 12 Plugins, 19 Phrases and 2 Settings
4 Template Edits
No thanks, I will wait until the vBulletin team adds this often requested feature.
feldon23
Wed 25th Jan '06, 4:46pm
It is kind of absurd and I am not sure why the developer won't write an Admin-only version.
Andreas
Wed 25th Jan '06, 8:34pm
@Andy
You can easily strip what you don't need/want.
Andy
Wed 25th Jan '06, 10:21pm
@Andy
You can easily strip what you don't need/want.
Hi Andreas,
You sparked my interest and I was able to make my first plugin. :)
No longer do I have to edit my forumdisplay.php to display one of my forums in alpha order, now I use two plugin's.
I like this solution because it is very simple and provides exactly what I want with very little coding.
VietLang
Thu 26th Jan '06, 2:44am
Hi Andreas,
Any consideration for implementing this feature as a standard in future releases?
fulcrum
Thu 26th Jan '06, 4:50am
or does Andy want to release his version at all? :)
Andy
Thu 26th Jan '06, 7:30am
Here are the two plugin's needed to sort a forum ascending by thread title. The forum I needed sorting was my forum id #57, change this number as needed.
17962
17963
Andy
Thu 26th Jan '06, 7:32am
if ($foruminfo['forumid'] == '57'){
$vbulletin->GPC['sortorder'] = 'asc';
}
and
if ($foruminfo['forumid'] == '57'):
$sqlsortfield = 'thread.title';
$sortfield = 'thread.title';
else:
$sqlsortfield = 'thread.lastpost';
$sortfield = 'lastpost';
endif;
$handled = true;
fulcrum
Thu 26th Jan '06, 3:14pm
Great work... Thanks Andy (and originally Andreas)
jrcart
Sat 11th Mar '06, 8:49am
so if I have several different forums I want alphabatized I need to keep adding the forum ID's to the code? Seems a little daunting...
Andy
Sat 11th Mar '06, 12:22pm
so if I have several different forums I want alphabatized I need to keep adding the forum ID's to the code? Seems a little daunting...
Unfortunately yes. We hope the vBulletin team will make this a standard feature in future releases. :)
Andy
Mon 13th Mar '06, 11:42am
Here is a product to make installing easy. I have three forums that I sort by alpha thread title, so change the forum numbers as needed.
jrcart
Mon 13th Mar '06, 4:57pm
OK... I installed that... what now? Sorry... I'm a newbie (obviously)
Andy
Mon 13th Mar '06, 5:04pm
OK... I installed that... what now? Sorry... I'm a newbie (obviously)
Identify the forum numbers you want sorted by alpha thread title, write down these numbers. Then go to:
Admin CP > Plugin System > Plugin Manager
Edit the Alpha sort forum part 1 and Alpha sort forum part 2 plugins (one at a time) so that the three numbers I have in there now will be replaced with your forum numbers.
jrcart
Mon 13th Mar '06, 5:29pm
Gotchya... seems to work fine now. Thank you very much for your help!
Powered by vBulletin™ Version 4.0.2 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.