![]() |
Avatar Creator/Resizer
This is more like an additional file than a "hack".
What it does is allow members to resize a jpeg to the standard 64x64 jpeg....while keeping the aspect ratio - and use it as their avatar. This isn't FULLY automated because when a jpeg is submitted, it will send BACK a resized version, then the user can use that file to upload it to wherever. Installation: Upload the attached file to your forums directory. Put a link somewhere to let your forum users know about the new feature. Suggested template is: modifyavatar_customupload UPDATE: Uploaded Version 1.01 (Added two custom variables. Can keep aspect ratio and avatar max size. ) UPDATE: New v1.02 (Fixed some typos) |
Installed php file, getting this following error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/forum/avatarcreator.php on line 76 |
What version of PHP are you using?
That function is part of PHP 3.0.16+ and PHP 4.0.0+ |
Wow. This looks really cool.
|
This hack will require your PHP to have GD support compiled in.
|
great !!!
but i have every time the same error.. "Sorry, only jpeg pictures can be resized here!" but my pic are a JPG... |
O.k this hack works fine to me, only problem I like to solve is to make the pictures as it's on the setting for my board 50x50 and not as 64x15 witch is the size that the avatar hack is doing.
any sugestion? |
Ah, thanks freddie forgot about the GD library :o
BlueWolf, download the updated file and set $aron to 0 and set $sz to 50. |
Quote:
|
I am probably doing something real stupid, but if I create a link to that php file I get.
PHP Code:
|
All times are GMT. The time now is 07:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|