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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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