![]() |
An Idea for Thread Display Order
Would it be possible to create a hack that would allow the default thread display order for certain forums to be set to Alphabetical? I am thinking for book lists and FAQs this would be a nice feature.
Obviously the user can click the THREAD button to reorder the posts alphabetically or reverse alpha, but certain information-only forums really would benefit from a default presentation like this, plus very few new users know they can reorder the display of threads by thread/starter/replies/views/rating or Last Post. Maybe what I am actually suggesting is that the admin could be able to select any of these options: thread title/starter/replies/views/rating/lastpost could be configurable as the Thread sort order, able to override "last post" order, which would remain the default. Regards, Matt |
Very nice idea, actually.
|
in your forumdisplay.php you can find this:
PHP Code:
|
But, that would change all the forums to the new order (alphabetic or views, etc) wouldn't it? I was really hoping to just affect one or two - the faq sorted by alpha; the booklist sorted by rating, and so forth.
Regards, Matt |
replace it with an if-clause:
PHP Code:
|
Thanks Xenon!
|
This is great, Thanks!
|
Xenon, I can't find the string of characters:
$sortfield ='lastpost' in the template forumdisplay. What is the exact name of the template I need to look for. I am only interested for the time being by having the Thread display in the order: first created, first in the list. I totally agree with Memobug. We should have the choice of orders'criterias in the Admin options. Thanks for your help! |
Catherine you should read more carefully:
i said forumdisplay.php not the forumdisplay template |
Xenon,
Sorry for my stupid question but I am not a Java script specialist and am just trying to hack some of my templates based on my knowledge of other programming languages. So where can I find forumdisplay.php? Thank you to let me know. |
All times are GMT. The time now is 06:57 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:
|