Search by album name or custom field? Search by album name or custom field?
 

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 by album name or custom field?

Started by virgvv, April 10, 2007, 07:00:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

virgvv

I was wondering if it is possible to fetch photos by album name (rather than numeric ID) and/or the text in a custom field.  The $format tags seem to have what I need, but if I understand the user manual correctly, they're used in the options array, not the source parameters.

Is there a way to do what I want without hacking the code?

Thanks!

vuud

Quote from: virgvv on April 10, 2007, 07:00:15 AM
I was wondering if it is possible to fetch photos by album name (rather than numeric ID) and/or the text in a custom field.  The $format tags seem to have what I need, but if I understand the user manual correctly, they're used in the options array, not the source parameters.

Is there a way to do what I want without hacking the code?

Thanks!

Not directly.  Instead of hacking the code, I would recommend adding code to handle it on your page.  You can use CpmFetch to get a list of albums, search that, then call the normal code with the number.   At least for the album.  There is no search in a custom field as of yet.  You can now search the title and caption text though.

If you do opt to hack a search the custom fields, do it in the makesourcesql function and post a patch...  maybe I will just merge it in (thats for the latter).




Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco