Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Change Sort Order of Archived Topics
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

lasatalayas
Junior Member

109 Posts

Posted - 12 April 2006 :  12:23:38  Show Profile
I'm quite happy with the default sort order of active topics but I would like to change the default sort order of archived topics by T_Subject.

lasatalayas
Junior Member

109 Posts

Posted - 13 April 2006 :  13:01:44  Show Profile
Did it myself - for anyone interested
edit forum.asp around line 70 like this:-
Select Case strtopicsortord
Case "asc"
strSortOrd = " ASC"
Case Else
strSortOrd = " DESC"
End Select

if request("ARCHIVE") = "true" then
strSortOrd = " ASC"
end if

Select Case strtopicsortfld
Case "topic"
strSortCol = "T_SUBJECT" & strSortOrd
Case "author"
strSortCol = "M_NAME" & strSortOrd
Case "replies"
strSortCol = "T_REPLIES" & strSortOrd
Case "views"
strSortCol = "T_VIEW_COUNT" & strSortOrd
Case "lastpost"
strSortCol = "T_LAST_POST" & strSortOrd
Case Else
if request("ARCHIVE") = "true" then
strtopicsortfld = "topic"
strSortCol = "T_SUBJECT" & strSortOrd
else
strtopicsortfld = "lastpost"
strSortCol = "T_LAST_POST" & strSortOrd
end if
End Select
strQStopicsort = "FORUM_ID=" & Forum_ID
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07