FANDOM


This is the talk page for discussing improvements to the MessageWallUserTags page.

Where am I going wrong?

I added the following code to Common.js at RangerWiki, but it's not having any effect.
window.MessageWallUserTags = {
    tagColor: 'red',
    glow: true,
    glowSize: '15px',
    glowColor: '#f77',
    users: {
        'Digifiend': 'ADMIN',
        'Nbajammer': 'ADMIN',
        'Dchallofjustice': 'ADMIN',
        'Digi': 'ADMIN',
        'Gaeaman788': 'ADMIN',
        'Gear-Richie': 'ADMIN',
        'Aldo_The_Fox': 'ADMIN'
};
 
importArticles({
    type: 'script',
    articles: [
        //other scripts,
        'u:dev:MessageWallUserTags/code.js'
    ]
});
Any idea why? Digifiend (talk) 20:26, May 20, 2014 (UTC)
Thanks for bringing this to my attention, I had forgotten to include a curly bracket in the instructions. My apologizes for the inconvenience. I checked out your Common.js as well and there are a few errors keeping it from working properly, such as a missing comma, as well as unnecessary/duplicate import statements, and a couple other little things. This is how your Common.js should look:
/* Das folgende JavaScript wird für alle Benutzer geladen. */
 
//================================================================================
//*** import Onlyifuploading-functions
// SEE ALSO [[MediaWiki:Onlyifuploading.js]]
 
if (wgCanonicalSpecialPageName === "Upload") {
    addOnloadHook(function() {
        var editbox = document.getElementById('wpUploadDescription');
        if (!editbox)
            return;
        if (editbox.value !== '')
            return;
        editbox.value = "{" + "{FileInfo\n"
            + "|Description=\n"
            + "|Author=\n"
            + "|Season=\n"
            + "|Source=\n"
            + "}" + "}";
    });
}
 
window.MessageWallUserTags = {
    tagColor: 'red',
    glow: true,
    glowSize: '15px',
    glowColor: '#f77',
    users: {
        'Digifiend': 'ADMIN',
        'Nbajammer': 'ADMIN',
        'Dchallofjustice': 'ADMIN',
        'Digi': 'ADMIN',
        'Gaeaman788': 'ADMIN',
        'Gear-Richie': 'ADMIN',
        'Aldo_The_Fox': 'ADMIN'
    }
};
 
/* ================
 Imports
 ================ */
 
importArticles({
    type: "script",
    articles: [
        "MediaWiki:Common.js/forumnote.js",
        'w:c:dev:SignatureCheck/code.js',
        'w:c:dev:CategoryRenameAuto-update/code.js',
        'w:c:dev:MessageWallUserTags/code.js'
    ]
});
That should fix this issue as well as several others. —RyaNayR (talkcontribs) 22:04, May 20, 2014 (UTC)
Thank you very much! All the extensions I added are now working like a charm! :) Digifiend (talk) 00:24, May 22, 2014 (UTC)
Glad to hear that! You're most welcome! —RyaNayR (talkcontribs) 17:55, May 22, 2014 (UTC)

User name with apostrophe

Hi, I am the admin on Happy Tree Friends Wiki. And I was wondering how to fix the problem with a user that has apostrophe in their name. As when I try to add their name it will break the whole MediaWiki:Common.js.

window.MessageWallUserTags = {
    tagColor: '#FFFFFF',
    glow: false,
    users: {
        'username': 'usergroup',
        'Lord O' Darkness': 'Bureaucrat', (← This user will break the whole MediaWiki:common.js)
        'Uhohspaghhetiohs': 'Bureaucrat',
        'Cuddlefan': 'Admin • Handy',
        'Yong_feng': 'Admin • Petunia',
        'AnimationFan15': 'Mime',
        'Denzal689': 'Flaky',
    }
};

I was wondering how to fix it. Because I don't want to break the whole MediaWiki I deleted his name on the list.


-- 21:56, July 29, 2014 (UTC)

forum module ?

Does this work on the new Wikia Forum module? --SuperSajuuk Talk Page | Tabber Code | Channel 19:41, September 10, 2014 (UTC)

Yes, as a matter of fact it does. —RyaNayR (talkcontribs) 10:48, September 13, 2014 (UTC)
Thanks! One more question: will this work in personal js files? I'm pretty sure it will, but your script page says it's for site wide use and doesn't cover personal js scripts, so just want to be sure. --SuperSajuuk Talk Page | Tabber Code | Channel 23:17, September 14, 2014 (UTC)

Suggestion

Hi there, I'd like to recommend that the fixed text of Message_Wall in the identifier be changed to switching text that checks to see if Message Walls are enabled, giving more flexibility for users who use the newer threaded forum system, but use the traditional user talkpages. As it stands, I can't get your script to work on a wiki that uses the new forums but uses user talkpages, the selector isn't working. --SuperSajuuk Talk Page | Tabber Code | Channel 15:58, September 18, 2014 (UTC)

Changing $('a.subtle[href$="Message_Wall:' + name + '"]') to $('a.subtle[href$="Message_Wall:' + name + '"], a.subtle[href$="User_talk:' + name + '"]') should probably do the trick--~UltimateSupreme 17:08, September 18, 2014 (UTC)

I don't see what's wrong

Here is a link: http://nl.onceuponatime.wikia.com/wiki/MediaWiki:Common.js. I don't know why it isn't working.

Rubenvst (talk) 00:49, July 22, 2015 (UTC)

Difference

Can somebody tell me what's the difference between these tags and those tags?

JOE TD 16:48, February 5, 2016 (UTC)

Fonts

How could I change the fonts for the MessageWallUserTags? I tried on the CSS on the Community Plaza Wiki, but nothing's changed. -LinuxFan399 (talk) 17:46, April 12, 2016 (UTC)

You need to use !important to overwrite the default value. Something like this:
.MessageWallUserTag {
	font-family: Verdana !important;
}
--~UltimateSupreme 13:17, April 13, 2016 (UTC)

Does this work for end-of-page Comments?

I thought end-of-page Comments used the same system as Forum and Message Walls, so maybe this would work there too? -- Fandyllic (talk · contr) 6 Feb 2017 12:53 PM Pacific

I doubt it does. Even though comments do use a similar title structure as threads, I believe the organization of elements on the page is very different. Also, comments are lazy-loaded. -- Cube-shaped garbage can 21:20, February 6, 2017 (UTC)

Not working?

I've imported the code to MediaWiki:ImportJS and added the configuration code to MediaWiki:Common.js on the Symphogear Wiki, but it doesn't seem to work.

window.MessageWallUserTags = {
    tagColor: '#A21E69',
    txtSize: '10px',
    glow: true,
    glowSize: '15px',
    glowColor: '#2A081B',
    users: {
        'HorizonStriker': 'Admin',
        'Sylphfarn12': 'Admin',
        'CureHibiki': 'Admin',
        'Lightangel2': 'Admin',
    }
};

Did I do anything wrong with the code? HorizonStriker (talk) 13:06, May 28, 2019 (UTC)

Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+