hi,
as my zen photo folder is in include in my index web site, i change the following in my function.php files:
define('SERVERPATH', 'C:\Program Files\EasyPHP1-8\www\zenphoto');
define('WEBPATH', '/zenphoto');
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");
but i still have a problem: when i click on a album folder, it opens it in a new window.
so i would like to change the url link structure
do you know if it's possible?
Comments
as far as the links in a frame.. you would have to mod functions which spit out links in template-functions.php to include target="self" or however that tag goes.
define('SERVERPATH', 'C:\...\zenphoto');
define('WEBPATH', '/zenphoto');
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");
for template-functions.php, which line would I change?
return WEBPATH . "/index.php?pid=111&album=" . urlencode($_zp_current_album->name);
however now my urls look like:
http://localhost/zenphoto/index.php?pid=111&album=test
i can define('WEBPATH', '/'); in function.php, but it will make an error searching for albums...
I don't know how to fix it...
define('WEBPATH', '/zenphoto');
define('WEBPATH2', '');
un function.php
and
return WEBPATH2 . "/index.php?pid=111&album=" . urlencode($_zp_current_album->name);
in template.function.php
I hope it won't generate too much error...