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?
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 getImagePublish() There is a method of the gallery class by that name, but it must be invoked as a method of a object of class gallery. Even then, it will not give you the information you wish--it returns the default "publish" option for images.
What you want is the getShow() method of the image object.