Internet Explorer issue

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 25, 2009   (RSS)

By Ginslinger - February 25, 2009 - edited: February 25, 2009

Using a newly created gallery, my images are showing fine on my galleryview pages using both Firefox and Google Chrome but for some reason images will not display at all with Internet Explorer. Code I have inserted is below. Still learning this program so I probably have something wrong.


<B>Album</B> <?php echo $photosRecord['album'] ?><br/>
<B>Updated</B> <?php echo date("D, M jS, Y", strtotime($photosRecord['date'])) ?><br/>


<?php foreach ($photosRecord['upload'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>

<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[gallery]" title="<?php echo $upload['info1'] ?>" <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" border="0" alt="" /></a>





<?php else: ?>
<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

<?php endif ?>
<?php endforeach ?>

Re: [Ginslinger] Internet Explorer issue

By aev - February 25, 2009

Hi!

You forgot to close the opening <a> tag:

<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[gallery]" title="<?php echo $upload['info1'] ?>" <img src="<?php echo

should be:

<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[gallery]" title="<?php echo $upload['info1'] ?>"><img src="<?php echo

IE doesn't like that, and for once that's ok since it's an actual error.

-aev-