Member
Member
luv   2008-05-27, 10:24
#1

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.

Administrator
Administrator
acrylian   2008-05-27, 10:38
#2

An easy way is to just make a Zenphoto theme that looks like your website.

Member
Member
luv   2008-05-28, 01:08
#3

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.

Member
Member
os07   2008-05-28, 03:28
#4

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.

Member
Member
luv   2008-05-28, 05:38
#5

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.

Administrator
Administrator
acrylian   2008-05-28, 09:12
#6

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.

Member
Member
luv   2008-05-29, 01:31
#7

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!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.