Images show in admin not in pages

5 posts by 3 authors in: Forums > CMS Builder
Last Post: November 8, 2010   (RSS)

Using the image code generated by the Code Generator, images associated with listings don't appear in the listings or listingDetail pages. Here is the image code output by the software for the listings page:

<?php foreach ($rm_listingRecords as $record): ?>

<?php foreach ($record['images'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" style="float: left; margin: 0 12px 0 0;" />

<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" style="float: left; margin: 0 12px 0 0;" />
<?php endif ?>
<?php endforeach ?>

Here is the code output for the listingDetails page:

<?php foreach ($rm_listingRecord['images'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

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

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

Any help with this appreciated,

Bob

Re: [orangecat] Images show in admin not in pages

By Chris - November 8, 2010

Hi Bob,

There are a couple things that could be going wrong here. Can you provide a URL to see the pages where the images are missing?
All the best,
Chris

Re: [chris] Images show in admin not in pages

Hi Chris,

Listings index page:
http://www.kylandsales.com/listings.php

Then click the live address for the Details page. Images are missing on both.

Thanks,
Bob

Re: [orangecat] Images show in admin not in pages

By Chris - November 8, 2010

Hi Bob,

The images aren't showing up because the widths and heights are zero. Can we take a closer look at your site via FTP and see if we can fix the issue? Please fill out a [url http://www.interactivetools.com/support/]Second Level Support Request[/url] with your FTP info and a link to this forum thread.
All the best,
Chris