MyBB Community Forums

Full Version: i want to add some code to my forums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello i am wanting to add bar.meebo.com on my forums at i-deluxe.co.cc/Upload and i know i have to add it to the template i am using but i am not completely sure which template i should use to place the meebo bar code at.
Probably best to put it in the index template. Above {footer}.
Okay i went to my theme and then i went to the index template and picked the one named index and above {$footer} i put

<script type="text/javascript">
if (typeof Meebo == 'undefined') {
Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)};
(function(q){
var d=document,b=d.body;
if(!b){var cb=arguments.callee;return setTimeout(function(){cb(q)},100);}
var m=b.insertBefore(d.createElement('div'), b.firstChild), s=d.createElement('script');
m.id='meebo'; m.style.display='none'; m.innerHTML='<iframe id="meebo-iframe" frameBorder="0" ></iframe>';
s.src='http'+(q.https?'s':'')+'://'+(q.stage?'stage-':'')+'cim.meebo.com/cim/cim.php?network='+q.network;
d.getElementsByTagName('head')[0].appendChild(s);
})({network: 'ideluxe_co48ga', stage: false});
Meebo('makeEverythingSharable');
}
</script>

and it seems to not be showing up.