zenphoto forums » Usage Support

Zenphoto as a "plug-in"

(5 posts)
  • Started 11 months ago by ClicClac
  • Latest reply from acrylian
  1. ClicClac

    Member
    Joined: Jun '08
    Posts: 29

    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

    Posted 11 months ago #
  2. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,494

    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

    Don't forget to read the Forum rules and usage resources
    Posted 11 months ago #
  3. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,818

    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.

    Don't forget to read the Forum rules and usage resources
    Posted 11 months ago #
  4. ClicClac

    Member
    Joined: Jun '08
    Posts: 29

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

    Posted 11 months ago #
  5. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,494

    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.

    Don't forget to read the Forum rules and usage resources
    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.