Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 10-26-2008, 03:49 PM   #1
Member (7 bit)
 
jeromebrill's Avatar
 
Join Date: May 2006
Posts: 107
Displaying image questing

I'm creating a template on the auction site Vendio.

This is what I would use to insert an image when creating an template:
PHP Code:
<img src"[IMAGE_URL1]"
Vendio takes the [IMAGE_URL1] tag and inserts the url for the image I uploaded when the auction is created.

The problem I'm getting is that if there is no image url from vendio, lets say its the 2nd image and I only uploaded one. It displays a blank spot the size of the image were the code is and creates a gap.

Is there anyway of not displaying an image gap or broken image if the url is not found? The 2nd, 3rd and 4th images have fixed widths to created a thumbnail.

Here is a sreenshot of what I'm talking about IMG

Thanks
__________________
Asus Maximus lll formula Mobo | i5 750 2.66 @ 3.4 | Corsair Hydro H50 | Patriot i5 Viper II 4GB PC12800 DDR3 | XFX Radeon HD 6870 | Ultra LSP750 750w | 750GB & 1TB WD Black Carver Drives | 3DMark06 20957
jeromebrill is offline   Reply With Quote
Old 10-30-2008, 01:26 PM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
Try an if-statement to check to see if a path exists for the image. Then only write the HTML if it exists.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:39 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2