Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Search an Individual Albums Photo Description  (Read 2253 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: 15369
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: 15369
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.014 seconds with 22 queries.