|
Post by Qwerty on Aug 3, 2009 4:01:55 GMT -5
<!-- -----[ Multi-Colored Names (Footer Half) ]-------------------------------------------------------------- --> <!-- ============================================================== -->
<script type="text/javascript"> <!-- /* multi-colored names - ross - open source but please keep header intact */ var a = document.getElementsByTagName('a'); function changeName(username, displayname) { for(i=0; i<a.length; i++) { if(a.item(i).href.match(new RegExp('user='+username+'$', 'i'))) { a.item(i).innerHTML = displayname; } } }
It goes on, but the rest is unimportant. The problem is, this makes the "modify profile" and "ban user" links turn into copies of their name. This problem has been completely fixed, I'm just logging it here.
<!-- -----[ Multi-Colored Names (Footer Half) ]-------------------------------------------------------------- --> <!-- ============================================================== -->
<script type="text/javascript"> <!-- /* multi-colored names - ross - open source but please keep header intact */ var a = document.getElementsByTagName('a'); function changeName(username, displayname) { for(i=0; i<a.length; i++) { if(a.item(i).href.match(new RegExp('action=viewprofile&user='+username+'$', 'i'))) { a.item(i).innerHTML = displayname; } } }
|
|
|
Post by General Veers on Aug 3, 2009 15:44:23 GMT -5
Yes, thank you very much for that. I was wondering about that myself...
|
|
|
Post by Qwerty on Aug 4, 2009 2:08:50 GMT -5
It got annoying...
I've been testing that code out a bit, and you can actually replace your name with almost any HTML. It didn't work with images, though, for some reason. The code itself is very simple.
|
|