Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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
 



 
JasonTheReaperSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Avatar Sizes 
 
have u clean cache after changing that ?
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Avatar Sizes 
 
Thank you for the answer, there is a button in ACP for cleaning cache? or I should do something with ftp?
 



 
JasonTheReaperSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Avatar Sizes 
 
Yes, inside extreme styles
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Avatar Sizes 
 
I click on empty cache and then compile cache but the avatar sizes are always the same
 



 
JasonTheReaperSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Avatar Sizes 
 
I don't know how to do... please help me
 



 
JasonTheReaperSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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  
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
JasonTheReaperSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 



 
JasonTheReaperSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [Hide]
  1. $avatar_width = 80;  
  2. $avatar_height = 80; 


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

 



 
JasonTheReaperSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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!

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Avatar Sizes 
 
Hi MG.
I think that the problem is in getimagesize function:

Code: [Download] [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
 



 
JasonTheReaperSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: FIXED - Avatar Sizes 
 
JasonTheReaper wrote: [View Post]
Hi MG.
I think that the problem is in getimagesize function:

Code: [Download] [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...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron