Jordan
Elite Poster
[M:5000]
Posts: 286
|
Post by Jordan on Dec 30, 2010 2:13:25 GMT
This code changes a users display name to an image of your choice. Put the user's user name in the first set of quotes, and the image URL in the second set of quotes. Be sure to increase the red number inside of the [] by one each time. Global Footers <script type="text/javascript"><!-- /* * Image as Display Name * Created by Triad * support.proboards.com */
var _name = new Array(); _name[0] = ["admin", "image_url"]; _name[1] = ["test", "image_url"];
for(var a = document.getElementsByTagName("a"), x=0; x<a.length; x++){ if(a[x].className && a[x].className.match(/group/i)){ for(b=0; b<_name.length; b++){ if(_name[0] == a[x].href.split("=")[2]){ var _img = document.createElement("img"); _img.src = _name[1]; _img.border = 0; _img.alt = a[x].href.split("=")[2]; _img.title = a[x].href.split("=")[2]; var _a = a[x].cloneNode(true); _a.replaceChild(_img, _a.firstChild); a[x].parentNode.replaceChild(_a, a[x]); break; } } } } //--></script>
|
|