vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Multicoloured Names
Multicoloured Names - Posted By Michael (wrighty) on 2nd Apr 08 at 10:25pm
This will allow you to replace a members displayname with anything you wish.
The purpose that it was written for was for multi-colored names.
<script>
/*Multicoloured Names
Created By Wrighty
Do Not: Rip, Repost or Claim*/
var a = get('a','tag');
function _col(u, x){
for(i=0;i<a.length;i++){
if(a[i].href.match(new RegExp('view_profile/user/'+u))){
a[i].innerHTML = x
}
}
}
_col('admin', '<font color=#FF0000>Ad</font><font color=#0000FF>min</font>');
</script>
To color more names simply repeat the line in red. the first part is the username, with the second being the new name of the person. Use HTML <font></font> tags as shown for colouring!
Global Footer
Re: Multicoloured Names - Posted By ajay (ajay) on 2nd Apr 08 at 10:53pm
Wow, that was quick i just asked for it . Well thanks wrighty you rock!
Re: Multicoloured Names - Posted By Michael (wrighty) on 2nd Apr 08 at 10:55pm
Welcome!