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: How do you order search results by title?  (Read 6179 times)

0 Members and 1 Guest are viewing this topic.

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
How do you order search results by title?
« on: December 05, 2005, 05:31:17 pm »

I thought this option was to be included in 1.4.2 but I can't find where I read about it.

Can it be done, if so how, please?
« Last Edit: December 21, 2005, 03:11:49 am by GauGau »
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: How do you order search results by title?
« Reply #1 on: December 06, 2005, 07:55:59 pm »

I've been searching through old topics to see if I can find an answer on this one. Seems it is something within include/search.inc.php that sets the order of thumbnails displayed, but I don't understand the settings. I did come across the topic that made me think it would be in 1.4.2 and it is at:-

http://forum.coppermine-gallery.net/index.php?topic=8186.msg36198#msg36198

Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: How do you order search results by title?
« Reply #2 on: December 20, 2005, 01:45:05 am »

Still no replies on this topic, any suggestions from anybody?
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

ecto

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 144
    • My very incomplete gallery
Re: How do you order search results by title?
« Reply #3 on: December 20, 2005, 01:53:57 am »

Since the search results display in thumbnails.php, it uses the same sort order as you have set in your gallery's configuration, under "Thumbnails view" -> "Default sort order for files".
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: How do you order search results by title?
« Reply #4 on: December 20, 2005, 01:56:18 pm »

Since the search results display in thumbnails.php, it uses the same sort order as you have set in your gallery's configuration, under "Thumbnails view" -> "Default sort order for files".

Thanks for the reply. I have just tried resetting the default sort order to title ascending, then "searched" for some photos, but they are displayed in filename order.

I was sure I had tried all possibilities before starting this topic, and the results are still the same. What I need to be able to do is have the default order set as filename ascending, but order after a search to be in title ascending order.
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do you order search results by title?
« Reply #5 on: December 20, 2005, 01:57:13 pm »

clear your cookies and cache as well.
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: How do you order search results by title?
« Reply #6 on: December 20, 2005, 02:02:20 pm »

clear your cookies and cache as well.

Thanks Gau Gau,

I was just about to post that search results finally came out in correct order, and that was without clearing cookies & cache.

Looks like me being a bit stupid - blame it on my age!! Haven't quite found out where I went wrong in all my other attempts to get them in the right order, but at least I know it can be done.

Thanks again.

Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

ecto

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 144
    • My very incomplete gallery
Re: How do you order search results by title?
« Reply #7 on: December 20, 2005, 02:26:23 pm »

I was sure I had tried all possibilities before starting this topic, and the results are still the same. What I need to be able to do is have the default order set as filename ascending, but order after a search to be in title ascending order.
---
I was just about to post that search results finally came out in correct order, and that was without clearing cookies & cache.

So it works now? Uhm.. I didn't belive it was possible to have different default sort orders for displaying thumbnails regularly and after a search (without doing a hack). Have I missed something..?
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: How do you order search results by title?
« Reply #8 on: December 20, 2005, 03:00:51 pm »

Ecto,

If it's any help (and this is obviously not from an expert) my default order is name ascending, but before doing a search, if the order is set to title ascending when viewing thumbnails in an album - then the results of the search are also in title order. For some unknown reason, when I first tried this after upgrading to 1.4.2, I could not get it to work. But I am pleased to say, it does now.
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

ecto

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 144
    • My very incomplete gallery
Re: How do you order search results by title?
« Reply #9 on: December 21, 2005, 01:07:50 am »

Ah, yes. I guess the search function uses the sort order in the cookie then, if one exists.
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 20 queries.