forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Nelson on January 25, 2012, 04:34:02 pm

Title: Search in Album Description
Post by: Nelson 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

Title: Re: Search in Album Description
Post by: Αndré 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";
Title: Re: Search in Album Description
Post by: Nelson on January 26, 2012, 08:42:42 am
Thank you very much Αndré! This worked great!

Topic solved!!
Title: Re: Search in Album Description
Post by: ridersonline 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
Title: Re: Search in Album Description
Post by: ridersonline 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
Title: Re: Search in Album Description
Post by: Αndré 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.