Hi,
Is there a way to generate the slideshow URL so that it can be used in navigation?
Not explaining myself well, I want to link directly to album slideshows from the main navigation on a site so that no matter what page or which album you are in you can get directly to the slideshow. Basically I want the slideshow to be the default view for each album rather than the thumbnail images. I've search the forum but haven't been able to make head nor tail of whether this can be done.
Looking through the slideshow.php & at the form the printSlideshowLink() function generates, it looks like it passes the parameters via a url - something like index.php?p=slideshow&album=1 etc etc - but the url seems to go through a few different places before it is used. If I construct my own url based on what the form is passing, I get an 'invalid link' error.
Any suggestions/ideas?
Cheers
Lorns
Comments
The url goes to one place and that is the slideshow.php page of the theme actually.
I don't actually want to change the slideshow itself but want to be able to link directly to it without having to be in an album to generate the form that creates the slideshow. Eg. If i have albums Bob, Jane & Mary - I want to be able to link directly to the slideshow for Bob - regardless of whether I am in the Bob album, or the Mary album or somewhere else in the site.
If there is a way to do it with the existing slideshow, it would be great - save reinventing the wheel.
Cheers.
<script type="text/javascript" src="/zgallery/zp-core/js/jquery.js"></script>
<script type="text/javascript" src="/zgallery/zp-core/js/zenphoto.js.php"></script>
in the head section of the page you're linking from. Then view source of the page in your gallery that has the "View Slideshow" link. You'll see a form - just copy and paste that where you want your link to be and change "View Slideshow" to whatever you want. It should look like:
<form name="slideshow_0" method="post" action="/zenphoto/yourgallery/whatever">
<input type="hidden" name="pagenr" value="1" />
<input type="hidden" name="albumid" value="8" />
<input type="hidden" name="numberofimages" value="17" />
<input type="hidden" name="imagenumber" value="" />
<input type="hidden" name="imagefile" value="" />
<a href="document.slideshow_0.submit()">:View Slideshow</a>
</form>
Just remember that if you need more than one link on the same page to change slideshow_0 to slideshow_1 in all places it occurs in the form and continue to increment for each new link.