Fandom

Community Central

Comments9

How to fix blogs in Monobook

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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.

Also on Fandom

Random Wiki