Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
I'd like to be able to set the default display of threads in one particular forum to "ascending order". I run a fansite where people can ask questions of a celebrity, and the celeb tends to miss the older questions and is prone to just answer the more recent ones. That causes people to incessantly create new threads, trying to be on the first page of questions. If I could reverse the default display order in just this one forum, that would help solve the problem.

Is it possible to do this?

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I haven't tested this... but this *might* do the trick.

Code
In postlist.php<br /><br />Find this:<br /><br />   if (!$config['dateslip']) {<br />      $sort_opt = array(<br />         1 => 't1.B_Sticky DESC,t1.B_Subject DESC',<br />         2 => 't1.B_Sticky DESC,t1.B_Subject ASC',<br />         3 => 't1.B_Sticky DESC,t2.U_Username DESC',<br />         4 => 't1.B_Sticky DESC,t2.U_Username ASC',<br />         5 => 't1.B_Sticky DESC,t1.B_Posted DESC',<br />         6 => 't1.B_Sticky DESC,t1.B_Posted ASC',<br />         7 => 't1.B_Sticky DESC,t1.B_Counter DESC',<br />         8 => 't1.B_Sticky DESC,t1.B_Counter ASC',<br />         9 => 't1.B_Sticky DESC,t1.B_Replies DESC',<br />        10 => 't1.B_Sticky DESC,t1.B_Replies ASC',<br />		  11 => 't1.B_Sticky DESC,t1.B_RealRating DESC',<br />		  12 => 't1.B_Sticky DESC,t1.B_RealRating ASC'<br />      );                    <br />      $sort_by = $sort_opt[$sb];<br />   }<br /><br /><br /><br />change to this:<br /><br /><br />   if ($Board == "boardkeyword") {<br />      $sort_opt = array(<br />         1 => 't1.B_Sticky DESC,t1.B_Subject DESC',<br />         2 => 't1.B_Sticky DESC,t1.B_Subject ASC',<br />         3 => 't1.B_Sticky DESC,t2.U_Username DESC',<br />         4 => 't1.B_Sticky DESC,t2.U_Username ASC',<br />         5 => 't1.B_Sticky DESC,t1.B_Posted ASC',<br />         6 => 't1.B_Sticky DESC,t1.B_Posted DESC',<br />         7 => 't1.B_Sticky DESC,t1.B_Counter DESC',<br />         8 => 't1.B_Sticky DESC,t1.B_Counter ASC',<br />         9 => 't1.B_Sticky DESC,t1.B_Replies DESC',<br />        10 => 't1.B_Sticky DESC,t1.B_Replies ASC',<br />		  11 => 't1.B_Sticky DESC,t1.B_RealRating DESC',<br />		  12 => 't1.B_Sticky DESC,t1.B_RealRating ASC'<br />      );                    <br />      $sort_by = $sort_opt[$sb];<br />   }<br />   elseif (!$config['dateslip']) {<br />      $sort_opt = array(<br />         1 => 't1.B_Sticky DESC,t1.B_Subject DESC',<br />         2 => 't1.B_Sticky DESC,t1.B_Subject ASC',<br />         3 => 't1.B_Sticky DESC,t2.U_Username DESC',<br />         4 => 't1.B_Sticky DESC,t2.U_Username ASC',<br />         5 => 't1.B_Sticky DESC,t1.B_Posted DESC',<br />         6 => 't1.B_Sticky DESC,t1.B_Posted ASC',<br />         7 => 't1.B_Sticky DESC,t1.B_Counter DESC',<br />         8 => 't1.B_Sticky DESC,t1.B_Counter ASC',<br />         9 => 't1.B_Sticky DESC,t1.B_Replies DESC',<br />        10 => 't1.B_Sticky DESC,t1.B_Replies ASC',<br />		  11 => 't1.B_Sticky DESC,t1.B_RealRating DESC',<br />		  12 => 't1.B_Sticky DESC,t1.B_RealRating ASC'<br />      );                    <br />      $sort_by = $sort_opt[$sb];<br />   }<br />


Above where I have "boardkeyword" substitute the board keyword for that forum.

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
Josh -- it works! You've foiled the evil teenagers! Thanks for removing one more irritation from my day

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)