Used to use the below code, to show the latest albums on another page, other then wordpress, but with the new newest version 1.2.6 RC2, it gives me Fatal error: Call to undefined function printlatestalbums()
`
<?php define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'pasteventsv3');
require_once (WEBPATH . "/" . ZENFOLDER . "/template-functions.php") ; //load extensions
$_zp_plugin_scripts = array();
$_zp_flash_player = NULL;
$curdir = getcwd();
chdir(SERVERPATH . "/" . ZENFOLDER . PLUGIN_FOLDER);
$filelist = safe_glob('*'.'php');
chdir($curdir);
foreach ($filelist as $extension) {
$opt = 'zp_plugin_'.substr($extension, 0, strlen($extension)-4);
if (getOption($opt)) {
require_once(SERVERPATH . "/" . ZENFOLDER . PLUGIN_FOLDER . $extension);
}
}
?>
<?php printLatestAlbums(6, true, true, false, 100); ?>
`
Comments
`
<?php define('ZENFOLDER', 'zp-core');
define('WEBPATH', zenphotodir');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
require_once(WEBPATH . "/" . ZENFOLDER . "/plugins/image_album_statistics.php");
?>
<?php printLatestAlbums(6, true, true, false, 100); ?>
`