X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Trying to insert image into welcome txt (https://forum.x-cart.com/showthread.php?t=31575)

yuichi 06-09-2007 06:43 PM

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...

groovico 06-10-2007 04:47 AM

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

GLS 06-12-2007 11:06 AM

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!

balinor 06-12-2007 11:09 AM

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.

TheMommyMarketplace 06-12-2007 12:10 PM

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?

fxdesigner 06-12-2007 02:32 PM

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

barfourfour 09-05-2007 03:52 AM

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.


All times are GMT -8. The time now is 11:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.