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: Search an Individual Albums Photo Description  (Read 4682 times)

0 Members and 1 Guest are viewing this topic.

gtgillis

  • Contributor
  • Coppermine novice
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 40
Search an Individual Albums Photo Description
« on: March 20, 2012, 03:59:05 pm »

I am looking for an option, hack, plugin, etc. that will all me to select an individual album that I want to search from the search page.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Search an Individual Albums Photo Description
« Reply #1 on: March 20, 2012, 04:59:13 pm »

So you want to add a drop-down list with all albums to search.php, correct?
Logged

gtgillis

  • Contributor
  • Coppermine novice
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 40
Re: Re: Search an Individual Albums Photo Description
« Reply #2 on: March 20, 2012, 05:04:16 pm »

So you want to add a drop-down list with all albums to search.php, correct?

A drop down or a list with check boxes. With over 9000 photos in 246 albums my search results can be a little overwhelming. If I can specify an album or albums I could reduce the number of irrelevant results.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Search an Individual Albums Photo Description
« Reply #3 on: March 20, 2012, 05:26:52 pm »

A list may be too much depending on the number of albums (246 albums are already too much IMHO, and there are galleries with much more albums). A drop-down with the option "Search in all albums" followed by all albums is the better option I think. I'll check if it's easy to modify the code accordingly.
Logged

gtgillis

  • Contributor
  • Coppermine novice
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 40
Re: Search an Individual Albums Photo Description
« Reply #4 on: March 23, 2012, 07:33:39 pm »

Here is a hack to add a drop down list of albums to the search page. This will allow you to search an individual album for the search words. If you do not select an album then all albums are search just like normal

You can see it in action at http://www.rudebastard.com/coppermine/search.php

Replace your files with the ones attached. search.php goes in the main coppermine directory, search.inc.php goes in the include directory and english.php goes in the lang directory. If you are using a different language file you will need to add the following line to the lang_search section of the file you use and translate the words "All Albums".

Code: [Select]
$lang_search_php['all_albums'] = 'All Albums';
I am marking this thread as solved.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.