Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: change the sort order of comments?  (Read 3454 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.035 seconds with 20 queries.