include zenphoto

Hi,

This is my first post. Well, I really need some help...
How can I "include" zenphoto in a existing website? I cant show you any website now because it's still under development. I havent published anything on the web. I'm using XAMPP on Windows XP.

I cant seem to make the code on another post (http://www.zenphoto.org/support/topic.php?id=2775) to work.

Thank you.

Comments

  • acrylian Administrator, Developer
    An easy way is to just make a Zenphoto theme that looks like your website.
  • luv Member
    Thanks for replying acrylian but that's not an option. The custom-made portal is done already not to mention that it's quite huge and i just want to add the photo gallery in the index page.

    I tried `include '/zenphoto/index.php'` and received this cookie errors. I disabled(comment) those cookie settings of zenphoto and the index appeared but it's not displaying the page correctly. I clicked on the album and I got this "page not found" error.
  • os07 Member
    I had the same questions for a while - I just couldn't get my head around it. It's really fairly simple to include an entire zenphoto gallery on almost any website. The key to the whole thing, I think, is to examine the index.php, album.php and image.php files in the top folder of the ZP theme you want to use.

    As generously explained on this forum, you can then change the code in the CSS file that is part of your theme - to make the ZP elements in those files look exactly like the rest of your site. If you are comfortable with CSS, it's not really very difficult. If you are not experienced in CSS, it might seem impossible.
  • luv Member
    Thank you for posting os07. It's not actually the look or theme that Im having problems with because the default theme is ok. It's this "page not found" error. The album (there's only one album for testing) thumbnail isnt displayed, only the title or the album name and clicking the title (link to album) displays "page not found". I checked the Zenphoto (i.e. /localhost/mysite/zenphoto) outside of the main index and it displays the gallery without problems. I have edited some of the Zenphoto files too.
  • acrylian Administrator, Developer
    Did you take a look at this?: http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin

    The "page not found" could be related to a htaccess / mod_rewrite conflict. If you site already uses one this could be since zenphoto has it's own.
  • luv Member
    The htaccess/mod_rewrite is one of those problems I experienced upon installing this but I solved it already. So this time, for sure, it's not about mod_rewrite anymore. But I havent checked zenphoto as a ‘plug-in’. I will take a look at that.

    For now, I created a solution by creating a slideshow on the index of the site and when the user clicks on the slideshow images it will navigate to zenphoto folder/page. This works as long as there's a read-write access to albums folder.

    Thanks a lot!
Sign In or Register to comment.