HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Adding java script code
whatsupbro
New
in Feedback
Hello,
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 = 'http://ab167300.adbutler-chargino.com/app.js';var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(s, n);}());}
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?
Thanks!
0
Comments
You need to add the script between
{literal} script here {/literal}
tags❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
thanks man, worked!