Thread: Securing images
View Single Post
  #2  
Old 09-15-2007, 05:29 PM
 
somekindahate somekindahate is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 84
 

Default Re: Securing images

Quote:
Have a couple questions on how to do this.
1. I am pulling an image for my background via the css. What code do I put in it to make the background secure?

Don't put an absolute path in the url portion. Assuming the CSS file is located in the skin1 directory, you should use:

background: #FFEA7B url(background.jpg);


Quote:
2. I'm trying to add an image to the txt_welcome area of the template. I place this code

Code:
<IMG src="{$ImagesDir}/rewards_points.jpg" width="150" height="150" border="0">

It is showing up as a broken image. The image is there... double checked several times. How do I add an image to the txt_welcome area and make it secure?

Language variables don't parse the Smarty syntax normally used in the tpl files. You need to double escape it and remove the dollar sign. Try replacing {$ImagesDir} with {{ImagesDir}}
__________________
X-Cart Gold v. 4.1.10
Reply With Quote