zp_loggedin status not available in custom page

<?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');

?>

Comments

  • acrylian Administrator, Developer
    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'".
Sign In or Register to comment.