zenphoto, zenpage and a different index

Hi, i installed the last zenphoto and zpage in the "zenphoto" directory in the root of the site.
I have and index.php in the root i made.
I've copied this code at the top of index.php

define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
header ('Content-Type: text/html; charset=' . getOption('charset'));

But i can't show footer, sidebar and links are broken.
What to do?

Comments

  • zenpage takes a little more that just the zenphoto template functions to work. I do not know it this is sufficient, but at least you will have to add a require_once statement for the zenpage template functions.
  • acrylian Administrator, Developer
    Zenpage needs a normal Zenphoto install, no need to include anything. Maybe you could explain a little further what you are trying to do?
  • Hi all, i'm tryng to have an index in the root of the site with zppage components themes, and styles.
    the index file is in the root of the site, zp is installed into "/zenphoto", but i'm getting inclusions errors.
  • acrylian Administrator, Developer
    Then install zenphoto in the root.
  • I need to have an index different from the default zp index.
    Thank you for help!
  • When i used wordpress i remember there was the option to choose a page as index.
    Why in next releases of zpage realize it?
  • acrylian Administrator, Developer
    Why? If you don't tell more details we won't be able to help any further. Besides that the Zenpage plugin has not been tested that way nor is it actually meant to be used that way.
  • I think i'm not explayning well. Sorry for this.
    The default zenpage index with galleries, for my site should be a secondary page accessible only from links in the menu.
    So i should create another page, with themes, styles, menus etc. that zenphoto uses.
    I did it, but calling sidebar and footer i get this error
    Warning: main(footer.php) [function.main]: failed to open stream: No such file or directory in /membri/assdhlpicinisco/index.php on line 50
  • You probably want a separate index page from the normal gallery page. This is the way the Efferevescece+ theme uses zenpage--essentially the index.php page is the news page with a link to the gallery which looks like (and actually is) the index.php page of a zenphoto installation not using zenpage.

    There is now a brief desctiption of this in the themeing tutorial http://www.zenphoto.org/2008/05/theming-tutorial/

    But briefly, You want to rename your current index.php file to gallery.php, create a new index.php script for your "news" page, and set the theme option `custom index page` to gallery.
  • Hi sbillard, i had a fast look at your reply and the things to do, now i'm going at work, this afternoon i'll try to take it working. You wrote all i need!! Thank you for this, and sorry for my english!!Bye
  • Now all is working prectly, many thanks to sbillard and acrylian!!!
    See you!
Sign In or Register to comment.