FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » FUDforum in eGroupWare » Reverse Sort Order for Flat View
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Reverse Sort Order for Flat View [message #20683] Mon, 25 October 2004 20:44 Go to next message
jonmoss is currently offline  jonmoss   United States
Messages: 93
Registered: September 2004
Location: Lansing, KS
Karma: 0
Member

Is it possible to have the flat view sort in reverse chronological order?

Several of my users have requested this so that when they view a topic the most recent replies are at the top of the list.


Thanks and have a great day!

Jon Moss
Re: Reverse Sort Order for Flat View [message #20685 is a reply to message #20683] Mon, 25 October 2004 20:49 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It is possible, but you need to perform a slight code modification.
Open msg.php.t inside the src/ directory and modify the ORDER BY clause of the main data retrieval query in there.


FUDforum Core Developer
Re: Reverse Sort Order for Flat View [message #20687 is a reply to message #20685] Mon, 25 October 2004 21:10 Go to previous messageGo to next message
jonmoss is currently offline  jonmoss   United States
Messages: 93
Registered: September 2004
Location: Lansing, KS
Karma: 0
Member

I found one ORDER BY clause and change it the argument ASC to DESC. I saved the file. I logged in to eGroupware, as a regular end user, and went to a forum and selected a topic.

The posts were still in the same order, with the newest at the bottom.

Should I have stopped/restarted Apache?


Thanks and have a great day!

Jon Moss
Re: Reverse Sort Order for Flat View [message #20688 is a reply to message #20687] Mon, 25 October 2004 21:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
After you change the file you need to go to the admin control panel, theme manager and rebuild the theme. Only after this is done will your change take effect.

FUDforum Core Developer
Re: Reverse Sort Order for Flat View [message #20690 is a reply to message #20688] Tue, 26 October 2004 00:52 Go to previous message
jonmoss is currently offline  jonmoss   United States
Messages: 93
Registered: September 2004
Location: Lansing, KS
Karma: 0
Member

That worked.

Smile


Thanks and have a great day!

Jon Moss
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Audit Trail
Next Topic: Track Topic Not Working
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 21:13:07 GMT 2024

Total time taken to generate the page: 0.02603 seconds