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: sorting in toprated album  (Read 3640 times)

0 Members and 1 Guest are viewing this topic.

Titooy

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 736
    • under construction...
sorting in toprated album
« on: May 04, 2005, 12:19:21 am »

If some pictures have the same number of votes and the same rating, the order can be different on the thumb page than in the displayimage. That problem was already reported on CPG 1.3.x

My suggestion: on line 1141 of functions.inc.php,

change
Code: [Select]
$META_ALBUM_SET ORDER BY pic_rating DESC, votes DESC $limitinto
Code: [Select]
$META_ALBUM_SET ORDER BY pic_rating DESC, votes DESC, pid DESC $limitsince pid is unique and then we're certain that the order will be the same.
« Last Edit: May 09, 2005, 06:52:40 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: sorting in toprated album
« Reply #1 on: May 04, 2005, 07:52:26 am »

committed fix as suggested - please confirm.

Joachim
Logged

Titooy

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 736
    • under construction...
Re: sorting in toprated album
« Reply #2 on: May 08, 2005, 10:04:11 pm »

works for me. Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.