Previous Thread
Next Thread
Print Thread
Hop To
Joined: Feb 2007
Posts: 6
stranger
stranger
Joined: Feb 2007
Posts: 6
Is there a way to alphabetize threads on a forum? I have some forums that are archive forums and it would easier to find specific subjects if grouped together as they would be if alphabetized.

Also I have a recipe forum which would benefit by alphabetizing the threads. Within the forums, subjects could be broken down into groups if the identifier was put at the beginning of the subject line, like fish, venison, rabbit, etc. Being in alphabetical order, members could easily find all recipes for a specific subject.

I can't find an option for alphabetizing, but thought maybe someone may know how I could do it.

Thanks - Paul

Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
in the sort order in the Forum Setup page in the CP

number them 1 to ??

You have to do it manually as i had to do the same.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Feb 2007
Posts: 6
stranger
stranger
Joined: Feb 2007
Posts: 6
I wasn't referring to the order in which the forums appear, but rather the order in which threads appear in a forum.

Joined: Feb 2007
Posts: 1,294
Likes: 2
Veteran
Veteran
Joined: Feb 2007
Posts: 1,294
Likes: 2
Well, the standard for threads is the latest post in a thread puts it on top and so on. If you want to do it any other way then your risking having post's not read.

Joined: Feb 2007
Posts: 6
stranger
stranger
Joined: Feb 2007
Posts: 6
Ok, I don't think I'm being very clear. Let me explain it this way...

Lets say I have a wild game recipe forum and I want to list the threads on that forum in alphabetical order so people could find what they want easily without reading the subject of every post on the forum.

If the subject line of the threads could be arranged in alphabetical order, it would look something like this....

Bread... Dutch oven biscuits
Bread... Aunt Jane's blueberry muffins
Fish... Broiled halibut
Fish... Deep fried catfish
Fish... Grandmas beer batter bass
Fish... Salmon cheese ball
Venison... Fried backstraps
Venison... Roasted with cream of mushroom soup
Venison... Uncle Jack's stew

This would also be a great way to organize threads in archive files in a how-to forum with varied subjects. However, if the forum is not organized in aphabetical order, it doesn't work well, and that's the problem I have.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
You'd need to modify the postlist script to change the default sort order to alphabetical. Somewhat outside the scope of this forum so you might check at ubbdev for more help, but for a nudge in the right direction, you'd be looking to add some code to that script that would look something like this to postlist where some of the other variables are being defined. # would be changed to the actual forum id of that particular forum

PHP Code

if ($Board == "#") {
   $sort = 1;
   $order = "asc";
}
 

Joined: Feb 2007
Posts: 6
stranger
stranger
Joined: Feb 2007
Posts: 6
Is there any chance that this could become an option in the future? Perhaps I'm the only one who has need of such an option.

Joined: Dec 2003
Posts: 1,798
Likes: 2
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,798
Likes: 2
Might be a good option for those with archived topics.


- Allen
- ThreadsDev | PraiseCafe
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yes, we will be putting in an option to specify a default sort order for forums. It's pretty simple, so might be able to get it in for 7.5.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i've done this as a modification for mitch.. he had a classifieds forum and alphabetic was a logical choice for THAT forum..

i'd call it a small to medium sized modification, but it's outside of the stock code..

Joined: Jun 2006
Posts: 811
old hand
old hand
Joined: Jun 2006
Posts: 811
Yes, what sirdude did worked well on my board for a "member directory" forum, where people can create threads about themselves. The thread serves as sort of a more detailed user profile. The title of the thread is the person's user name. As trapperman is talking about here, the most logical way to sort the threads is alpha order.

I like your idea to alpha sort the recipe forum. I may just do the same.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
whoops.. /me gets back to 'the big mod' for mitch...

nothing to see here, move along laugh

Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
yeh classic had this,
for the Archive ability its got legs smile


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Who's Online Now
0 members (), 427 guests, and 119 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)