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: Sort Order for Keywords-Tags  (Read 3279 times)

0 Members and 1 Guest are viewing this topic.

newx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Sort Order for Keywords-Tags
« on: January 25, 2011, 08:19:53 pm »

Hey and sorry for my bunch of questions  ::)

I want to reverse the sort order of keyword-tagged archive pages.
I tagged every picture with a keyword - if i now klick that, the pictures show up from old to younger
Is there a way to reverse the order? I want the newest pictures to show first an older last.

Thx

NewX
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Sort Order for Keywords-Tags
« Reply #1 on: January 25, 2011, 08:40:05 pm »

Please post a screenshot of the page where you want to change the sort order, as I currently don't know where you want to change it.
Logged

newx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Sort Order for Keywords-Tags
« Reply #2 on: January 25, 2011, 08:43:49 pm »

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Sort Order for Keywords-Tags
« Reply #3 on: January 25, 2011, 08:47:17 pm »

So you want to reverse the order of the search results, am I right? A link to that page would help a lot.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Sort Order for Keywords-Tags
« Reply #4 on: January 25, 2011, 08:48:39 pm »

Logged

newx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Sort Order for Keywords-Tags
« Reply #5 on: January 25, 2011, 09:05:33 pm »

right link - thought you want no link ;) so i did an screen as requestet :)

reverse the order of the search results - yes - newest styles should appear first.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Sort Order for Keywords-Tags
« Reply #6 on: January 25, 2011, 09:11:58 pm »

thought you want no link ;) so i did an screen as requestet :)
I initially thought it were something only the admin can access ;)


reverse the order of the search results - yes - newest styles should appear first.
Is it okay if it applies to all 'regular' search results or should it only apply to your special links on the right side?
Logged

newx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Sort Order for Keywords-Tags
« Reply #7 on: January 25, 2011, 09:19:01 pm »

I think its ok for every search result - the user like to see actual hairstyles first i guess :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Sort Order for Keywords-Tags
« Reply #8 on: January 26, 2011, 09:24:31 am »

We have different possibilities. If you change the default search order in the config, the search results will be displayed the same way. I think that's not what you're looking for, as it affects the search order of your whole gallery. I think it's the same for the second option (adding the sort=dd parameter to the url), as it affects regular albums as well.

So I think the only option will be to edit a core file. Open include/search.inc.php, find
Code: [Select]
$sort_order = isset($sort_array[$sort_code]) ? $sort_array[$sort_code] : $sort_array[$CONFIG['default_sort_order']];and replace with
Code: [Select]
$sort_order = 'pid DESC';
Logged

newx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Sort Order for Keywords-Tags
« Reply #9 on: January 26, 2011, 10:05:48 am »

Works Great!
Thank you so much!

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Sort Order for Keywords-Tags
« Reply #10 on: January 26, 2011, 10:30:10 am »

Marking accordingly. Please do that yourself in the future. Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.