Smarty questions
Hello,
Question 1:
I just download a free css template from somewhere else, but I an having problem to code it in to smarty. My problem is all div's background image that specify url in css style file not loading.
example:
in css style file
in tpl file
Anyone know how can I fix this problem. Thanks in advance.
Question 2:
Alternative ad does not load in FireFox 2, but work for IE7.
In tpl file have the following statement
In banner.tpl contain ad script, which is javascript and I have alternative ad url that also contain javascript (let say alt.htm).
Firstly, I use literal tag for banner.tpl - no problem for this.
Secondly, if I use literal tag in alt.htm then it will show the TEXT (in this case {literal}) in FireFox, but if I remove the tag then in FireFox show blank space (ad unit show in IE7).
Hope anyone can understand my questions. Thanks in advance.
Hello,
Question 1:
I just download a free css template from somewhere else, but I an having problem to code it in to smarty. My problem is all div's background image that specify url in css style file not loading.
example:
in css style file
PHP:
#header
{
width: 922px;
height: 284px;
background-image: url(images/bg_header.jpg);
background-repeat: no-repeat;
}
in tpl file
PHP:
<div id="header"></div>
Anyone know how can I fix this problem. Thanks in advance.
Question 2:
Alternative ad does not load in FireFox 2, but work for IE7.
In tpl file have the following statement
PHP:
{include file="banner.tpl"}
In banner.tpl contain ad script, which is javascript and I have alternative ad url that also contain javascript (let say alt.htm).
Firstly, I use literal tag for banner.tpl - no problem for this.
Secondly, if I use literal tag in alt.htm then it will show the TEXT (in this case {literal}) in FireFox, but if I remove the tag then in FireFox show blank space (ad unit show in IE7).
Hope anyone can understand my questions. Thanks in advance.






