Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    CBG
    CBG is offline
    New Coder
    Join Date
    Feb 2010
    Location
    UK
    Posts
    91
    Thanks
    26
    Thanked 0 Times in 0 Posts

    lightbox help or recommend

    Hi,

    I have tried lightbox2 and jquery lightbox and I have the same problem with both.
    I have added the javascripts and css files for the lightbox.

    This is my code:
    <a href="getsnap.php?id={$user.id}&amp;typ=full&amp;picid={$pic.picno}" rel="lightbox" title="TITLE"><img src="getsnap.php?id={$user.id}&amp;typ=tn&amp;picid={$pic.picno}" width="45" height="45" alt="" /></a>

    The problem hee is when you click on the image, it want you to save the file to your computer and not use the lightbox effect.

    I have to put the image through getsnap.php?etc....

    Any ideas?
    Last edited by CBG; 09-09-2011 at 09:07 PM.
    Regards,
    CBG

  • #2
    CBG
    CBG is offline
    New Coder
    Join Date
    Feb 2010
    Location
    UK
    Posts
    91
    Thanks
    26
    Thanked 0 Times in 0 Posts
    Just put the code in the demo page and did direct url links and it worked.
    Something must be mess it up
    Regards,
    CBG

  • #3
    CBG
    CBG is offline
    New Coder
    Join Date
    Feb 2010
    Location
    UK
    Posts
    91
    Thanks
    26
    Thanked 0 Times in 0 Posts
    It looks like it was jQuery breaking it. As soon as I removed it, it worked.
    Not sure why the the jQuery lightbox wouldn't work.

    Anyway I have it working now, just need to move some code around for it to all work.
    Regards,
    CBG


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •