ZenphotoCMS Forum
zp_loggedin status not available in custom page - 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: zp_loggedin status not available in custom page (/thread-9884.html)



zp_loggedin status not available in custom page - mjahkoh - 2012-04-21

<?php
What can i do to expose zp_loggedin status in my custom page at the root. It returns false even when logged in the Admin pages. Ive tried this
// force UTF-8 Ï
global $_zp_authority;
$custom = SERVERPATH.'/zenpage/functions.php';
echo "custom: $custom";
if (file_exists($custom)) require_once($custom);
require_once(ZENFOLDER.'/zp-extensions/user_login-out.php');
require_once(ZENFOLDER.'/zp-extensions/register_user.php');
/**/
zp_register_filter('theme_head','colorbox_css');

?>


zp_loggedin status not available in custom page - acrylian - 2012-04-21

On Zenphoto theme custom pages you don't need to do anything. See the theming tutorial.

If you mean a custom page outside of Zenphoto you need to create the Zenphoto environment first. See the user guide on "zenphoto as a 'plugin'".