![]() |
|
include and link in a new window - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: include and link in a new window (/thread-489.html) |
include and link in a new window - drebin - 2006-05-05 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'); 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? include and link in a new window - Chilifrei64 - 2006-05-05 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. include and link in a new window - drebin - 2006-05-05 I dit it, i modify function.php : define('SERVERPATH', 'C:...\zenphoto'); for template-functions.php, which line would I change? include and link in a new window - drebin - 2006-05-05 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... include and link in a new window - drebin - 2006-05-05 i don't know if it is clean but i have fixed it doing : define('WEBPATH', '/zenphoto'); un function.php and
in template.function.php I hope it won't generate too much error... |