Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Need help including images on home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-24-2011, 08:34 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Need help including images on home page

I've tried several times to get images to appear on my home page with no luck. I need to include logos for various companies that customers can click on to either bring them to the login screen or to their product line. However, every time I do this nothing appears but blank boxes. I'm doing this in txt_welcome and using the WYSIWYG editor to place the images and then link them. What am I doing wrong?
Attached Thumbnails
Click image for larger version

Name:	LogoError.jpg
Views:	146
Size:	409.7 KB
ID:	2366  
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #2  
Old 01-24-2011, 10:00 AM
  AIEGaming's Avatar 
AIEGaming AIEGaming is offline
 

Advanced Member
  
Join Date: Nov 2010
Posts: 41
 

Default Re: Need help including images on home page

This may sound silly but are you sure the img tags and image URLs are accurate?
__________________
version 4.4.2
Reply With Quote
  #3  
Old 01-24-2011, 10:30 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Re: Need help including images on home page

I'm using the Insert/Edit Image button in the WYSIWYG editor and copying/pasting the URL of the image. I then link it to the login screen. Is this not the correct way to go about doing this?
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #4  
Old 01-24-2011, 11:12 AM
  AIEGaming's Avatar 
AIEGaming AIEGaming is offline
 

Advanced Member
  
Join Date: Nov 2010
Posts: 41
 

Default Re: Need help including images on home page

That should work fine. Are you using the full URL to the image? For example http://www.site.com/image1.jpg
__________________
version 4.4.2
Reply With Quote
  #5  
Old 01-24-2011, 11:15 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Re: Need help including images on home page

I'm using the full URL.
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #6  
Old 01-24-2011, 11:23 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Need help including images on home page

Don't do this. Use relative url otherwise your customers will see security warning under https.
<img src="skin/common_files/images/image_name.jpg.gif" width="xxx" height="xxx" alt="xxx">
replace xxx and src with your data. You can also use {$ImagesDir}/image_name.jpg but not inside langauge variables, where {$ImagesDir} = skin/common_files/images
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 01-24-2011, 01:51 PM
  Wazowski's Avatar 
Wazowski Wazowski is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 51
 

Default Re: Need help including images on home page

What is the website URL?
__________________
X-Cart version 4.5.5
Reply With Quote
  #8  
Old 01-24-2011, 02:00 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Need help including images on home page

Quote:
Originally Posted by Wazowski
What is the website URL?

If you mean how to call the website url via smarty then it's

{$http_location} or {$https_location} (For secure url)
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #9  
Old 01-25-2011, 04:54 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Re: Need help including images on home page

This is how I have it within txt_welcome and it still is not displaying.
<p><img src="/admin/images/Toro_Logo.jpg" alt="ToroLogo" width="150" height="99" /></p>

The image itself was uploaded via ftp into the following location: httpdocs/files/images which is also where I've placed all of my images and have had no issues with any of them. Am I missing something real basic here?
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #10  
Old 01-25-2011, 05:14 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Need help including images on home page

Yes something really basic - If you have the image uploaded to "files/images" why do you call it from "admin/images"?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:26 AM.

   

 
X-Cart forums © 2001-2020