Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Geek Auto Avatar Resizer Details »»
Geek Auto Avatar Resizer
Version: 1.00, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-16-2005 Last Update: Never Installs: 33
Is in Beta Stage  
No support by the author.

Basically this is a very simple addition to stop the mega computer literate who use my forums driving everyone insane with their 'I tried to upload my pic as an avatar but its too big - how do I resize it'.

In a nutshell, this will automatically resize the uploaded avatar (and profile picture) to your max dimensions (if it is too big).
It must still be smaller than the Custom Avatar Maximum File Size (bytes) / Profile Picture Maximum File Size (bytes) setting. In fact - it wont even get uploaded if the pic exceeds this size. Therefore I would suggest raising this limit to an appropriate amount.

There is 1 file edit (1 line) and 1 include file.

(Im going to get pissed if someone says there is already a hack for this )

change log
-----------
Update to BETA 1.02 on 18/03/05
Added GD test
Fixed dumb typo that caused image dimensions to not be retrieved.

nJoy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 04-25-2005, 06:24 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FightRice.com
I tried to install this, and i think it got it all installed

But then i go and test out an avatar to upload and it still tells me it is too big

Any ideas? No errors or anything like that
Dimension wise or byte wise?

If you are storing them in the db, check a few posts back that lists a fix for db avatar storage
Reply With Quote
  #43  
Old 05-07-2005, 10:22 AM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work Perfectly with 3.0.7, thank Geek

~~~~~~~~~~~~~~~~~~~
Click install
~~~~~~~~~~~~~~~~~~~
Reply With Quote
  #44  
Old 05-07-2005, 04:15 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So are animations lost when scaling?
Reply With Quote
  #45  
Old 05-24-2005, 09:56 AM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi

this was working fine for me for a while, but suddenly, i'm getting the following error when i try to upload an image for an avatar:

Quote:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/www/pbfans/forum/includes/functions_geekautoavatar.php on line 10
also happens with gif and png... any ideas?
Reply With Quote
  #46  
Old 05-24-2005, 10:09 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mkdevo
hi

this was working fine for me for a while, but suddenly, i'm getting the following error when i try to upload an image for an avatar:



also happens with gif and png... any ideas?
That is an internal php function that is being called based on your GD settings. Check and make sure its right (vb options->Server Settings (i think))

Jordan - not too sure - havent tested it for that. However I can only assume it would.
Reply With Quote
  #47  
Old 05-30-2005, 10:31 PM
wildondallas's Avatar
wildondallas wildondallas is offline
 
Join Date: Jul 2004
Location: Dallas, TX
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working great! Hoping this will increase people adding photos for their profile picture and avatar. Thanks for this hack :up:
Reply With Quote
  #48  
Old 05-31-2005, 04:45 PM
Stachel Stachel is offline
 
Join Date: Jun 2004
Location: US
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I have a pic that is 150x100

and avatar limits are 100x100

Will it look distorted when the avatar is uploaded (because it gets changed to be a perfect square) ?

Stachel
Reply With Quote
  #49  
Old 05-31-2005, 07:53 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stachel
If I have a pic that is 150x100

and avatar limits are 100x100

Will it look distorted when the avatar is uploaded (because it gets changed to be a perfect square) ?

Stachel
It keeps the ratio - so your image will end up something like 100x75 when done
Reply With Quote
  #50  
Old 06-18-2005, 08:30 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tried uploading a pic of an animated GIF, that is 120 pixels. I set the max width to 90 in my CP.

This is the error Im getting with an animated gif:

PHP Code:
Warningimagecreatetruecolor(): Invalid image dimensions in /includes/functions_geekautoavatar.php on line 44

Warning
imagecopyresampled(): supplied argument is not a valid Image resource in /includes/functions_geekautoavatar.php on line 45

Warning
imagegif(): supplied argument is not a valid Image resource in /includes/functions_geekautoavatar.php on line 53

Warning
imagedestroy(): supplied argument is not a valid Image resource in /includes/functions_geekautoavatar.php on line 58 
Reply With Quote
  #51  
Old 06-19-2005, 09:05 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paul41598
I just tried uploading a pic of an animated GIF, that is 120 pixels. I set the max width to 90 in my CP.

This is the error Im getting with an animated gif:

PHP Code:
Warningimagecreatetruecolor(): Invalid image dimensions in /includes/functions_geekautoavatar.php on line 44

Warning
imagecopyresampled(): supplied argument is not a valid Image resource in /includes/functions_geekautoavatar.php on line 45

Warning
imagegif(): supplied argument is not a valid Image resource in /includes/functions_geekautoavatar.php on line 53

Warning
imagedestroy(): supplied argument is not a valid Image resource in /includes/functions_geekautoavatar.php on line 58 
Does it not happen with a standard gif? To be honest it looks like the GD settings in vboptions is incorrect.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04908 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete