I have site using smarty, php and uses templates also... In the footer template ( PHP Code), I was not successful in adding adbrite code... could any one help me in sample code ....??
If it's js just place it between {literal} code here {/literal} but for mobile devices it's php sice a lot of normal cells don't support js readily.
It is java script , but I did not understand {literal} code here {/literal} ? you saying {literal} adbrite Code {/literal} Is it correct or some thing else ?
Here is my footer , I want to include adbrite ads, and then a horizontal line then footer links ( part of this ) {if $lbm==1 AND $citylist3!=1}{$citylist3}{/if} {if $citylist!=1}{$citylist4}{/if} <div class="copyrightDiv"> <a href="p,help.htm">Help</a> | <a href="p,1,help.htm">About</a> | <a href="p,2,help.htm">Privacy Policy</a> | <a href="p,contact.htm">Contact {$mysitename}</a> | Copyright 2008 {$mysitename} <br /> </div> <div id="xiti">{$xiti}</div> <div id="cmain"> </div> </BODY> </HTML>
What exactly is the problem pasting the code into the footer ? and which file are you editing footer.php or footer.tpl <br /> adbrite code goes here, if you want it centered then add <center> before the code and </center> after it <hr /> if you want it displayed before the copyright and links place the above after {if $citylist!=1}{$citylist4}{/if}
Hi, When using any JavaScript code in a Smarty template, it needs to be enclosed in the {literal} {/literal} tags like jack2006 said or you will get an error from smarty when parsing the template. Take your adbrite code and paste the {literal} tag before it and {/literal} after it. Regards, Steve
thank you jack2006, steve136... I was using .tpl ( template i guess), using literal works great , with this I increased the presence of ads on all pages , hope some one will click