Jump to content

Avatar Size


TAV1702

Recommended Posts

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

Link to comment
Share on other sites

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. wink.gif

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

Link to comment
Share on other sites

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 384

Warning: 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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...