Log in

View Full Version : Resolved lightbox



john0611
08-06-2009, 04:02 AM
Hi all,

This is one that has been buggin me for a while:confused:

Some php that drags the data out, href to open the linked image.


<a href="<?php echo $_SERVER['PHP_SELF']; ?>?img/galleries/paintings=<?php echo $row['filename']; ?>&amp;curPage=<?php echo $curPage; ?>"><img src="img/galleries/paintings/thumbs/<?php echo $row['filename']; ?>" alt="<?php echo $row['caption']; ?>" width="152" height="152" /></a>

How do I correctly add the (rel="lightbox") attribute to the above? I have had lightbox initiate but not display the image?

Any help would be awsome! Thanks

bluewalrus
08-06-2009, 04:39 AM
Like this? If not can you post a link to where it is occuring.


<a href="<?php echo $_SERVER['PHP_SELF']; ?>?img/galleries/paintings=<?php echo $row['filename']; ?>&amp;curPage=<?php echo $curPage; ?>" rel="lightbox">
<img src="img/galleries/paintings/thumbs/<?php echo $row['filename']; ?>" alt="<?php echo $row['caption']; ?>" width="152" height="152" /></a>