include and link in a new window

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

  • 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.
  • drebin Member
    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?
  • drebin Member
    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...
  • drebin Member
    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...
Sign In or Register to comment.