Hi,
I´m trying to implement Zenphoto into the layout of my existing site, but as the noob i am i can´t get it to work
Just to get the guidance from
http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin clear, maybe you can give me some explanations:
let´s say the script is at
http://www.mywebsite.com/zenphoto, my webpage is in the root folder let´s call it gallery.php
if i add
<?PHP
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'zenphoto');
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);
}
}
?>
i get an error at the line $_zp_plugin_scripts = array();
could you please point me to the right direction what seems to be the the problem, i know it´s pretty basic, but then it might be really easy to help me out a little
are there any more codelines i need to add in order that the gallery shows up, i don´t really get the part
"NOTE: Many of the zenphoto template-functions operate on $_zp_current_album, $_zp_current_image, and $_zp_gallery. The latter are refered to as the current album and current image in the function documentation (see below.) These variables normally are setup by the process of loading the root index.php file and proceding to your theme php file. They will NOT be setup automatically for you when you use zenphoto as a plugin. You can use the functions zp_load_gallery(), zp_load_album($folder), and zp_load_image($folder, $filename) to set these variables up. $folder is the path from the album folder to the album. $filename is the name of the image within $folder."
and which part i have to use, so that the gallery shows up.
it would be really nice to give me a step by step instruction, maybe it will help some other people as well. I installed some other gallerys and could customize them, but here i don´t really seem to get it from the instructions i have, sorry
thanks
Wahoo
Comments
the error i´m getting is:
Parse error: syntax error, unexpected T_VARIABLE in /kunden/200559_3380/webseiten/portfolio.php on line 128
which is the line:
$_zp_plugin_scripts = array();
thank you for your time