Member
Member
mjahkoh   21-04-2012, 11:19
#1
<?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');

?>
Administrator
Administrator
acrylian   21-04-2012, 12:34
#2

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'".

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.