Hello. I just installed a ZenPhoto, and I have a couple of questions:
$_zp_current_admin_obj. See the user guide on http://www.zenphoto.org/news/category/user-guide/ and also review the functions documentation on https://docs.zenphoto.org/. Also review the theming tutorial if you haven't already.The setup folder needs occasionally to be used and Zenphoto does protect the files after it ran successfully. You can manually protect them or renable them. So it should not really be blocked. Please see the user guide for recommended permissions.
Yes, videos require the class video plugin to be enabled to have basic HTML5 support in capabale browsers.. Only mp4 and mp3 files will work as they are the base. Additionally you can enable player plugin like the included jPlayer.
Please take some time to look through everything and which plugins are available. A lot is explained on the options and the backend itself. Note that some plugins do not work out of the box with every theme as they require theme modification.
I'm sorry to bother you again.
I wanted to understand how the zp_loggedin() function works.
According to the description, it should return 0 or 1, but I write code:
into zenphoto\themes\basic\image.php and get:
1996419053
1073741824
1996419053
What do these numbers mean?
zp_loggedin() is to be used boolean and not to be echoed. You use if like if(zp_loggedin()) { … }. It does return a "true value" which perhaps a little unclear means if it returns a valid value resulting in true in an if/else check. It returns false otherwise. In PHP null or an empty value also means false in that context and any proper value results in true.
This would be the general check if the current visitor is a loggedin user. The rights constants are optional if you want to check for somenthing specific.
If you need to check if an actual object (image) is visible for a specific user there are also various class methods like isMyItem() or isProtected(). There is a basic introduction to the object model on the user guide.