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

Trying to insert image into welcome txt

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 06-09-2007, 06:43 PM
 
yuichi yuichi is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 42
 

Default Re: Trying to insert image into welcome txt

I would check if the image would appear in IE or Firefox by typing the exact location for the file and see if it comes up...
__________________
X-Cart Ver: 4.1.9 Gold
X-Cart Ver: 4.1.10 Gold
Reply With Quote
  #22  
Old 06-10-2007, 04:47 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default Re: Trying to insert image into welcome txt

If you want to avoid hand editing welcome.txt and other elements on your front page you might want to take a look at our featured product manager for x-cart:

Take a look at our frontpage on http://www.firetanksoftware.com/ for example, everything including products, images, sidebars etc are controlled easily from our add one

Heres an example from a site running our featured product manager, everything in the RED boxes is controlled by out add on, and all you have to do to install it is add a few smarty tags where you want things to appear, it completely replaces x-carts front page in just a few minutes, and you can change the appearance from the admin add on easliy.

http://www.firetanksoftware.com/fts/files/screenshots/fts_fpm_screen2.gif

For more information and examples please visit our site:

http://www.firetanksoftware.com/fts/customer/-pid-146.html

This add on does not require you to hack up any of the core x-cart php files or database, it works cleanly and does not affect x-cart upgrades.

It works with x-cart 3.X, 4.X and 4.1.X branches
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #23  
Old 06-12-2007, 11:06 AM
 
GLS GLS is offline
 

Member
  
Join Date: May 2007
Posts: 27
 

Default Re: Trying to insert image into welcome txt

have you tried WYSIWYG mode, clicked on insert image and typed out the whole http: locations?

i.e. http://www.sitename.com/skin1/images/filename.jpg

I have yet to have a problem when doing it in this manner. Hope this helps!
__________________
Great Lake Solar
xcart gold version 4.1.6
Reply With Quote
  #24  
Old 06-12-2007, 11:09 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Trying to insert image into welcome txt

I don't recommend that method GLS. All images should be called using the Smarty variable for the images directory, or as I had mentioned above. If someone happens to be in secure mode, hard coding images will cause a security warning.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #25  
Old 06-12-2007, 12:10 PM
 
TheMommyMarketplace TheMommyMarketplace is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 41
 

Default Re: Trying to insert image into welcome txt

Quote:
Originally Posted by yuichi
I would check if the image would appear in IE or Firefox by typing the exact location for the file and see if it comes up...

OK-I tried this & the image did not come up, so I must be putting the file information in wrong. Can someone tell me what the pathname should be? To clarify, I need to know how to do this to add pictures within my product listings, my static pages, my welcome page--everywhere. This is about general ignorance on my part, rather than a welcome page issue =). I just hopped onto this thread because the OP was asking the same question. Right now I have the pictures I need up but they are "living" in Photobucket & I don't want to keep doing that & have a disaster if they ever go down, out of business, etc.

For this example, the file is named "clasptype.jpg" . The directory it is stored in is called "/var/www/html/skin1/images/thumbnails" . What should I put in for the code?
__________________
Amy

X-cart Pro 4.1.9
www.themommymarketplace.com
Reply With Quote
  #26  
Old 06-12-2007, 02:32 PM
 
fxdesigner fxdesigner is offline
 

Member
  
Join Date: Jun 2006
Posts: 24
 

Default Re: Trying to insert image into welcome txt

Same issue here -

As illustrated in this thread -suggested fix doesn't work.

However going into the admin languages mod and editing the window there with this:

(specific to MY store path)

<img alt="" src="/shopsam/skin1/images/50-logo2.gif" border="0" /><br />

it does work -

Any explanation?

FX Designer
__________________
Current platform - x-cart Gold 4.3.1 (w/ customization)
previous x-cart Gold 4.1.11 + Customizations
Unix
Reply With Quote
  #27  
Old 09-05-2007, 03:52 AM
 
barfourfour barfourfour is offline
 

Advanced Member
  
Join Date: Dec 2006
Posts: 41
 

Default Re: Trying to insert image into welcome txt

Few! managed to sort this out after a bit of head scratching.

By default xcart doesn't parse smarty within language variables. You can turn on the option to parse smarty in static pages in the admin>static pages but for some reason not language variables.

Anyhow, I did a search for ImagesDir in the languages and low and behold:

txt_vbv_admin_note

uses <img src="{{ImagesDir}}/vbv_pure_logo.gif" alt="" />

I searched for this string and it is in a few files along with the smarty code:

{$lng.txt_vbv_admin_note|substitute:"ImagesDir":$I magesDir}

So just go to skin1/customer/main/welcome.tpl and change:

{$lng.txt_welcome}

to

{$lng.txt_welcome|substitute:"ImagesDir":$ImagesDi r}

(without the spaces - not sure why these are coming up?)

then in your welcome_txt variable use {{ImagesDir}} in place of skin1/images/

I am not sure if there are any security issues but I am sure one of the guru's can answer this.
__________________
X-Cart version: 4.1.8 (Gold)
Mods: DSEFU, Custom Designed Skin
PHP: 5.2.5
GD: bundled (2.0.34 compatible)
MySQL: 5.0.51a
Web server: Apache/2.2.8 (Unix)
Operation system: Linux
Perl: 5.008008
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 12:41 PM.

   

 
X-Cart forums © 2001-2020