I am using this:
Code:
- <script>
- /*Remove Avatar Max Size
- Created By Wrighty*/
- for(i=0;i<get('img','tag').length;i++){
- if(get('img','tag')[i].alt == '[Avatar]'){
- get('img','tag')[i].removeAttribute('style');
- }
- }
- </script>
But... I know we'll eventually get a member triyng to use one that is too big. I want a way to just limit it to 120 by 250px please since we cannot set max height/width by vForums yet.
I know there is a {avatar_width} and height, and url in templates. But, it still limits itself to 100x100
Code:
- <script type="text/javascript">
- <!--
- /*Remove Avatar Max Size
- Created By Wrighty*/
- for(i=0;i<get('img','tag').length;i++){
- if(get('img','tag')[i].alt == '[Avatar]'){
- get('img','tag')[i].removeAttribute('style');
- get('img','tag')[i].style.maxWidth = '120px';
- get('img','tag')[i].style.maxHeight = '250px';
- }
- }
- //-->
- </script>
You can give that a go. Just don't quite remember which versions of Internet Explorer support Max Width/Height properties.
Awesome! Works and it keeps proportions!