Sactage has implemented a fix on cod wiki for this. Create MediaWiki:Chat-js-load on your wiki with the contents of w:c:cod:MediaWiki:Chat-js-load and then copy/paste w:c:cod:MediaWiki:Chat-welcome-message into MediaWiki:Chat-welcome-message, again on your wiki.
@Princess Platinum, it's because your wiki uses MediaWiki:chat-edit-count to import chat javascript, but you're meant to use chat-welcome-message to import ChatOptions.js per the authors recommendation. It causes serious malfunctions apparently.
Firstly, as this is a user created script it is completely unsupported by Wikia in it's current version. Hopefully this will be changing soon but no eta on that if it happens at all.
Secondly, do you have any links to where this isn't working? the system messages are still being used in chat, so it may be something else that's broken.
Edit: Just seen the problem in cod wiki chat.
What's happened is that the page no longer accepts raw html. To work around this, you'll need to create a new mediawiki page and then add verbatim tags to the chat-welcome-message, transcluding the html into the message.
$('a').each(function () { var href = $(this).attr('href'), queries, j, skin; // check for queries if (href.indexOf('?') > -1) { queries = href.split('?')[1].split('&'); for (j = 0; j < queries.length; j++) { if (queries[j].indexOf('useskin') > -1) { skin = queries[j].split('=')[1]; document.getElementById('skin').innerHTML += skin; } } } });
Working jsfiddle.
You can then the value of skin
as you wish, I've simply added it to the innerHTML of an element so you can see what's going on.
Sadly, there are precious few users experienced with abuse filters. As far as abuse filters on Wikia go, the VSTF can help you set up filters. You can get help by posting on w:c:vstf:Report Vandalism.
It might conflict, I'm not 100% sure. My version includes a remove-all-previous-tags failsafe. It depends how long the dev wiki version takes to load and in what order they're executed in.
It would seem that there's no definition of what users to apply what tags to. If you still want to use the dev wiki version, you'd need to look over the documentation and setup instruction at w:c:dev:UserTags.
Ah, I missed that one. Change it to this for each user:
/** * Highlight admin and bureacrat usernames in Special:RecentChanges and ?action=history. * Remember to replace spaces with underscores. * Non standard characters, anything that isn't a-z, numbers or basic symbols, need to be url-encoded. */ /* bureaucrats */ #pagehistory a[href$="User:Dragonfree97"], .diff a[href$="User:Dragonfree97"], .page-Special_RecentChanges a[href$="User:Dragonfree97"], #pagehistory a[href$="User:MerrytonRyan"], .diff a[href$="User:MerrytonRyan"], .page-Special_RecentChanges a[href$="User:MerrytonRyan"], #pagehistory a[href$="User:Minifig-me"], .diff a[href$="User:Minifig-me"], .page-Special_RecentChanges a[href$="User:Minifig-me"], #pagehistory a[href$="User:Sailor_sofia"], .diff a[href$="User:Sailor_sofia"], .page-Special_RecentChanges a[href$="User:Sailor_sofia"], #pagehistory a[href$="User:Tomasto1"], .diff a[href$="User:Tomasto1"], .page-Special_RecentChanges a[href$="User:Tomasto1"], #pagehistory a[href$="User:Taliseth"], .diff a[href$="User:Taliseth"], .page-Special_RecentChanges a[href$="User:Taliseth"], #pagehistory a[href$="User:C-Star55"], .diff a[href$="User:C-Star55"], .page-Special_RecentChanges a[href$="User:C-Star55"] { color: #008b8b; } /* admins */ #pagehistory a[href$="User:Ilovesockmonkeys"], .diff a[href$="User:Ilovesockmonkeys"], .page-Special_RecentChanges a[href$="User:Ilovesockmonkeys"], #pagehistory a[href$="User:NintendoLover"], .diff a[href$="User:NintendoLover"], .page-Special_RecentChanges a[href$="User:NintendoLover"], #pagehistory a[href$="User:Fang%C2%B3"], /* Fang³ */ .diff a[href$="User:Fang%C2%B3"], .page-Special_RecentChanges a[href$="User:Fang%C2%B3"], #pagehistory a[href$="User:AnimalCrossingFan12"], .diff a[href$="User:AnimalCrossingFan12"], .page-Special_RecentChanges a[href$="User:AnimalCrossingFan12"], #pagehistory a[href$="User:AgentCarmen12"], .diff a[href$="User:AgentCarmen12"], .page-Special_RecentChanges a[href$="User:AgentCarmen12"] { color: #b8860b; }
As for usertags, this will probably suit your needs:
function mastheadBoxes() { var rights, title = mw.config.get('wgTitle'), i; if ($('.UserProfileMasthead').length === 0) { return; } // fix for [[Special:Contributions/username]] if (mw.config.get('wgCanonicalSpecialPageName') === 'Contributions') { title = title.split('/')[1]; } rights = { 'username1': ['BUREAUCRAT'], 'username2': ['BUREAUCRAT', 'SYSOP'], 'username3': ['SYSOP', 'CHAT MODERATOR'] }; if (typeof rights[title] !== 'undefined') { // remove old rights $('.UserProfileMasthead .masthead-info .tag').remove(); // add new rights for (i = 0; i < rights[title].length; i += 1) { $('.masthead-info hgroup').append( ' ', $('<span/>', { 'class': 'tag', 'html': rights[title][i] }) ); } } } $(function () { mastheadBoxes(); });
This goes in your MediaWiki:Wikia.js.
Well for one you can't import CSS like a script. Secondly those are all relative urls. Unless the scripts are found in those folders on a website it won't work. And as we don't have access to MediaWiki in this way, you need to import the source from elsewhere, or c/p it over to your wiki and import it from there.
In your first attempts you tried to use tags in a javascript file. This will never work because tags are html and belong in the document, not in a script file.
This works fine for me:
/** * Highlight admin and bureacrat usernames in Special:RecentChanges and ?action=history. * Remember to replace spaces with underscores. * Non standard characters, anything that isn't a-z, numbers or basic symbols, need to be url-encoded. */ /* bureaucrats */ #pagehistory a[href$="User:Dragonfree97"], .page-Special_RecentChanges a[href$="User:Dragonfree97"], #pagehistory a[href$="User:MerrytonRyan"], .page-Special_RecentChanges a[href$="User:MerrytonRyan"], #pagehistory a[href$="User:Minifig-me"], .page-Special_RecentChanges a[href$="User:Minifig-me"], #pagehistory a[href$="User:Sailor_sofia"], .page-Special_RecentChanges a[href$="User:Sailor_sofia"], #pagehistory a[href$="User:Tomasto1"], .page-Special_RecentChanges a[href$="User:Tomasto1"], #pagehistory a[href$="User:Taliseth"], .page-Special_RecentChanges a[href$="User:Taliseth"], #pagehistory a[href$="User:C-Star55"], .page-Special_RecentChanges a[href$="User:C-Star55"] { color: #008b8b; } /* admins */ #pagehistory a[href$="User:Ilovesockmonkeys"], .page-Special_RecentChanges a[href$="User:Ilovesockmonkeys"], #pagehistory a[href$="User:NintendoLover"], .page-Special_RecentChanges a[href$="User:NintendoLover"], #pagehistory a[href$="User:Fang%C2%B3"], /* Fang³ */ .page-Special_RecentChanges a[href$="User:Fang%C2%B3"], #pagehistory a[href$="User:AnimalCrossingFan12"], .page-Special_RecentChanges a[href$="User:AnimalCrossingFan12"], #pagehistory a[href$="User:AgentCarmen12"], .page-Special_RecentChanges a[href$="User:AgentCarmen12"] { color: #b8860b; }
Just add it into your MediaWiki:Wikia.css, replacing the code posted above. If you want it to work for Monobook as well, you need to put it in either MediaWiki:Common.css or MediaWiki:Monobook.css.
I've got a working hack to import CSS on wikiamobile on rswiki, take a look here. I've imported Handheld.css because it's what's meant to be imported (except it's not currently supported by Wikia).
The same will work for importing javascript. Hypothetically, I'd use the same hack we use to import js (and css) into chat. I've refused to do so on rswiki because wikiamobile is meant to be lightweight and importing arbitrary bits of js into a skin (especially if it's for everyone) defies the point of being lightweight and could cause far more issues. There is also the problem of testing the js. Testing js on a device intended for wikiamobile is possible, but difficult and not something I'd expect your average wiki coder to do.
@Thisismyrofl I think you're referring to https://github.com/Wikia/app/pull/966 which would make the hack currently used obsolete. Just a matter of waiting for it to be merged hopefully.
I'm waiting to see the expected blog post on monday,but I doubt this can be put down to Wikia collecting and storing IP addresses as this would appear to be part of core MediaWiki - having contributions linked to accounts/IP addresses. Is there any difference on how wikimedia or other wiki hosts are handling this?
It's not as if there's an option to remove someone's contributions, unless discovered underage IPs are assigned an account named with an arbitrary string of numbers, likely very hard to implement and can also be circumvented through checkuser. Is going to be any review of who has access in terms of local wiki sysops having the tool? Checkuser always carried legal ramifications, but this would appear to add an extra facet to the potential problems the tool brings.
How will this affect wikis with broader subjects, like central, answers, lyricwiki, etc? They might not be specifically targeted towards those under 13, but the subject matter is so broad (or non-existant) that it's not unlikely to have several underage IPs.
Just to follow up on Jazzi's comment, you've used table as a class in the original post. This is an extremely bad idea when it comes to maintaining your css. For example:
/* this is a class that can be applied to tables */ .table { /* add styles here */ } /* and this applies to every table */ table { /* add styles here */ }
Simply missing out a full stop/period can cause unintentional styling to every table found on your wiki. I'd rename it to something that describes its use.
Looking through mw:Manual:$wgCategoryCollation, it appears it can't be done with the version of MediaWiki Wikia currently use, 1.19.
That variable was added with 1.21, which may, or may not be updated in the near future. 1.19 looks like it might start being unsupported soon, so who knows.
The forums being cached is a known bug, and one that was fixed last week.
Recent Changes should never be cached, it defies the point of it being "recent". You could try submitting a bug report, but I'm not sure if you need an account to do so.
Because the chat module is part of the sidebar it is considered a core part of the skin and cannot be modified in the way you're suggesting.
To add extra avatars in would result in a width change, which could disrupt other parts of the page. There are arrows to scroll through however many users are in chat though.
Wikia and Wikimedia are two separate entities that have little to nothing in common in terms of code and servers. They both use MediaWiki and a some extensions are used for both, but that's it.
I'd suggest taking a look through Wikia's github repository for the script that loads videos on file pages. It might be a plain extension, it might be an extra script I'm not sure. I think you need to hook the loading of the script onto the end of the youtube loading script. I've never really tried to do anything like this before, but I'll see if I can find the relevant script.