Recently had an issue with the Meebo js killing my site. Contacted Meebo and the issue was the module using a much older version of their js. Fix was as simple as updating the js in the module.

		/*
		 * This is the original js from the module (can uncomment to return to original, but be sure to comment out the new js)
		 */

		/*		
		$js = "if (typeof Meebo == 'undefined') {
				Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)};
				(function(_){var d=document,b=d.body,c;if(!b){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\";
				function s(){return['<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:'',
				_.d?'&domain='+_.d:'','\"\'></bo','dy>'].join('')}try{
				d=i.contentWindow.document.open();d.write(s());d.close()}catch(e){
				_.d=d.domain;i.src='javascript:d=document.open();d.write(\"'+s().replace(/\"/g,'\\\"')+'\");d.close();'}})
    			({ network: '{$meebo_id}', stage: false });
		
		}";
		*/		
		
		/*
		 * This is the new js provided by Meebo
		 */
		
		$js = "window.Meebo||function(c){function p(){return[\"<\",i,' onload=\"var d=',g,\";d.getElementsByTagName('head')[0].\",
			j,\"(d.\",h,\"('script')).\",k,\"='//cim.meebo.com/cim?iv=\",a.v,\"&\",q,\"=\",c[q],c[l]?
			\"&\"+l+\"=\"+c[l]:\"\",c[e]?\"&\"+e+\"=\"+c[e]:\"\",\"'\\\"></\",i,\">\"].join(\"\")}var f=window,
			a=f.Meebo=f.Meebo||function(){(a._=a._||[]).push(arguments)},d=document,i=\"body\",
			m=d[i],r;if(!m){r=arguments.callee;return setTimeout(function(){r(c)},100)}a.$=
			{0:+new Date};a.T=function(u){a.$[u]=new Date-a.$[0]};a.v=5;var j=\"appendChild\",
			h=\"createElement\",k=\"src\",l=\"lang\",q=\"network\",e=\"domain\",n=d[h](\"div\"),v=n[j](d[h](\"m\")),
			b=d[h](\"iframe\"),g=\"document\",o,s=function(){a.T(\"load\");a(\"load\")};f.addEventListener?
			f.addEventListener(\"load\",s,false):f.attachEvent(\"onload\",s);n.style.display=\"none\";
			m.insertBefore(n,m.firstChild).id=\"meebo\";b.frameBorder=\"0\";b.name=b.id=\"meebo-iframe\";
			b.allowTransparency=\"true\";v[j](b);try{b.contentWindow[g].open()}catch(w){c[e]=
			d[e];o=\"javascript:var d=\"+g+\".open();d.domain='\"+d.domain+\"';\";b[k]=o+\"void(0);\"}try{var t=
			b.contentWindow[g];t.write(p());t.close()}catch(x){b[k]=o+'d.write(\"'+p().replace(/\"/g,
			'\\\"')+'\");d.close();'}a.T(1)}({network:\"{$meebo_id}\"});";

Attached is the updated version of the module. Simple fix and everything seems to be working great now.

CommentFileSizeAuthor
meebo.zip11.48 KBeidolon night

Comments

greghinch’s picture

Version: 6.x-1.x-dev » 6.x-1.2
Assigned: Unassigned » greghinch
Status: Needs review » Fixed

This should be addressed in version 6.x-1.2

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.