Avatar Sizes »  Show posts from    to     

Icy Phoenix


Old Support Topics - Avatar Sizes



JasonTheReaper [ Thu 24 May, 2007 20:17 ]
Post subject: Avatar Sizes
Hi, I have a big problem. The avatar in my website are 80x80 pixel but in the config. panel I set them 150x200.
Why they are still in the old dimension?

You can see it:
http://www.hattrickitalia.org/hi/viewtopic.php?p=621#p621


Zuker [ Thu 24 May, 2007 20:54 ]
Post subject: Re: Avatar Sizes
have u clean cache after changing that ?


JasonTheReaper [ Thu 24 May, 2007 21:07 ]
Post subject: Re: Avatar Sizes
Thank you for the answer, there is a button in ACP for cleaning cache? or I should do something with ftp?


Zuker [ Thu 24 May, 2007 21:17 ]
Post subject: Re: Avatar Sizes
Yes, inside extreme styles


JasonTheReaper [ Thu 24 May, 2007 21:22 ]
Post subject: Re: Avatar Sizes
I click on empty cache and then compile cache but the avatar sizes are always the same


JasonTheReaper [ Fri 25 May, 2007 08:24 ]
Post subject: Re: Avatar Sizes
I don't know how to do... please help me


Vortex [ Fri 25 May, 2007 10:44 ]
Post subject: Re: Avatar Sizes
JasonTheReaper wrote: [View Post]
I click on empty cache and then compile cache but the avatar sizes are always the same



Hm... let me understand, what is the same? The sizes shown in ACP or the avatar images? If you are talking about the images shown in viewtopic it's perfectly normal. You set a limit, already uploaded avatars don't change... you can't automatically enlarge them from ACP


JasonTheReaper [ Fri 25 May, 2007 13:31 ]
Post subject: Re: Avatar Sizes
This is the first avatar:

http://img410.imageshack.us/img410/...inavataryj8.jpg

of that post:

http://www.hattrickitalia.org/hi/viewtopic.php?p=621


You can see that img is 200x179 but in the topic is restrict to 80x80 due to HTML forcing width and height. Why?? I have set 150x200 as max avatar size in ACP.


JasonTheReaper [ Fri 25 May, 2007 16:10 ]
Post subject: Re: Avatar Sizes
I understand that only avatar type # 2 are affected by this problems (avatar linked from another website).
Avatar type #1 (uploaded in my website) are in the right dimensions...


JasonTheReaper [ Fri 25 May, 2007 17:07 ]
Post subject: Re: Avatar Sizes
I scan the code and I found the problem.

File includes/functions.php on lines 1896, 1897 there are 2 variables:
Code: [Hide]
  1. $avatar_width = 80;  
  2. $avatar_height = 80; 


I replace them with:
Code: [Hide]
  1. $avatar_width = $board_config['avatar_max_width'];  
  2. $avatar_height = $board_config['avatar_max_height']; 


Mighty Gorgon [ Sat 26 May, 2007 03:08 ]
Post subject: Re: FIXED - Avatar Sizes
Thanks for pointing this out.

I've modified that code because it was slowing up some sites with no IMAGE RESIZE capabilities.

That's why I've forced avatars to be 80 pixel wide and tall.

I still have to verify the implication of this.

Please, keep me posted if you discover something else about this issue.

 
Off Topic
:
Your site is quite big, I read about some users disappointed by Icy Phoenix . Since your site is an high traffic site, let me know if you encounter problems as soon as the db increases... Thanks!


JasonTheReaper [ Sat 26 May, 2007 12:10 ]
Post subject: Re: Avatar Sizes
Hi MG.
I think that the problem is in getimagesize function:

Code: [Hide] [Select]
$pic_size = @getimagesize($avatar_url);


Probably that function try to connect to all avatars websites and if there is at least one website slow the page is very very slow...
I think also that resize_avatar() function is not needed because when you set an avatar in your profile there is already a dimension control...

(sorry for my bad english)


OT: Users are disappointed by website response but I think is a server performance problem. Before I use PHP-Nuke (2004 version) modded by me and we have the same problem. We reach a 350 mb database... I choose your project because is wonderful! Do you suggest me a quick and good price hosting? thanks and congratulations


Mighty Gorgon [ Wed 30 May, 2007 12:37 ]
Post subject: Re: FIXED - Avatar Sizes
JasonTheReaper wrote: [View Post]
Hi MG.
I think that the problem is in getimagesize function:

Code: [Hide] [Select]
$pic_size = @getimagesize($avatar_url);


Probably that function try to connect to all avatars websites and if there is at least one website slow the page is very very slow...
I think also that resize_avatar() function is not needed because when you set an avatar in your profile there is already a dimension control...


Your english is not bad...

You got the point: the getimagesize function on some servers is tremendously slow, and I can't understand why... that's why I have removed it. I can add a switch for enabling it on fast servers... I'll think about it.

Thanks


JasonTheReaper wrote: [View Post]
OT: Users are disappointed by website response but I think is a server performance problem. Before I use PHP-Nuke (2004 version) modded by me and we have the same problem. We reach a 350 mb database... I choose your project because is wonderful! Do you suggest me a quick and good price hosting? thanks and congratulations

I'm using Aruba on shared server since 2001 and I'm really satisfied with them. I had just few problems, but I get them solved with some patience... If you are able to configure fine your applications, shared servers are fine and cheap. If you think you need an higher level of service, of course you have to switch to a virtual or a dedicated server...




Powered by Icy Phoenix