Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: change the sort order of comments?  (Read 3121 times)

0 Members and 1 Guest are viewing this topic.

michael singer

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 42
  • random image from: www.a-visual-notebook.at
    • a visual notebook
change the sort order of comments?
« on: October 31, 2004, 03:11:38 pm »

could anybody please tell me if there is a way to change the sort order of comments?
i would like to have the newest comment on top.

(i did many searches, but i could not find any related topic).



« Last Edit: November 01, 2004, 09:42:25 am by Casper »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: change the sort order of comments?
« Reply #1 on: October 31, 2004, 04:02:23 pm »

Try this, untested, so back up your file first.

Open displayimage.php, and find;

Code: [Select]
ORDER BY msg_id ASC
Change it to this;

Code: [Select]
ORDER BY msg_id DESC
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

michael singer

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 42
  • random image from: www.a-visual-notebook.at
    • a visual notebook
Re: change the sort order of comments?
« Reply #2 on: November 01, 2004, 12:37:33 am »

...works perfectly!

thank you very much, casper!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: change the sort order of comments?
« Reply #3 on: November 08, 2004, 09:48:50 am »

added (as admin settable option) to devel cvs - will be in next version.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.