amrita Posted November 27, 2008 Share Posted November 27, 2008 I'm having a problem trying to use lightbox in my php code - I'm not sure if the problem is within my link or something I need to correct in lightbox settings - can anyone help?This is my code to the link:"<td align='right'><a href='?page=kategori&id=".$_GET['id']."&bilid=".$hentbil['bid']."' rel='lightbox'><img src='images/".$hentbill."' width='100' height='100' border='1' /></a><br />Pris: ".$hentpris." Kr.</td>";bid is the id to the pictureI have corrected the links in the lightbox files to fit my page, så I doubt that is the problem... I have an idea that the problem is in the linkI don't know if I should post the question here or in the php section - but hope someone can help :-) Link to comment Share on other sites More sharing options...
cpugeek Posted November 27, 2008 Share Posted November 27, 2008 (I think) It would have to be in the href segment of the link. It wouldn't have anything to do with lightbox. But incase you want to check, make a static link to a photo with rel='lightbox' and see if it works. If it does then it's your link if it doesn't then make sure you've included lightbox (as well as the scriptaculous and prototype frameworks) correctly and that the lightbox and the frameworks are complete and not corrupt. if it is your link then try to get someone else to look at it, as well as some context code of the link.Hope I helped a bit. Link to comment Share on other sites More sharing options...
amrita Posted November 27, 2008 Author Share Posted November 27, 2008 You were right - I tried using an ordinary link to an image and lightbox works fine - so it must be the code - I'll take it to the php section then - thanks :-) Link to comment Share on other sites More sharing options...
cpugeek Posted November 27, 2008 Share Posted November 27, 2008 No Problem. Hope you get your answer.Also check the html output (source) of your link, and compare it to what it should look: <a href="images/image-1.jpg" rel="lightbox">image #1</a>It could tell you what's wrong based on what's different, also try visiting the address the html outputs and check that against your working version of the address (what works for your application to view the image file) it could also help you correct your address. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.