Example code for external image (block) slideshow

mtense

Joined: 2005-10-08
Posts: 7
Posted: Sun, 2010-04-18 19:19

I wanted something like image block, but much cooler for my homepage.

It was pretty easy to pull images from my Gallery2 installation into Slideshow2 to support cool transitions between a set of images.

Check out the demo.

My writeup (and download) for how to do it is here.

I will get this updated for G3 when I have a chance.

I am happy for feedback. A code review by someone that really knows the gallery api would be nice. Then maybe it would be appropriate to host on the codex.

Best,
mtense

Edit: This seemed to generate no interest, so I changed the title.

 
ewanvrooyen

Joined: 2010-08-16
Posts: 4
Posted: Mon, 2010-08-16 16:46

Firstly, I must say I really like the demo.

I am having dificulty gettting it to work on my site though.

=====
I would like detailed instructions on how to install slideshow2, please. (I followed the following link, but it is a bit unclear to me http://www.mtense.com/g2-slideshow-2)

I installed Gallery2 on my root
/public_html/gallerytwo

Where do I upload the slideshow2 folder (Slideshow 2!)? I initially uploaded the folder to a sub folder and the slideshow works from there, but I want to add the slideshow to my index.html (homepage) file on my root:
/public_html/index.html

I also changed the index.html to index.php, but it did not work. I did add the code as per http://www.mtense.com/g2-slideshow-2, but nothing gets pulled in. I change the follwing lines:
// physical path to gallery installation
07. $galleryPath = $_SERVER['DOCUMENT_ROOT'] . '/gallery';
08. // relative URL to gallery installation
09. $galleryUri = '/gallery';

to
// physical path to gallery installation
07. $galleryPath = $_SERVER['DOCUMENT_ROOT'] . '/gallerytwo';
08. // relative URL to gallery installation
09. $galleryUri = '/gallerytwo';

Where do I upload the "g2GetImages.php" and "g2slideshow.php"?

Your help would be greatly appreciated.

Regards

Ewan

 
mtense

Joined: 2005-10-08
Posts: 7
Posted: Thu, 2010-09-02 14:41

g2slideshow.php is an image of embedding the slideshow. Try to get it working before adding the slideshow to your homepage.

Change the settings in g2slideshow.php. Then upload g2slideshow.php and g2GetImages.php to the root. Then try to access g2slideshow.php.

www.yoursite.com/g2slideshow.php

Let me know what you get.

Best,
mtense