The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Force Forumdisplay Sort Order
I need to force the thread sort order (i.e. override user selection) for a couple forums to Thread Start Time, Descending. I'd also like to remove the user's ability to change the sort order for those forums.
What is the best way to accomplish this? Thanks |
#2
|
||||
|
||||
hook - forumdisplay start:
PHP Code:
|
#3
|
|||
|
|||
Thank you, Lynne.
--------------- Added [DATE]1318538968[/DATE] at [TIME]1318538968[/TIME] --------------- I understand a bit better what I'm trying to do, so let me restate. I only want threads to be bumped by the OP in selected forums. Followups by others should not. We have a classifieds forum where many people comment on for-sale posts, which causes unnecessary bumping of the thread when the sort is Last Post Time. We still want to enable the OP to bump their own thread. I envision two solutions; (1) not update the lastpost field in the thread table when a post is made unless that post is made by the thread starter. (2) Manipulate the query in forumdisplay that generates the recordset for thread display, substituting the time of last post by the OP for lastpost from the thread table. That requires a subquery into the post table for each threadid to be displayed. As long as I'm willing to mess up the data integrity for a couple forums, this seems like the easier solution. Anyone done something similar? Got a tip or two? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|