Search in Album Description Search in Album Description
 

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

Main Menu

Search in Album Description

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

Previous topic - Next topic

0 Members and 1 Guest 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.