![]() |
|
problem with getGalleryIndexURL() function in a plugin - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: problem with getGalleryIndexURL() function in a plugin (/thread-5545.html) |
problem with getGalleryIndexURL() function in a plugin - Citron - 2009-07-27 Hi, I there anything special to use template functions in plugins ? Any idea on what can make this function returns nothing ? PS: I use the plugin in image.php, and in this image.php, I already use the getGalleryIndexURL() function without any problem. I just have a problem when using it inside a function of my plugin :S problem with getGalleryIndexURL() function in a plugin - acrylian - 2009-07-27 Does your plugin function define problem with getGalleryIndexURL() function in a plugin - Citron - 2009-07-27 Yes it does. I've checked other plugins which use this function, and it was the only difference Oh, after checking more carefully, I noticed that it does return something : '/' problem with getGalleryIndexURL() function in a plugin - Citron - 2009-07-27 Aaah, this is frustrating !! I can't find a proper way to retrieve the base gallery URL !! I tried to access WEBPATH but it's empty when used from my plugin's function ... Any idea ? problem with getGalleryIndexURL() function in a plugin - Citron - 2009-07-27 Ok, sorry to flood, but I've found a solution, although I don't know if it's really recommended to use this directly : FULLWEBPATH seems to be correctly set, so I use it. |