reset password Signup

I use Smarty Templates, and when I add in the ad code it doesn’t work.

I use Smarty Templates, and when I add in the ad code it doesn’t work.

With Smarty, since they use curly brackets {} for template functions, you will need to tell Smarty to ignore the curly brackets in our main JavaScript snippet. To do this, simply wrap the BSA ad code that you put below the opening body tag with the {literal} template tag. So, when you add the BSA ad code it will look like this in your template file:

 
{literal}
<!-- BuySellAds.com Ad Code -->
<script type="text/javascript">
(function(){
  var bsa = document.createElement('script');
     bsa.type = 'text/javascript';
     bsa.async = true;
     bsa.src = '//s3.buysellads.com/ac/bsa.js';
  (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
})();
</script>
<!-- END BuySellAds.com Ad Code -->
{/literal}



Additional Articles

Browse all help questions for:

Open a Ticket

We tend to answer most support tickets during normal business hours: Monday to Friday, 9:00 am to 6:00 pm (EST). However, we're constantly monitoring tickets, and we'll address urgent issues on nights and weekends, too.

Open a Ticket
Does BuySellAds look broken? Disable your ad blocker, their haphazard default filters sometimes break our site.