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)
 Any way to change default topic display?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

cmerwitzer
New Member

63 Posts

Posted - 19 December 2006 :  14:30:28  Show Profile
I was wondering if there is a way to change the default way topics are displayed.

Right now the default is to show topics in the following order:
LAST POST TIME DESCENDING ALL OPEN TOPICS

I would like to know how to change this default to:
TOPIC TITLE ASCENDING ALL OPEN TOPICS

Thank you very much.

JJenson
Advanced Member

USA
2121 Posts

Posted - 19 December 2006 :  15:28:10  Show Profile  Visit JJenson's Homepage
Is this what you are looking for?

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60954&SearchTerms=TOPIC,DISPLAY,ORDER

Or the actual topics themselves?
Go to Top of Page

cmerwitzer
New Member

63 Posts

Posted - 19 December 2006 :  17:10:26  Show Profile
That is not exactly what I am looking for, but thank you for pointing that out. What I really need is to edit the Snitz code to change the default display setting as indicated in my original post.

When someone clicks on a forum, I want the resulting topics to be displayed by default in order of:
TOPIC TITLE ASCENDING ALL OPEN TOPICS

Thanks, again.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 20 December 2006 :  04:29:57  Show Profile
You can choose which topics are displayed by default by editing the properties of the forum.

To change the sort order, find the following on line 66 of forum.asp:
Select Case strtopicsortord
Case "asc"
strSortOrd = " ASC"
Case Else
strSortOrd = " DESC"
strtopicsortord = "desc"
End Select

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
strtopicsortfld = "lastpost"
strSortCol = "T_LAST_POST" & strSortOrd
End Select

And replace it with the following:
Select Case strtopicsortord
Case "desc"
strSortOrd = " DESC"
Case Else
strSortOrd = " ASC"
strtopicsortord = "asc"
End Select

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
strtopicsortfld = "topic"
strSortCol = "T_SUBJECT" & strSortOrd
End Select


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

cmerwitzer
New Member

63 Posts

Posted - 20 December 2006 :  07:23:50  Show Profile
Awsome! Thank you.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 20 December 2006 :  07:32:19  Show Profile
You're welcome


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

rkp
New Member

59 Posts

Posted - 31 July 2007 :  08:05:59  Show Profile
Shaggy,

If I edit and code this out will all 50 of my topic area's be reordered? What if I only want 10 of the topic area's ordered ascending and the other 40 descending? Is there a way to isolate a particular forum and reverse the order for that forum only?

Purpose would be to post say an amber alert in a specific forum and have the most current alert at the top of the topic. Does that make sense?

Thanks

Edited by - rkp on 10 August 2007 07:59:33
Go to Top of Page

rkp
New Member

59 Posts

Posted - 10 August 2007 :  08:01:17  Show Profile
Shaggy?
Go to Top of Page

rkp
New Member

59 Posts

Posted - 10 August 2007 :  09:36:54  Show Profile
I installed the http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60954&SearchTerms=TOPIC,DISPLAY,ORDER
sort order mod and it works fairly the way I want it. What I wanted to know if I can have some forums sorted latest post first in one area and other forums sorted newest post first. They would have to be defaulted that way. I've got to figure out if our Amber Alerts can be posted and sorted newest post first.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 10 August 2007 :  09:44:40  Show Profile
That's the way topics are sorted by default ...


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07