ZenphotoCMS Forum
Zenphoto as a "plug-in" - 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: Zenphoto as a "plug-in" (/thread-10166.html)



Zenphoto as a "plug-in" - ClicClac - 2012-07-08

Hello,

I need your help,

Here my zenphoto installation:
/
/zenphoto/
/photoblog/script_using_zenphoto.php
/wordpress/

I'm using this code in my script:
`

define('SERVERPATH',$_SERVER[DOCUMENT_ROOT].'/zenphoto');

define('WEBPATH','../zenphoto');

//echo SERVERPATH => /Library/WebServer/Documents/zenphoto => OK

require_once(SERVERPATH.'/zp-core/template-functions.php');

`

and I get this error:

Not Found
The requested URL /photoblog/zp-core/setup.php was not found on this server.

define paths seems ok.
This work fine with 1.4.2




Zenphoto as a "plug-in" - acrylian - 2012-07-08

You need to install Zenphoto as described on the installation page. Also note that you this way will not be able to use the complete Zenphoto. This as a plugin way is meant to use certain functions like latest images or so outside. If you wish to use Zenphoto with all bells and whistles withing /photoblog rename the folder zenphoto accordingly. Zenphoto is a standalone system




Zenphoto as a "plug-in" - sbillard - 2012-07-09

There was a similar thread recently. You probably need to install the nightly build for this to work. Also review the article "zenphoto as a plugin" as it has changed somewhat due to constraints added to allow use of symlinked installations.




Zenphoto as a "plug-in" - ClicClac - 2012-07-09

You need to install Zenphoto as described on the installation page.

Was done. Zenphoto work fine in it's zenphoto folder!

I was using 2-3 functions (latest images, tags) outside zenphoto. I will made my own function.




Zenphoto as a "plug-in" - acrylian - 2012-07-09

Ok, be sure to install the 1.4.3 trunk nightly and re-read the "Zenphoto as a plugin" article. Then using such function should work.