Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases

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
  #22  
Old 03-25-2005, 05:07 AM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed this but I'm still getting the error "That image is too large. The maximum dimensions are 48 by 48 pixels."

I am trying to upload a 100x60 (1.16KB) or a 100x100 (4.62KB) gif image and my forum settings are at "48 by 48 pixels or 9.8 KB (whichever is smaller)".

If I'm understanding this hack correctly, it should be resizing the 100x60 or the 100x100 image to 48x48 and not givng the error message?

Any ideas?
Reply With Quote
  #23  
Old 03-25-2005, 06:34 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 rrr
I just installed this but I'm still getting the error "That image is too large. The maximum dimensions are 48 by 48 pixels."

I am trying to upload a 100x60 (1.16KB) or a 100x100 (4.62KB) gif image and my forum settings are at "48 by 48 pixels or 9.8 KB (whichever is smaller)".

If I'm understanding this hack correctly, it should be resizing the 100x60 or the 100x100 image to 48x48 and not givng the error message?

Any ideas?
Check that your GD settings are correct. If its set to none - it will bypass the routine.
Reply With Quote
  #24  
Old 03-25-2005, 01:05 PM
MajidOnline MajidOnline is offline
 
Join Date: Mar 2005
Location: In my clothes !
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear The Geek,

Thank you,
This is a useful hack.
Reply With Quote
  #25  
Old 03-25-2005, 04:12 PM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek
Check that your GD settings are correct. If its set to none - it will bypass the routine.
My GD settings are at 2+

Any other suggestions?
Reply With Quote
  #26  
Old 03-25-2005, 06:04 PM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just double checked my GD version and it is 2.0.28
Reply With Quote
  #27  
Old 03-26-2005, 08: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

What I mean is what the GD setting is put to in vboptions (which I think you said was 2+?).
Are you having the same problem with GAS3.51? It uses almost the same exact proceedure to resize uploads - however it doesnt test for GD support.

Let me know
Reply With Quote
  #28  
Old 03-26-2005, 03:15 PM
lazee lazee is offline
 
Join Date: May 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really neat .working perfectly on 3.0.7
Thank you The Geek
Click Install
Reply With Quote
  #29  
Old 03-26-2005, 04:01 PM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek
What I mean is what the GD setting is put to in vboptions (which I think you said was 2+?).
Yep, in vboptions my GD setting is 2+

Quote:
Are you having the same problem with GAS3.51? It uses almost the same exact proceedure to resize uploads - however it doesnt test for GD support.
I haven't tried uploading a picture with GAS3.51, but I will do that now...

Weird. I just did a test article with a big graphic and GAS3.51 resized it perfectly.

I just re-applied the GARR hack and it still didn't work. It's almost like it's not even calling the functions_geekautoavatar.php file (or it's not passing the GD test for some reason).

Any ideas?
Reply With Quote
  #30  
Old 03-30-2005, 07:42 PM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could it be a problem with the GD test in the php file? Is there a version without the test that I could try?
Reply With Quote
  #31  
Old 03-31-2005, 02:39 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 rrr
Could it be a problem with the GD test in the php file? Is there a version without the test that I could try?
rrr, commenting out the gd test. Open the functions_geekautoavatarresizer.php and change:
PHP Code:
if ($vboptions['gdversion']){ 
to
PHP Code:
//if ($vboptions['gdversion']){ 
you will also need to comment out the last } on the page
replace:
PHP Code:
}

?> 
with
PHP Code:
//}

?> 
Let me know if that helps!
Reply With Quote
Reply

Thread Tools

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:10 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.07135 seconds
  • Memory Usage 2,304KB
  • 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
  • (4)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
  • (4)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