inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Jun 18, 2005 14:03:18 GMT -8
Global Footer: Edit note: Below was the code used for this. As of February 2013 it appears that the two codes below no longer function for v4.5 forums to resize the avatar size limit. Instead, use the code found here. <script type="text/javascript"> <!-- /* Remove avatar size limits for everyone by california */ var img=document.getElementsByTagName("img"); if(location.href.match(/=(display|viewprofile|search2|pmview|recent)/)){ for(i=0;i<img.length;i++){ if(img.alt=="[avatar]"){ var t=img.parentNode; var s=t.innerHTML.replace(/width=.?\d+?.?/i,''); t.innerHTML=s.replace(/height=.?\d+?.?/i,''); } } } // --> </script>
If you want to increase the avatar size limit (100x100) instead of removing it completely, put this code in the Global Footer, below the code above.
<script type="text/javascript"> <!-- /* avatar size limit by california */
var maxWidth=200; var maxHeight=200;
var img=document.getElementsByTagName("img"); for(i=0;i<img.length;i++){ if(img.width>maxWidth && img.alt.match(/\[avatar\]/i)){ img.style.height=""+(img.height*maxWidth/img.width)+"px"; img.style.width=""+maxWidth+"px"; } if(img.height>maxHeight && img.alt.match(/\[avatar\]/i)){ img.style.width=""+(img.width*maxHeight/img.height)+"px"; img.style.height=""+maxHeight+"px"; } } // --> </script>
|
|