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: MOD Implementation
 The Topic.asp will display the last post first?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

chinh10
Junior Member

125 Posts

Posted - 08 June 2001 :  14:15:45  Show Profile
How can I simple to change the code on my topic.asp file to let it display the last post in the top of the page? without Sorting
Please show me how!
Thank you



Edited by - chinh10 on 08 June 2001 14:17:12

chinh10
Junior Member

125 Posts

Posted - 09 June 2001 :  19:19:59  Show Profile
No body 's intertested of my question??

Please



Edited by - chinh10 on 11 June 2001 18:49:01
Go to Top of Page

e3stone
Average Member

USA
885 Posts

Posted - 11 June 2001 :  19:43:01  Show Profile  Send e3stone an AOL message
Try this, look for this code in topic.asp

<% 
if mypage = 1 then
Call GetFirst()
end if
%>
<%
'## Forum_SQL - Get all topicsFrom DB
strSql ="SELECT " & strMemberTablePrefix & "MEMBERS.M_NAME, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_ICQ, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_YAHOO, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_AIM, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_TITLE, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.MEMBER_ID, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_Homepage, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_LEVEL, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_POSTS, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_COUNTRY, "
strSql = strSql & strTablePrefix & "REPLY.REPLY_ID, "
strSql = strSql & strTablePrefix & "REPLY.R_AUTHOR, "
strSql = strSql & strTablePrefix & "REPLY.R_REPLYTO, "
strSql = strSql & strTablePrefix & "REPLY.TOPIC_ID, "
strSql = strSql & strTablePrefix & "REPLY.R_MESSAGE, "
strSql = strSql & strTablePrefix & "REPLY.R_DATE "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS, " & strTablePrefix & "REPLY "
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "REPLY.R_AUTHOR "
strSql = strSql & " AND TOPIC_ID = " & Request.QueryString("TOPIC_ID") & " "
strSql = strSql & " ORDER BY " & strTablePrefix & "REPLY.R_DATE"


add this line to it:
strSql = strSql & " DESC"


This will make it display the original post first, then all the replies (newest to oldest)

<-- Eric -->


InsideWaco.com

Edited by - e3stone on 11 June 2001 19:44:01
Go to Top of Page

chinh10
Junior Member

125 Posts

Posted - 12 June 2001 :  15:10:22  Show Profile
Thank you very much
That's what I want


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.5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07