slideshow question about clickable slides

TerryPTerryP Registered Users Posts: 81 Big grins
As I built my slideshow I used pics that aren't even in my galleries yet. As I prepare to do that, I wondered about clickable pictures that are supposed to take you to the gallery it's in. I thought...but the pics are in my hidden slideshow gallery. Is that simply the gallery I must use or can I direct the click to the gallery where the picture resides for public display? Did I explain that right?

Thanks for the feedback.

Terry

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 20, 2007
    Hi Terry,

    The way BWG has implemented the slideshow hack, when a slideshow image is clicked, it takes you to the gallery of which that image belongs. Unfortunately, there isn't any way to redirect to a different gallery.

    In regard to the private album thing, private albums are able to be viewed if the url is known. Therefore, making the slideshow gallery private and having slideshow images clickable, will still result in the users being able to browse that private slideshow album.

    Hope that makes sense.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited January 21, 2007
    TerryP wrote:
    As I built my slideshow I used pics that aren't even in my galleries yet. As I prepare to do that, I wondered about clickable pictures that are supposed to take you to the gallery it's in. I thought...but the pics are in my hidden slideshow gallery. Is that simply the gallery I must use or can I direct the click to the gallery where the picture resides for public display? Did I explain that right?

    Thanks for the feedback.

    Terry

    The slide show can be re-directed in it's entirety though... Mine directs the user to my "virtual homepage." The function below had to be adjusted...
    function ssAddSlideClick(sUrl) {
      addEvent(sSlide, 'click', function(){location.href="http://brandolinoimaging.com/gallery/1595381";});
    }
    
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 21, 2007
    The slide show can be re-directed in it's entirety though... Mine directs the user to my "virtual homepage." The function below had to be adjusted...
    function ssAddSlideClick(sUrl) {
      addEvent(sSlide, 'click', function(){location.href="http://brandolinoimaging.com/gallery/1595381";});
    }
    
    Anthony,

    In case, the best option is to do as follows...
    function ssAddSlideClick(sUrl) {
      addEvent(sSlide, 'click', function(){location.href=sUrl});
    }
    
    and then call the function...
    ssAddSlideClick("http://brandolinoimaging.com/gallery/1595381")
    
    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited January 21, 2007
    devbobo wrote:
    Anthony,

    In case, the best option is to do as follows...
    function ssAddSlideClick(sUrl) {
      addEvent(sSlide, 'click', function(){location.href=sUrl});
    }
    
    and then call the function...
    ssAddSlideClick("http://brandolinoimaging.com/gallery/1595381")
    
    Cheers,

    David

    I assume the 1st bit of code goes right in the JS where I just copied my piece from...
    But where do I put the other piece... right after it?
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 21, 2007
    I assume the 1st bit of code goes right in the JS where I just copied my piece from...
    But where do I put the other piece... right after it?

    Anthony,

    it's the called to that function, search your slideshow code for 'ssAddSlideClick' and you'll find it.

    David
    David Parry
    SmugMug API Developer
    My Photos
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited January 22, 2007
    devbobo wrote:
    Anthony,

    it's the called to that function, search your slideshow code for 'ssAddSlideClick' and you'll find it.

    David

    OK David, I replaced this code
    function ssAddSlideClick(sUrl) {
      addEvent(sSlide, 'click', function(){location.href="http://brandolinoimaging.com/gallery/1595381";});
    }
    

    with these 2 lines
    function ssAddSlideClick(sUrl) {
    addEvent(sSlide, 'click', function(){location.href=sUrl});
    }
    
    ssAddSlideClick("http://brandolinoimaging.com/gallery/1595381")
    

    in the JS section of the slide show code... but I don't think that was correct as when I did it made the click take me to the image gallery not the gallery/1595381 that I wanted... what did I do wrong... be gentle.. remember I bearly know any CSS much less any JS... thanks for your time...
Sign In or Register to comment.