TAV1702 Posted February 17, 2011 Report Share Posted February 17, 2011 Where at can I find the controls for avatar size? I think 80x80 is ok but is a bit restrictive. I was wanting to up the anty a little bit. And then I will get in the tpl file and warn pilots before they upload that it can only be what ever size I choose as max settings. Thanks in advance either way. Ray Quote Link to comment Share on other sites More sharing options...
James142 Posted February 17, 2011 Report Share Posted February 17, 2011 Where at can I find the controls for avatar size? I think 80x80 is ok but is a bit restrictive. I was wanting to up the anty a little bit. And then I will get in the tpl file and warn pilots before they upload that it can only be what ever size I choose as max settings. Thanks in advance either way. Ray in your local.config file look for this code: # Avatar information Config::Set('AVATAR_FILE_SIZE', 50000); # Maximum file-size they can upload Config::Set('AVATAR_MAX_WIDTH', 80); # Resized width Config::Set('AVATAR_MAX_HEIGHT', 80); # Resized height Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted February 17, 2011 Author Report Share Posted February 17, 2011 DOH!!!!! The one and only place I forgot to look. Thanks for the reminder. After a year and half or so you would figure I would have known that lol. I been digging in waaaaay too many files the last couple days. Maybe time for a break. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted February 17, 2011 Author Report Share Posted February 17, 2011 And why might I be getting this every time I upload a avatar? Warning: imagecreatefromgif() [function.imagecreatefromgif]: Filename cannot be empty in /home/xxxxxxx/public_html/xxxxxxx/core/common/PilotData.class.php on line 384Warning: imagesy(): supplied argument is not a valid Image resource in /home/xxxxxxx/public_html/xxxxxxx/core/common/PilotData.class.php on line 393 Warning: imagesx(): supplied argument is not a valid Image resource in /home/xxxxxxx/public_html/xxxxxxx/core/common/PilotData.class.php on line 394 Warning: Division by zero in /home/xxxxxxx/public_html/xxxxxxx/core/common/PilotData.class.php on line 397 Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/thunderv/public_html/midwest/core/common/PilotData.class.php on line 399 Warning: imagecopyresized(): supplied argument is not a valid Image resource in /home/xxxxxxx/public_html/xxxxxxx/core/common/PilotData.class.php on line 401 Warning: imagepng(): supplied argument is not a valid Image resource in /home/xxxxxxx/public_html/xxxxxxx/core/common/PilotData.class.php on line 405 Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/xxxxxxx/public_html/xxxxxxx/core/common/PilotData.class.php on line 406 Is it attempting to tell me my file size was wrong? The name was too long or too short? It was the wrong file type? I think rather then get this error, it should go to an error handling page of some type or give the pilot a reason for the error so he/she knows what to do or what not to do. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 18, 2011 Administrators Report Share Posted February 18, 2011 It could be a permissions error. Could be that your server doesn't support the .gif extension. Which version are you on? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.