Uploaded images not showing up

7 posts by 3 authors in: Forums > CMS Builder
Last Post: September 29, 2008   (RSS)

hello,

I have uploaded images on the admin via cms admin but they do not show up my settings are

Upload Directory : /var/www/vhosts/mysite.com/httpdocs/cmsadmin/uploads/

Upload Folder URL : /uploads/

when i look at the source code i see the image at this url : http://uploads/thumb/121_001.jpg

any help.

Re: [nyckidd] Uploaded images not showing up

Try making your uploads URL read:

/cmsadmin/uploads/

Jim
WebCamp One, LLC



Websites That Work

Re: [Mr Jim] Uploaded images not showing up

thanks Mr Jim, i did that but the images still do not show up on the site...

Re: [nyckidd] Uploaded images not showing up

Are you adding the images to your content field or to a separate uploads field?

Answer that and then, if you would, post the snippet of code where you refer to the image on your web page.

Jim
WebCamp One, LLC



Websites That Work

Re: [Mr Jim] Uploaded images not showing up

Mr Jim,

Am adding the images via an uploads field....and below is the code am pasting

<!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
<h1>Listings - List Page Viewer</h1>
<?php foreach ($realty_listingRecords as $record): ?>
Record Number: <?php echo $record['num'] ?><br/>
Featured Property: <?php echo $record['featured'] ?><br/>
Property Type: <?php echo $record['property_type'] ?><br/>
Price: <?php echo $record['price'] ?><br/>
MLS #: <?php echo $record['mls'] ?><br/>
Address: <?php echo $record['address'] ?><br/>
City: <?php echo $record['city'] ?><br/>
State / Province: <?php echo $record['state'] ?><br/>
Bedrooms: <?php echo $record['bedrooms'] ?><br/>
Bathrooms: <?php echo $record['bathrooms'] ?><br/>
Stories: <?php echo $record['stories'] ?><br/>
House Size - ft²: <?php echo $record['house_size_ft'] ?><br/>
Lot Size: <?php echo $record['lot_size'] ?><br/>
Age of Home: <?php echo $record['age_of_home'] ?><br/>
Appliances: <?php echo $record['appliances'] ?><br/>
Fireplace: <?php echo $record['fireplace'] ?><br/>
Central AC: <?php echo $record['central_ac'] ?><br/>
Pool: <?php echo $record['pool'] ?><br/>
Waterfront: <?php echo $record['waterfront'] ?><br/>
Workshop: <?php echo $record['workshop'] ?><br/>
Near Transit: <?php echo $record['near_transit'] ?><br/>
Near School: <?php echo $record['near_school'] ?><br/>
Summary: <?php echo $record['summary'] ?><br/>
Description: <?php echo $record['description'] ?><br/>
<a href="<?php echo $record['_link'] ?>">Read More</a><br/>


<!-- STEP 2a: Display Uploads for field 'uploads' (Paste this anywhere inside STEP2 to display uploads) -->
<!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
<?php foreach ($record['uploads'] 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 ?>
<!-- STEP2a: /Display Uploads -->


<hr/>
<?php endforeach; ?>

<?php if ($realty_listingMetaData['invalidPageNum']): ?>
Results page '<?php echo $realty_listingMetaData['page']?>' not found, <a href="<?php echo $realty_listingMetaData['firstPageLink'] ?>">start over &gt;&gt;</a>.<br/><br/>
<?php elseif (!$realty_listingRecords): ?>
No records were found!<br/><br/>
<?php endif ?>
<!-- /STEP2: Display Records -->


<!-- STEP3: Display Page Links (Paste anywhere below "Load Record List") -->
<?php if ($realty_listingMetaData['prevPage']): ?>
<a href="<?php echo $realty_listingMetaData['prevPageLink'] ?>">&lt;&lt; prev</a>
<?php else: ?>
&lt;&lt; prev
<?php endif ?>

- page <?php echo $realty_listingMetaData['page'] ?> of <?php echo $realty_listingMetaData['totalPages'] ?> -

<?php if ($realty_listingMetaData['nextPage']): ?>
<a href="<?php echo $realty_listingMetaData['nextPageLink'] ?>">next &gt;&gt;</a>
<?php else: ?>
next &gt;&gt;
<?php endif ?>
<!-- /STEP3: Display Page Links -->

Re: [nyckidd] Uploaded images not showing up

By ross - September 29, 2008

Hi.

Thanks for working through all this here. I am thinking it might be time to take a closer look for you. Would you mind sending me a full support request for this one?

Here's a link:
https://www.interactivetools.com/support/email_support.cgi

I am sure we are really close to getting this sorted out. I look forward to hearing from you [:)]
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/