Forum:Adding User Group boxes help

Is there anything wrong with the below code? It works on Terraria Wiki. Thanks. -- 18:20, February 5, 2012 (UTC)
 * Bump -- 23:37, February 7, 2012 (UTC)
 * More context would be helpful. Like, what is the code supposed to do? Is there any CSS that needs to go with it? Were did you put the code on your wiki? Where does the code live on the wiki where it works?
 * It looks like it's supposed to change the label on user profiles. -- Fandyllic (talk &middot; contr) 8 Feb 2012 4:03 PM Pacific
 * Should look like this. -- 01:01, February 9, 2012 (UTC)
 * BUMP -- 12:34, February 9, 2012 (UTC)
 * It looks like the code can't be used directly, but as an import. I put a version at User:Fandyllic/wikia.js/userRightsIcons.js and imported it in my User:Fandyllic/wikia.js like this:

 // Additional UserRights Icons in profile mastheads importScript('User:Fandyllic/wikia.js/userRightsIcons.js'); // END Additional UserRights Icons in profile mastheads
 * It worked for me. Try putting the code in a sub-page (like MediaWiki:wikia.js/userRightsIcons.js) and then import it from there like on the Terraria wiki. -- Fandyllic (talk &middot; contr) 9 Feb 2012 4:52 PM Pacific
 * w:c:music:MediaWiki:Wikia.js, w:c:music:MediaWiki:Wikia.js/userRightsIcons.js - it's still not functioning. -- 02:52, February 10, 2012 (UTC)


 * Your code is improper. All var lines should have a  at the end except the last which should have a  . And it would be nice if I was credited for the code while you're at it. Look here for proper syntax. Rappy 05:10, February 10, 2012 (UTC)


 * I did credit you. Thanks! But it's still not working. -- 12:57, February 10, 2012 (UTC)

Ah. The code above omitted the credit line. The code works. According to music.wikia.com, the JS isn't even loading. I've heard a bunch of people complain about this in the last week. I will be contacting Wikia about it. It seems like a simple caching issue. How long has it been imported into your JS? Rappy 15:56, February 10, 2012 (UTC)


 * Yeah, makes sure the code has the following:

 // WRITTEN BY USER:Rappy_4187
 * I guess there are some wiki specific JS loading issues. It worked for me. -- Fandyllic (talk &middot; contr) 10 Feb 2012 1:02 PM Pacific


 * Yeah there is. I've reported it. Once again it seems that personal CSS/JS is loading fine, but site-wide isn't. Just hold for a day or so Jeff. Wikia will hopefully solve the issue. Rappy 21:33, February 10, 2012 (UTC)


 * Yeah, the site-wide JS loading problem seems to be like a disease in Wikia's servers. It hit WoWWiki a day or two ago. -- Fandyllic (talk &middot; contr) 13 Feb 2012 11:23 AM Pacific