Where are the correct instructions for embedding?

MacQuarrie

Joined: 2009-08-26
Posts: 2
Posted: Wed, 2009-08-26 06:30

I downloaded the most recent version of Gallery2 a few days ago and installed it. Now I want to integrate it into my site. I tried using the "local" folder as per the instructions, but apparently I'm doing something wrong because it's not showing any changes that I make. So I switched approaches and tried the "gallery2embedded.php" method.

Unfortunately, the instructions for this are as clear as plaster.

1. You need to create a file called gallery2embedded.php in your gallery2 directory (or anywhere you like) and copy and paste the code below into the file.
Done.
2. Next you will need to check the paths at the top of the file to make sure they are correct for your installation of gallery2 and the location of your gallery2embedded.php file.
* path = Path to your gallery2 install
* g2Uri = absolute URL path from document root to the Gallery 2 directory
* embedUri = absolute URL path from document root + filename (and any query parameters, but NO path) for access point

I have no idea what the correct settings for these lines should be; why isn't there an example given? Should one of them be "home/foo/public_html/gallery2/" and another be "http://www.foo.com/gallery2/" ? Which is what?
* For more information see the EMBEDDING file under the docs directory of your gallery2 install
There is NO docs directory in my Gallery2 install. There's images, install, lib, locale, modules, themes, and upgrade. No docs. Am I supposed to play hide & seek?
3. Change the HTML code above and below the <?php echo $g2moddata['bodyHtml']; ?> to fit your needs (you can also do a php include to include your header and/or footer files)
4. In gallery2 under the site admin page change your cookie path to / and delete your cookies
5. In the site admin page, go to Modules and deactivate or reconfigure the URL Rewrite module

Where is Modules? There's nothing named Modules in the admin page.
6. Change your link to g2 to be this new gallery2embedded.php file you created.
What link?

It looks to me like the documentation has not been updated to match changes in the program, since it frequently refers to directories and settings that don't exist. Not only on this particular page, but on many others. I'm not a programmer, but I can follow instructions and have successfully done so to install many other programs. If the instructions are in error or unclear, I'm screwed. Any suggestions?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Wed, 2009-08-26 21:57

Try this:
http://www.flashyourweb.com/staticpages/index.php?page=embed-o-rator
it makes life easy.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
MacQuarrie

Joined: 2009-08-26
Posts: 2
Posted: Wed, 2009-08-26 23:46

Thanks, but I did a little googling and decided to switch to a different gallery program (Plogger). Had it up and running with proper template mods in about a half-hour.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Thu, 2009-08-27 00:43
 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Thu, 2009-08-27 07:37

For future reference, the embedding documentation starts here:
http://codex.gallery2.org/Gallery2:Embedding