New code update utilizes gallery's own slideshow module without need for my script(picLensRss.php):
Place this in gallery2/themes/your theme/templates/local/theme.tpl <- you may have to copy yours here.
Just above the </head>
oh ok, i was using a computer without cooliris installed, is it possible to add a view slideshow link that will work regardless of weather or not cooliris is installed?
Ok, took me 2 1/2 hours this morning to wrap my head around this one.
This adds our slideshow link to the $itemLinks array for any GalleryDynamicAlbum so no need to manually add your link.
add this to theme.tpl before the end of the head (</head>)
What is actually represented by %s ?
I am using your new Slideshow v.96 and have the delay set at 3 seconds. The above code does not pick up this value and Cooliris opens with setting 10 seconds. I got it my way by replacing the above %s by the delay I want i.e. 3.
'text' => 'View Slideshow': what should this entry be to get the value translated to my language (Dutch). Again got it my way by replacing it by the translated value 'Diashow Weergeven'.
Above gave wrong results in Carbon. Reinstated the original already present line and things work fine.
Quote:
title="`$itemLink.text`" text="" class=""}
Selecting a photo from a dynamic 'album' page will open this photo on a 'photo' page. When selecting 'View Slideshow' from this photo page, the slideshow presents all photo's which are in the folder of this current photo and not from the dynamic 'itemString'.
the 10 at the end of the code replaces the %s for the delay.
The slideshow module's delay variable is not available in these templates, you'd have to add it in theme.inc.
Quote:
'text' => 'View Slideshow': what should this entry be to get the value translated to my language (Dutch)
Normally the slideshow module would provide this translation, but its not involved in this function.
Quote:
When selecting 'View Slideshow' from this photo page, the slideshow presents all photo's which are in the folder of this current photo and not from the dynamic 'itemString'.
You are no longer in the dynamic album at this point.
regarding your post from 05-31:
That works brilliantly for getting the slideshow link away from the sidebar. I have been trying to get rid of my sidebar forever, just to give more space to images. http://dreadfulimagery.com/index.php?q=gallery&g2_itemId=324
I put your code just in the g->block type="core.ItemInfo"
I did change your code to fit:
Quote:
title="$itemLink.text" text="$itemLink.text"
to
Quote:
title="View Slideshow" text="View slideshow"
How can I apply the same View slideshow link to appear between album name and album size attributes, if I may be so bold as to ask? I have looked for hooks in all the other theme .tpl files.
Thank you for your help, I am grateful already.
Posts: 47
Hello,
I tried to use the above to activate slideshows in Tag albums, but nothing shows up?
Posts: 8339
Works for me on http://yoursite.net/gallery2/main.php?g2_view=tags.VirtualAlbum&g2_tagName=braiden
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 47
oh ok, i was using a computer without cooliris installed, is it possible to add a view slideshow link that will work regardless of weather or not cooliris is installed?
Posts: 8339
I'll look into it.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8339
Ok, took me 2 1/2 hours this morning to wrap my head around this one.
This adds our slideshow link to the $itemLinks array for any GalleryDynamicAlbum so no need to manually add your link.
add this to theme.tpl before the end of the head (</head>)
your slideshow link in album.tpl and/or photo.tpl needs to look like:
your theme may already have the foreach loop, so simply replace the slideshow link part.
enjoy
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 47
thanks suprsidr for all the help!!
one more question, is it possible to make the slideshow include all the images instead of just the one page?
if not I can just increase the number of images viewed on each page
Posts: 8339
Well, we don't always have $theme.allChildIds available, but this will check to see if we do:
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 47
works great thanks!
Posts: 21
Works great for me as well. Ran into few little issues:
theme.tpl:
What is actually represented by %s ?
I am using your new Slideshow v.96 and have the delay set at 3 seconds. The above code does not pick up this value and Cooliris opens with setting 10 seconds. I got it my way by replacing the above %s by the delay I want i.e. 3.
'text' => 'View Slideshow': what should this entry be to get the value translated to my language (Dutch). Again got it my way by replacing it by the translated value 'Diashow Weergeven'.
album.tpl:
Above gave wrong results in Carbon. Reinstated the original already present line and things work fine.
Selecting a photo from a dynamic 'album' page will open this photo on a 'photo' page. When selecting 'View Slideshow' from this photo page, the slideshow presents all photo's which are in the folder of this current photo and not from the dynamic 'itemString'.
Posts: 8339
the 10 at the end of the code replaces the %s for the delay.
The slideshow module's delay variable is not available in these templates, you'd have to add it in theme.inc.
Normally the slideshow module would provide this translation, but its not involved in this function.
You are no longer in the dynamic album at this point.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 26
regarding your post from 05-31:
That works brilliantly for getting the slideshow link away from the sidebar. I have been trying to get rid of my sidebar forever, just to give more space to images.
http://dreadfulimagery.com/index.php?q=gallery&g2_itemId=324
I put your code just in the g->block type="core.ItemInfo"
I did change your code to fit:
to
How can I apply the same View slideshow link to appear between album name and album size attributes, if I may be so bold as to ask? I have looked for hooks in all the other theme .tpl files.
Thank you for your help, I am grateful already.
Posts: 8339
css can position that where you want.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 26
http://dreadfulimagery.com/index.php?q=gallery&g2_itemId=324
works fine, I guess because it's inside an album, and there's photos present
http://dreadfulimagery.com/index.php?q=gallery&g2_itemId=67
No link present, because there's no photos present.
It is a list of albums, and I was hoping to have a View link on each of them, one less click for users to the cooliris. Any ideas?