Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Adding java script code


I want to add a JS code to my sidebar so I can display ads from ad serving software.

if (!window.AdButler){(function(){var s = document.createElement("script"); s.async = true; s.type = "text/javascript";s.src = '';var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(s, n);}());}

var AdButler = AdButler || {}; = || []; var abkw = window.abkw || ''; var plc194965 = window.plc194965 || 0; document.write('<'+'div id="placement_194965_'+plc194965+'"></'+'div>');{handler: function(opt){ AdButler.register(167300, 194965, [300,250], 'placement_194965_', opt); }, opt: { place: plc194965++, keywords: abkw, domain: '' }});

I added this to default.master.tpl -

When I save the file, it give me a Vanilla Forum error saying: Something went wrong

Any ideas on how to make this work?



Sign In or Register to comment.