Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Avatar size too small
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Avatar size too small

 Post Reply Post Reply
Author
FatScape View Drop Down
Newbie
Newbie


Joined: 20 June 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote FatScape Quote  Post ReplyReply Direct Link To This Post Topic: Avatar size too small
    Posted: 21 June 2005 at 1:34am
When I link to website avatars, the avatr size decreases drastically in size. How do I change the policies of Avatar sizes? Thanks.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2005 at 10:11am
Do a search. Resizing avatars has been covered several times. One problem with allowing variable sized avatars is that they tend to throw off the forum formatting/sizing.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
FatScape View Drop Down
Newbie
Newbie


Joined: 20 June 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote FatScape Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2005 at 5:03pm
It's different than what you think. The proportionality of each picture changes as well. I linked to a picture of 107 x 83 and it changed into a 64 x 64. I'm not ok with it changing the proportionality. I'd like that ratio to stay the same. Is there a way to do this for ALL avatars for ALL members? I didn't find this on a search.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2005 at 7:54pm
First hit on a search for avatar resize returns this thread.
http://forums.webwiz.net/forum_posts.asp?TID=14871&KW=avatar+resize
Last post tells how to resize proportionally

Lead me not into temptation... I know the short cut, follow me.
Back to Top
FatScape View Drop Down
Newbie
Newbie


Joined: 20 June 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote FatScape Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2005 at 3:59am
<script language="javascript" type="text/javascript">
<!--
function resizeAvatar(avatar) {
     // width & height can be different e.g. 150/100
     var width = 150;
     var height = 150;
     var rw = avatar.width/width;
     var rh = avatar.height/height;

     if (rw > 1 || rh > 1) {
          var ratio = avatar.width/avatar.height;

          if(rw > rh) {
               avatar.sty le.width = width;
               avatar.sty le.height = width / ratio;
          }
          else if(rw < rh) {
               avatar.sty le.height = height;
               avatar.sty le.width = height * ratio;
          }
          else {
               avatar.sty le.width = width;
               avatar.sty le.height = height;
          }
     }
     else {
          avatar.style.width = avatar.width;
          avatar.style.height = avatar.height;
     }
}
//-->
</script>
 
 
I found the code, but it doesn't say what page to put it on...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.