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 in Album Description  (Read 2173 times)

0 Members and 1 Guest are viewing this topic.

Nelson

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Search in Album Description
« on: January 25, 2012, 04:34:02 pm »

Hi all..

Im looking for a way to integrate the album description to be searched. Is there an easy way to do this?

I would like to give some albums information in the description.. e.g 2000m2, amsterdam

So users can search an album where I specified the M2 of a building and the location of a building. Not specific the picture/image but the whole album.

thnx for the response

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Search in Album Description
« Reply #1 on: January 25, 2012, 04:51:00 pm »

Open include/search.inc.php, find
Code: [Select]
." WHERE (`title` " . implode(" $type `title` ",$albcat_terms) . ") $FORBIDDEN_SET";and replace with
Code: [Select]
." WHERE ( (`title` " . implode(" $type `title` ",$albcat_terms) . ") OR (`description` " . implode(" $type `description` ",$albcat_terms) . ") ) $FORBIDDEN_SET";
Logged

Nelson

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Search in Album Description
« Reply #2 on: January 26, 2012, 08:42:42 am »

Thank you very much Αndré! This worked great!

Topic solved!!
Logged

ridersonline

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Search in Album Description
« Reply #3 on: February 23, 2012, 04:25:45 am »

I need this feature as well on fresh 1.5.18.  I had it in cpg1.2 but this hack seems to produce a different result.

How does it determine which thumb from the album to display ?  In my case it is not using the main album thumb I have selected.

Can it just display main album thumbnail...  and NOT the album description on search result ?

Thanks...  Jeff
Logged

ridersonline

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Search in Album Description
« Reply #4 on: February 23, 2012, 08:43:45 pm »

Is this statement from the file why I am getting the wrong thumbnail ?

Code: [Select]
// TODO: query above only pulls in last_pid in each album, not correct album thumb as set by user
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Search in Album Description
« Reply #5 on: March 01, 2012, 03:27:07 pm »

I don't know. Please don't hijack threads and post unrelated questions. Instead, please start your own thread while respecting our board rules.


Locking.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.