Member
Member
lorns   2009-04-16, 03:00
#1

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

Administrator
Administrator
acrylian   2009-04-16, 08:40
#2

No, the slideshow is not meant to be used that way. I think the best would be to write your own function using the jQuery cycle plugin directly on album.php the slidesshow is based on than trying to change it. You will need quite some php and jQuery knowledge to get that working.

The url goes to one place and that is the slideshow.php page of the theme actually.

Member
Member
lorns   2009-04-16, 22:38
#3

Thanks acrylian.

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.

Member
Member
sbillard   2009-04-16, 23:13
#4

You must POST the data to slideshow.php. Look at the code that is currently created for the print slideshow link

Member
Member
klimas   2009-11-20, 10:18
#5

It is pitty, I would use this functionality too (Wanted to post somewhere link directly to the slideshow..)

Junior Member
Junior Member
lotus14   2010-01-19, 01:15
#6

It's not that difficult. First make sure you have

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:

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.