Please help integrating full zenphoto into external website

Hi, I'm looking for some help. I'm not a developer, just a designer learning as I go and it's been a challenge trying to integrate the full zenphoto into my external site. I understand that you have a zenphoto as 'plugin' but even that makes little sense to me. Is there a demo page that I can reference the way the code is setup?

So it seems like a lot of this documentation is targeted at seasoned developers. I don't understand how to call the PHP script, where it goes (heading, body?) and what not. I'm intermediate when it comes to developing. If anyone can help, I would appreciate it. Thanks.

Comments

  • Your best bet is "learn by example" (a tried and proven technique used even by developers.) First, search this forum for this topic and see what others have done. Maybe they even have code snippets.

    Also do some research on the WEB on how to create WEB pages using PHP.

    I am sure you understand that we do not have the capacity to do such training.
  • acrylian Administrator, Developer
    Here are the three ways of doing this listed: http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#32
    On Zenphoto.org we basically use the Ruzee way. The easiest way would probably be #2 though.
  • I wanted to ask something about ruzee's way. How to get Wordpress to show correct Page Titles instead of Page Not Found?
  • acrylian Administrator, Developer
    1. Include the header like this on top of each Zenphoto theme file:
    `
    <?php require('../wp-blog-header.php'); ?>
    <?php get_header(); ?>
    `
    2. Then modify the header.php of your wordpress theme. Here is some rough code how we do it on zenphoto.org:
    `
    <?php $url = explode("/", $_SERVER['REQUEST_URI']); ?>

    <?php bloginfo('name'); ?>
    <?php
    switch($url[2]) {
    case "showcase":
    echo " » Showcase";
    break;
    case "theme":
    echo " » Themes";
    break;
    case "screenshots":
    echo " » Screenshots";
    break;
    case "page":
    echo " » Search";
    break;
    default:
    wp_title();
    break;
    }
    ?>

    `
    This is of course hardcoded for our specific use.
  • This can be a tedious job with using multiple switch statements for url[2], url[3] and url[4].

    Any simpler method where we can import titles as ZenPhoto uses it?
  • acrylian Administrator, Developer
    Sure, you can use the array fields like `$url[2]` directly to get the names from the url (note this are the foldernames of albums that do not necessarily have to be the same as titles) but then you should escape it for security reason (Wordpress has functions for that. please refer to the WP codex as I do not remember them right now).
  • great idea. thanks acrylian
Sign In or Register to comment.