PDA

View Full Version : Multi galleries for homepage slideshow


girouardphotography
Mar-31-2007, 07:47 PM
Not sure if this can happen but, can I have more than one gallery on my homepage slideshow with random pictures from however many galleries?

Barb
Mar-31-2007, 07:53 PM
Not sure if this can happen but, can I have more than one gallery on my homepage slideshow with random pictures from however many galleries?

Hi :)

I'm afraid this won't work. However, you can use keywords for a link to your slideshow. For example, keyword the photos you wish to use with the keyword "favorite". Then, for your slideshow link, use:

http://yoursmugmugnickname.smugmug.com/keyword/favorite

That way, you can choose photos from several different galleries :)

Allen
Mar-31-2007, 07:56 PM
Not sure if this can happen but, can I have more than one gallery on my homepage slideshow with random pictures from however many galleries?
You can not have more then one gallery but one way to do it.
For the galleries you want in the slideshow add the keyword myslideshow to
each photo or to any other photos you want in your show.

Then in your slideshow footer code change the source Url to the keyword.

remove these two

slideshowUrl = "http://www.girouardphotography.com/gallery/2636867";
slideshowUrl = "http://www.girouardphotography.com/gallery/2612211";

and replace by this

slideshowUrl = "http://www.girouardphotography.com/keyword/myslideshow";

Holler back if you have any questions.

girouardphotography
Mar-31-2007, 08:16 PM
:bow:bow:bow:bow:bow:bow:bow:bow:bow:bow:bow:bow:b ow:bow:bow
Once again I must give it up to the masters. You guys rock.
:bow:bow:bow:bow:bow:bow:bow:bow:bow:bow:bow:bow:b ow:bow:bow

Alan Moore
Apr-30-2007, 08:51 AM
I used a slightly different approach to this. I used a random number generator that chooses the gallery for me. You have to manage it more readily than using the keyword approach, but it worked well for me. Each visit, the viewer gets a different set of photos. The values in the random code determine the maximum value of the random number; in my case 5 (4+1). Add the following to the section where you set the gallery - in most cases it's in your footer code:


gallery=Math.floor(Math.random()*4+1);
if(gallery==1) slideshowUrl = "http://www.alanmphoto.com/gallery/2749153";
if(gallery==2) slideshowUrl = "http://www.alanmphoto.com/gallery/2755473";
if(gallery==3) slideshowUrl = "http://www.alanmphoto.com/gallery/2751595";
if(gallery==4) slideshowUrl = "http://www.alanmphoto.com/gallery/2756624";
if(gallery==5) slideshowUrl = "http://www.alanmphoto.com/gallery/2748501";


I hope this helps.

Regards,

Alan