I am aware that you can change the order of categorys/forums in the control panel. What I would like to be able to do is change the order of posts within a topic so that the most recent post is at the top, and the oldest at the bottom. Does anyone know how this would be achieved? I have tried searching through forums for help with no luck. I am using version 3.4.07 with an Access database. url:www.wombwellsportingac.co.uk/forum
What I would like to be able to do is change the order of posts within a topic so that the most recent post is at the top, and the oldest at the bottom.
Unless I am misunderstanding your question, Snitz already does that by default. When a new post is made, it automatically goes to the top of that topic pushing the older ones down.
The topic itself will remain at the top, all replies will be in reverse order (latest first). In "topics.asp",
Look for the following lines (appx 204-213):
if AdminAllowed = 0 then
strSql = strSql & " AND (R_STATUS < "
if Moderation = "Y" then
strSql = strSql & "2 "
else
strSql = strSql & "3 "
end if
strSql = strSql & "OR R_AUTHOR = " & MemberID & ") "
end if
strSql = strSql & "ORDER BY R_DATE ASC "
Change the last line to say:
strSql = strSql & "ORDER BY R_DATE DESC "