Member
Member
drebin   05-05-2006, 16:14
#1

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?

Member
Member
Chilifrei64   05-05-2006, 16:58
#2

for starters.. you should be able to just modify the path in the config.php file as opposed to modding the core files for your paths.

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.

Member
Member
drebin   05-05-2006, 17:48
#3

I dit it, i modify function.php :

define('SERVERPATH', 'C:...\zenphoto');
define('WEBPATH', '/zenphoto');
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");

for template-functions.php, which line would I change?

Member
Member
drebin   05-05-2006, 17:59
#4

i got it!

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

Member
Member
drebin   05-05-2006, 18:06
#5

i don't know if it is clean but i have fixed it doing :

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

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