ZenphotoCMS Forum
Auto Hide Photos Based on Keyword/Tags of EXIF? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Auto Hide Photos Based on Keyword/Tags of EXIF? (/thread-6723.html)



Auto Hide Photos Based on Keyword/Tags of EXIF? - SendDerek - 2010-03-07

Hello There!

Just wondering if there was a way to somehow filter or automatically make a photo hidden based on a keyword or tag in EXIF? Something like this in the images.php file I suppose may work, but I wouldn't mind an extra hand:
`

if (printTags('links', gettext('taglist')) != "private")

$fullimage = getFullImageURL();

else

$goto_next_image();

endif

`
Well, this is more pseudo code than anything, but I hope the point is understood. Maybe I'm looking in the wrong file? Maybe i.php is more appropriate for something like this?




Auto Hide Photos Based on Keyword/Tags of EXIF? - sbillard - 2010-03-07

This is something you would have to implement yourself. The "filter" facilities of Zenphoto should aid you in doing this, though. Take a look at the filter-new_object plugin for a start. There is a filter that gets called whenever a new image is discovered. You should be able to check the tags and if 'private' is one of them mark the image as not visible.




Auto Hide Photos Based on Keyword/Tags of EXIF? - jsoupene - 2010-03-18

SendDerek, if you get this working I would be interested in knowing how you did it. I have the same need, but am not familiar enough w/ PHP to even start on something like this. Thanks in advance!!!