Template talk:USERNAME

From the Kingdom Hearts Wiki: A world of information not accessible by Gummiship
Jump to navigationJump to search

*sigh*, this does not work without the JS. User:ILHI/Sig 16:46, 23 August 2009 (UTC)

I was wandering why it did not work. oops. Can you help us oh mighty ILHI? Ultima 17:09, 23 August 2009 (UTC)
// ****************************************************** //
// ************* USERNAME template by Spang ************* //
// ****************************************************** //

 function UserNameReplace() {
    if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return;
    var n = YAHOO.util.Dom.getElementsByClassName('insertusername', 'span', document.getElementById('bodyContent'));
    for ( var x in n ) {
       n[x].innerHTML = wgUserName;
    }
 }
 addOnloadHook(UserNameReplace);

// ****************************************************** //

User:ILHI/Sig 18:40, 23 August 2009 (UTC)