I was wondering if it is possible to get an code so i can set the avatar size more than 100x100px please.
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>
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?
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!![]()
Its in my Global Footer and i'm sorry Wrighty but it doesn't work bro.
http://tropolis.virtualforums.co.uk/
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?
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?
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>
That's it Wrighty its perfect my friend thank you.