Fandom

Community Central

User blog:Ciencia Al Poder/How to fix blogs in Monobook

English
Comments9

How to fix blogs in Monobook

Wikia is trying to sabotage the MonoBook skin, leaving things broken that have an easy fix, so I'm putting here how to fix things like that.

In this blog I'll show how to fix the blogs in Monobook.

Just put the following code in your global.js (for a fix on all wikis), or if you're an admin on a wiki, put this in MediaWiki:Monobook.js

/* Fix for Blogs in Monobook */
if (window.wgNamespaceNumber == 500) {
	if (jQuery.prototype.jquery == '1.3.2') {
		importScriptURI(stylepath+'/common/jquery/jquery-1.4.2.js?'+wgStyleVersion);
		importScriptURI(stylepath+'/common/jquery/jquery.json-1.3.js?'+wgStyleVersion);
		importScriptURI(stylepath+'/common/jquery/jquery.cookies.2.1.0.js?'+wgStyleVersion);
		importScriptURI(stylepath+'/common/jquery/jquery.dump.js?'+wgStyleVersion);
		importScriptURI(stylepath+'/common/jquery/jquery.wikia.js?'+wgStyleVersion);
		importScriptURI(stylepath+'/common/jquery/jquery-ui-1.7.2.custom.js?'+wgStyleVersion);
		importScriptURI(stylepath+'/common/jquery/jquery.timeago.js?'+wgStyleVersion);
	}
	if (!window.ArticleComments) {
		importScriptURI(wgExtensionsPath+'/wikia/ArticleComments/js/ArticleComments.js?'+wgStyleVersion);
		importStylesheetURI(wgExtensionsPath+'/wikia/ArticleComments/css/ArticleComments.css?'+wgStyleVersion);
		importStylesheetURI(wgExtensionsPath+'/wikia/Blogs/css/Blogs.css?'+wgStyleVersion);
	}
}

If you visit other wikis that don't have this fix apllied, tell them how to fix it, so others could benefit.