Hi all, this is the instructions to use Meebo Bar
<script type="text/javascript">
if (typeof Meebo == 'undefined') {
Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)};
(function(_){ var d=document,b=d.body; if(!<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='B)' />{var c=arguments.callee;
return setTimeout(function(){c(_)},100)} var a='appendChild',c='createElement',
m=b.insertBefore(d[c]('div'), b.firstChild),n=m[a](d[c]('m')),i=d[c]('iframe');
m.style.display='none';m.id='meebo';i.frameBorder="0";
n[a](i).id="meebo-iframe"; var d=i.contentWindow.document;d.open();
d.write(['<body onload=\'var d=document;d.getElementsByTagName("head")[0].',
a,'(d.',c,'("script")).src="http',_.https?'s':'','://',
_.stage?'stage-':'','cim.meebo.com','/cim?iv=2&network=', _.network,
_.lang?'&lang='+_.lang:'','"\'></body>'].join('')); d.close(); })
({ network: 'MY_NETWORK_HERE', stage: false });
Meebo("makeEverythingSharable");
}
</script>
In your template, immediately prior to the closing </body>, insert the following code:
<script type="text/javascript">
Meebo("domReady");
</script>
The problem is the output…
<script type="text/javascript">
if (typeof Meebo == 'undefined') {
Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)};
(function(_){ var d=document,b=d.body; if(!<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='B)' />{var c=arguments.callee;
return setTimeout(function(){c(_)},100)} var a='appendChild',c='createElement',
m=b.insertBefore(d[c]('div'), b.firstChild),n=m[a](d[c]('m')),i=d[c]('iframe');
m.style.display='none';m.id='meebo';i.frameBorder="0";
n[a](i).id="meebo-iframe"; var d=i.contentWindow.document;d.open();
d.write(['<body onload=\'var d=document;d.getElementsByTagName("head")[0].',
a,'(d.',c,'("script")).src="http',_.https?'s':'','://',
_.stage?'stage-':'','cim.meebo.com','/cim?iv=2&network=', _.network,
_.lang?'&lang='+_.lang:'','"\'><script type="text/javascript">
/*<![CDATA[*/
jQuery(document).ready(function() {
jQuery('#yw0').yiiListView({'ajaxUpdate':['yw0'],'ajaxVar':'ajax','pagerClass':'pager','loadingClass':'list-view-loading','sorterClass':'sorter'});
});
/*]]>*/
</script>
</body>'].join('')); d.close(); })
({ network: 'glhfit_se74qi', stage: false });
Meebo("makeEverythingSharable");
}
</script>
Like you can see Yii in some way overwrite meebo’s js…
how can I solve it?