![]() |
|
if-then function for unpublished images - 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: if-then function for unpublished images (/thread-11186.html) |
if-then function for unpublished images - usartdude - 2013-07-09 I'm trying to make a signal for my image.php page so when i am in the page as admin, it alerts me that the image is unpublished. I thought some kind of if-then like this would work: true false i am getting an error that says: Call to undefined function getImagePublish() what am I doing wrong? if-then function for unpublished images - sbillard - 2013-07-10 Don't know where to start. I guess you have not read the themeing guide nor the information about the zenphoto object model. There is no such functon What you want is the if-then function for unpublished images - usartdude - 2013-07-10 I have read both, but i don't have a good understanding of object orientation, so a lot of the information goes over my head. thanks for pointing me in the right direction. I was able to get the result i wanted by changing it to: true false if-then function for unpublished images - acrylian - 2013-07-10 The flag_thumbnail plugin has an option to add an icon or text note to mark unpublished images, too. It uses a filter so no need to change the theme. However, it does that only on the thumbnails, not on the image page itself. |