![]() |
Alpha sort by thread title of one forum
I would like to be able to have just one forum be alpha sorted by the thread name as opposed to the deafult last post time.
A plug in for this would be great. Thank you :) |
Andy-
Try this: Find the forumbit template that calls the forum on your forumhome (this will vary depending on your forum hierarchy). In that template, Find: Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"> Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]<if condition="$forum[forumid] = ##">&order=asc&sort=title</if>"> This should cause that forum to be displayed in ascii order by title. --don |
Alternatively you could use https://vborg.vbsupport.ru/showthread.php?t=93074
|
Hi darnoldy,
Thank you for your help. Your example works almost perfect. First I had to change the "=" to "==". The problem with the your solution is if a user makes a post in the thread or clicks on the bread crumb, the alpha sorting is lost. I ended up modifying the forumdisplay.php as follows. This works perfect. Code:
|
Andy, you should use Kirby's hack for that. That way you can change it for whatever forum you want to and not have to touch any php files. ;)
|
Quote:
Quote:
Quote:
--don |
Quote:
1 Product XML with 2 Queries, 9 Plugins, 15 Phrases and 2 Settings 4 Template Edits I only needed to add a few lines to the php file. I always prefer a simple solution to one that changes a lot of things. |
But with the hack, this is now an option in each forum and there is no direct editing of php files so upgrading vb will be a snap and you would not have to re-edit the file or re-install the hack. The product system really is remarkable.
|
@Andy
If you just want to set the Default in Admin CP and don't need/want a UserCP Option and Thread Start Date, you would just have to import the XML of my Hack - that's it (no Template Edits). |
All times are GMT. The time now is 03:36 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:
|