Lightbox assistance

4 posts by 2 authors in: Forums > CMS Builder
Last Post: January 28, 2009   (RSS)

Okay, here's the code I have:

<?php if ($upload['hasThumbnail']): ?>
<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[<?php echo $upload['urlPath'] ?>]" >
<img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" class="img_link" /></a><br/><br/>

And still no lightbox. I did get it to work once with the default image, so I'm seeing what code will pull the image as uploaded.

reference site : http://209.62.14.161/products/buildingsDetail.php?1

Re: [misery217] Lightbox assistance

And here's a bizarre mix to the equation: the above code works in Firefox, but not in IE7? Jeez, now I'm really tormented...

Re: [misery217] Lightbox assistance

By Dave - January 28, 2009

Hi Misery217,

Glad it's working now, I'm not sure what the problem was. The trick is to get it working first as a static html file. Then, once that is working to have CMS output the same code. It's much easier to track down problems when you're just working with HTML and not HTML and CMS.

Although, if it's working now.. I'd just leave it as is. :)

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com