| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Trying to insert image into welcome txt | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
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 |
|||||||
#22
|
|||||||||
|
|||||||||
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 |
|||||||||
#23
|
|||||||
|
|||||||
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! |
|||||||
#24
|
|||||||
|
|||||||
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 |
|||||||
#25
|
|||||||
|
|||||||
Re: Trying to insert image into welcome txt
Quote:
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? |
|||||||
#26
|
|||||||
|
|||||||
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 |
|||||||
#27
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|