Download Image From Lightbox?

amory Member
Alright, so I just found out about this Lightbox thing, and it looks pretty sweet. However the ZP-Lightbox theme created by Chilifrei64 was version one, so I wanted to update it to version two, which was actually very easy. The problem now is that the user cannot drag the photo to his/her desktop as in the prior version.

I would like to overcome this by adding a button, similar to the 'close link', that would allow the user to download the current photo. How would I go about doing this? How can I add the link (created by a ZenPhoto PHP function) to the image within a js file?

Anyone help would be appreciated

Thanks,
Amory

Comments

  • amory Member
    FWIW the php function I am refering to is:
    `<?php echo getFullImageURL();?>`
  • Chili impemented version 2, download here: http://www.chilifrei.net/downloads/Chili-Light_Default.zip
  • amory Member
    Thanks, I didn't see that annouced anywhere on the board.
  • amory Member
    Don't know if you tried out the theme, but it is still infact version one (of lightbox) not version two.

    Question still remains to anyone else, how can I use the getFullImageURL php function within a js file?

    Thanks,
    Amory
  • Yea, Ive used it. Read this thread if I linked to thr wrong download.
    http://www.zenphoto.org/support/topic.php?id=232
  • amory Member
    My appologies, I see he has implemented version two. However, my question still stands - how can I get the link to each individual image `/server/photo.jpg` to appear next to the close button within the javascript lightbox framework? Or rather than making assumptions, can I do this?
  • what you need to do is actually kinda messy, since the navigational overlays on the image take away from being able to drag it to your desktop I resorted to making a link in the image details below it

    code removed.. .. check out link here
    http://beta.chilifrei.net/zenphoto2/link.txt
    sorry.. i couldnt get the code to show right.. upon posting.. it was converting html entity equivalents into their original form therefore not displaying what I needed it to.

    this will display the title as a link in the lightbox..
    HOWEVER.. as I am typing this up I did also notice that when you hover over it it displays the link in the hoverover caption dialog..

    but atleast this gives you the link.. I will look into it more tomorrow.. maybe come up with something.

    Right now you can see it at http://beta.chilifrei.net/zenphoto2
    incase you wanted to take a look
  • amory Member
    Thanks a lot! That's exactly what I was going for.

    Amory
  • This is exactly what i am searching for right now .. well not really so this question 1.

    Is there an easy way to make the image downloadable by rightclick when there is no navigation <- , -> ontop the image?

    well if not
    could you plz refresh the links to the missing code lines
    i really dont know where i need to add

    <?php echo getFullImageURL();?>

    to get the link working

    all best max
  • acrylian Administrator, Developer
    The links won't be refreshed sinc that user is not active for years.

    How to get the download depends on the theme used which you did not tell.
    The function needs to be placed on your theme's image.php. I suggest to read athe theming tutorial.
  • im using lightbox2 with the theme "White"
    but i cant find the image.php any clue what im doing wrong?

    anyway gonna check out some theming tutorials thx
  • acrylian Administrator, Developer
    I don't know any theme named "white".
Sign In or Register to comment.