Embed Simple Gallery Display?

Paul.Hunt

Joined: 2007-03-24
Posts: 20
Posted: Sat, 2007-03-24 14:49

I want to simply display a given album in a page on an existing site. No bells and whistles. No log-in, no album switching, no uploads, just a straight-forward display. One admin will add pictures by linking directly to the album. Everyone else will just browse the pictures in a site page. I've looked for instructions here and by Googling and they all seem to be trying to things way more complex than what I want. I've tried the documentation and that seemed weak (to say the least) in this area.
1. Is there a simple way to do this with an HTML snippet added to my page?
2. If not, are there (or can anyone provide) any good step-by-step instructions on how to accomplish this?
__________________
Thanks,
Paul

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2007-03-24 17:39

Upload this to your gallery2 directory and navigate to it.
I added simple "hints" inside.
-s
FlashYourWeb and Your Gallery

 
Paul.Hunt

Joined: 2007-03-24
Posts: 20
Posted: Mon, 2007-03-26 18:54

Thank you. I will try this tomorrow and let you know how it works for me.

Paul

 
Paul.Hunt

Joined: 2007-03-24
Posts: 20
Posted: Wed, 2007-03-28 20:39

OK. So I have Gallery2 installed in "public_html" as "gallery2" (via Fantastico at my host). I uploaded the file to there and navigated to it, which launched Gallery 2.1 Updater. After authentication, it said "Error: Some files and or directories in your storage directory are not writeable by the webserver user. Run chown -R webserverUser /home/elysales/public_html/gallery/g2data/ OR run chmod -R 777 /home/elysales/public_html/gallery/g2data/."
Now I installed in "gallery2" not "gallery".
But the updater created a folder "gallery".
In both "gallery" and "gallery2" the folder "g2data" is already 777.

????

Paul

 
Paul.Hunt

Joined: 2007-03-24
Posts: 20
Posted: Wed, 2007-04-04 15:48
suprsidr wrote:
Upload this to your gallery2 directory and navigate to it.
I added simple "hints" inside.
-s
FlashYourWeb and Your Gallery

Thank you. I used this as a starting point (after a total re-install - but that's another issue) and it worked for me. I then went on to tweak the theme and album templates to remove some stuff I didn't want. It is now a seamless integration.

Interestingly, I also tried to move the gallery page outside of the /gallery2/ directory, with appropriate modification of the require_once and $ret lines and it failed in a peculiar way. (The details of which this forum keeps dropping when I preview. I'll try to add them as a separate post.)

 
Paul.Hunt

Joined: 2007-03-24
Posts: 20
Posted: Wed, 2007-04-04 15:49

When I looked at the source, it showed it as "(mysite)/galleryindex.php/galleryindex.php/galleryindex.php/galleryindex.php/galleryindex.php/galleryindex.php" for however many times I had navigated within the gallery. After 8 or so iterations, it no longer included my header and footer. (<?php include("include/footer.html"); ?>)

Paul

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2007-04-04 19:52

hmm, did you leave the questionmark after /galleryindex.php?

here it is in my gallery directory, and here it is outside.

-s
FlashYourWeb and Your Gallery

 
Paul.Hunt

Joined: 2007-03-24
Posts: 20
Posted: Wed, 2007-04-04 20:16
suprsidr wrote:
hmm, did you leave the questionmark after /galleryindex.php?

here it is in my gallery directory, and here it is outside.

Yes I did. So it must be something else I did. What do the embed and $ret lines look like in your "outside" version?

Paul

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2007-04-04 21:04
 
Paul.Hunt

Joined: 2007-03-24
Posts: 20
Posted: Thu, 2007-04-05 15:21

Almost works. I tried your "outside version" and everything works except going back from a picture to the gallery index which gives:

Safari can’t open the page “http://../galleryindex.php?&g2_itemId=49” because it can’t find the server “..”.

Firefox does the same thing.

But at least it doesn't do the looping iteration I was seeing earlier.