CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | [F] Re-Define Avatar Size Limits (27th Feb 08 at 12:56pm UTC) | | I was wondering if it is possible to get an code so i can set the avatar size more than 100x100px please. | |
 click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Re-Define Avatar Size Limits (27th Feb 08 at 10:52pm UTC) | | Do you want to impose a new limit? Or just default it to the current avatar size?
Try 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>
| |
|
CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Re-Define Avatar Size Limits (27th Feb 08 at 11:30pm UTC) | | I want to impose a new limit please.
Say i wanted to have an avatar 140x140 , i would like to have all avatars at that size .
Ok wait this code will allow me to change my avatar size ??
And it goes in Global Footer? | |
 click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Re-Define Avatar Size Limits (27th Feb 08 at 11:37pm UTC) | | ooo ok...
try this:
 Code: - <script>
- /*New Max Av 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].height = (get('img','tag')[i].height > 140)? '140' : get('img','tag')[i].height;
- get('img','tag')[i].width = (get('img','tag')[i].width > 140)? '140' : get('img','tag')[i].width;
- }
- }
- </script>
Global FooteR! | |
|
CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Re-Define Avatar Size Limits (27th Feb 08 at 11:42pm UTC) | | Its in my Global Footer and i'm sorry Wrighty but it doesn't work bro. http://tropolis.virtualforums.co.uk/ | |
 click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Re-Define Avatar Size Limits (27th Feb 08 at 11:46pm UTC) | | I have tested it on my forum and it works.
 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');
- get('img','tag')[i].height = (get('img','tag')[i].height > 140)? '140' : get('img','tag')[i].height;
- get('img','tag')[i].width = (get('img','tag')[i].width > 140)? '140' : get('img','tag')[i].width;
- }
- }
-
- </script>
That? | |
|
CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Re-Define Avatar Size Limits (27th Feb 08 at 11:57pm UTC) | | It doesn't seems to change anything Wrighty , i even tried the first code you gave and that wouldn't work .
I'm i putting it in the right place? | |
 click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Re-Define Avatar Size Limits (27th Feb 08 at 11:58pm UTC) | | Hold on, I might have mis understood you. Do you want the av to be 140 x 140 irrespective of anything? Try 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');
- get('img','tag')[i].height = '140';
- get('img','tag')[i].width = '140';
- }
- }
-
- </script>
| |
|
CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Re-Define Avatar Size Limits (28th Feb 08 at 12:01am UTC) | | That's it Wrighty its perfect my friend thank you . | |
 click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Re-Define Avatar Size Limits (28th Feb 08 at 12:03am UTC) | | | |
|