Board Thread:Support Requests - Getting Technical/@comment-4955311-20141204171716/@comment-4955311-20141205170240

RainingPain17 wrote: Ok, insert this in your local Wikia.js: // User groups $( function ( ) {     var rights  = { } ;    var admin  = "Admin" ;      var wikicoder <span class="sy0" style="color:rgb(51,153,51);"> = <span class="st0" style="color:rgb(51,102,204);">"Wiki Coder" <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// Begin list of accounts given extra user rights icons <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// Be sure that the last line listed for modified rights is followed by a semi-colon rather than a comma. <span class="co1" style="font-style:italic;color:rgb(0,102,0);">//Wiki Coder rights<span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(51,102,204);">'The Zog.' <span class="br0" style="color:rgb(0,153,0);">]          <span class="sy0" style="color:rgb(51,153,51);"> = <span class="br0" style="color:rgb(0,153,0);">[ admin<span class="sy0" style="color:rgb(51,153,51);">, wikicoder<span class="br0" style="color:rgb(0,153,0);">]; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// End list of accounts given extra user rights icons <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">if <span class="br0" style="color:rgb(0,153,0);">( wgPageName.<span class="me1" style="color:rgb(102,0,102);">indexOf <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"Special:Contributions" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">!= <span class="sy0" style="color:rgb(51,153,51);">- <span class="nu0" style="color:rgb(204,0,0);">1 <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ newTitle <span class="sy0" style="color:rgb(51,153,51);"> = fbReturnToTitle.<span class="me1" style="color:rgb(102,0,102);">replace <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"Special:Contributions/" <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">"" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; unfinishedTitle <span class="sy0" style="color:rgb(51,153,51);"> = newTitle<span class="sy0" style="color:rgb(51,153,51);">; while <span class="br0" style="color:rgb(0,153,0);">( unfinishedTitle.<span class="me1" style="color:rgb(102,0,102);">search <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"_" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">> <span class="nu0" style="color:rgb(204,0,0);">0 <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ unfinishedTitle <span class="sy0" style="color:rgb(51,153,51);"> = unfinishedTitle.<span class="me1" style="color:rgb(102,0,102);">replace <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"_" <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">" " <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} userName <span class="sy0" style="color:rgb(51,153,51);"> = unfinishedTitle<span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">else <span class="br0" style="color:rgb(0,153,0);">{ userName <span class="sy0" style="color:rgb(51,153,51);"> = wgTitle<span class="sy0" style="color:rgb(51,153,51);">; userName.<span class="me1" style="color:rgb(102,0,102);">replace <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">"User:" <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">"" <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">if <span class="br0" style="color:rgb(0,153,0);">( <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">typeof rights<span class="br0" style="color:rgb(0,153,0);">[ userName<span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);">!= <span class="st0" style="color:rgb(51,102,204);">"undefined" <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// remove old rights $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'.UserProfileMasthead .masthead-info span.tag' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">remove <span class="br0" style="color:rgb(0,153,0);">( <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">for <span class="br0" style="color:rgb(0,153,0);">( <span class="kw1" style="font-weight:bold;color:rgb(0,0,102);">var i <span class="sy0" style="color:rgb(51,153,51);"> = <span class="nu0" style="color:rgb(204,0,0);">0 <span class="sy0" style="color:rgb(51,153,51);">, len <span class="sy0" style="color:rgb(51,153,51);"> = rights<span class="br0" style="color:rgb(0,153,0);">[ userName<span class="br0" style="color:rgb(0,153,0);">] .<span class="me1" style="color:rgb(102,0,102);">length <span class="sy0" style="color:rgb(51,153,51);">; i <span class="sy0" style="color:rgb(51,153,51);">< len<span class="sy0" style="color:rgb(51,153,51);">; i<span class="sy0" style="color:rgb(51,153,51);">++ <span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{ <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// add new rights $<span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">' ' <span class="sy0" style="color:rgb(51,153,51);">+ rights<span class="br0" style="color:rgb(0,153,0);">[ userName<span class="br0" style="color:rgb(0,153,0);">] <span class="br0" style="color:rgb(0,153,0);">[ i<span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);">+                 <span class="st0" style="color:rgb(51,102,204);">' ' <span class="br0" style="color:rgb(0,153,0);">) .<span class="me1" style="color:rgb(102,0,102);">appendTo <span class="br0" style="color:rgb(0,153,0);">( <span class="st0" style="color:rgb(51,102,204);">'.masthead-info hgroup' <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} After saving your changes and bypassing your browser's cache, you will have the "Admin" and "Wiki Coder" tags next to your username.

Nope, didn't work. I deleted everything and replaced it with that, what should I put before it?