Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Jul 5, 2005 19:21:59 GMT
This code will force users to provide their own Avatar URL rather than using a default one. However, it will keep the preview box. Goes into the Main Footer <script type="text/javascript"> <!-- /* remove default avatars by elindir do not redistribute or edit 101support.proboards43.com */
var noav="http://img181.imageshack.us/img181/4568/blank9zi.gif"; //Blank Image
if(document.modifyForm) { var ka=document.getElementsByTagName("td") for (e=0;e<ka.length;e++) if(location.href.match(/action=modifyprofile/gi) && ka[e].innerHTML.match(/Avatar:/) && ka[e].width=="160"){ var image = document.getElementsByTagName('input') for(f=0;f<image.length;f++) if(image[f].name.match(/avatarurl/) && image[f].size=="35"){ if(image[f].value.match(/./)){var url=image[f].value;}else{var url=noav;} image[f].value = ''; var width=image[f+1].value; var height=image[f+2].value; ka[e+1].innerHTML="<img name='avatarImage' src='"+url+"' width='"+width+"' height='"+height+"' \/>"; ka[e+1].align="center"; ka[e+2].style.display="none"; } } } // --> </script>
|
|