Search in Album Description Search in Album Description
 

News:

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

Main Menu

Search in Album Description

Started by Nelson, January 25, 2012, 04:34:02 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Nelson

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


Αndré

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

Nelson

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

Topic solved!!

ridersonline

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

ridersonline

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

// TODO: query above only pulls in last_pid in each album, not correct album thumb as set by user

Αndré

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.