Forum Moderators: open

Message Too Old, No Replies

Lightbox help or recommend something else

         

CrazyBigGaz

11:38 am on Sep 9, 2011 (gmt 0)

10+ Year Member



Hi,

I have tried lightbox2 and Jquery lightbox and have the same problem with both. Where the file is requested to be downloaded.

This is the line of 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>


It displays the small image, but when you click on it, it request to be downloaded and not give the lightbox effect.

I did add the javascripts and css files for the lightbox.

Does anyone have any ideas for recommend another sort of lightbox to try?

Regards,
Garry

CrazyBigGaz

11:46 am on Sep 9, 2011 (gmt 0)

10+ Year Member



Just tested it on the lightbox2 demo with direct url to image and it working ok.

So something must be messing it up.

CrazyBigGaz

12:15 pm on Sep 9, 2011 (gmt 0)

10+ Year Member



Ok it seems like it was jQuery that was breaking it.
Thought not sure why the jQuery lightbox wouldn't work.

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