vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Geek Auto Avatar Resizer (https://vborg.vbsupport.ru/showthread.php?t=78287)

The Geek 03-16-2005 10:00 PM

Geek Auto Avatar Resizer
 
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

T3MEDIA 03-17-2005 09:43 PM

Wooohahaha.... There is a hack for this.
Mini did it. It not only does avaies... but the profile picture as well.
been using it for about 4-5 months now.

Now I dont think its on the fly or anything like that. its a lengthy install (compared to what you said your install is)

and I dont know how good yours is. But his does work

The Geek 03-17-2005 09:50 PM

ah poo. O well. hmmm. This may do profile pics too... ill have to look into it (the function its in looks like it handles all image uploads).

The Geek 03-17-2005 10:03 PM

Whelp - for love nor money can I find the modification your talking about. Regardless - here is this one for your dining pleasure.

BTW: It does Profile Pictures too.

GamerzWorld 03-17-2005 10:06 PM

Problem : it seems to resize images which are smaller ie enlarge and distort

Blam Forumz 03-17-2005 10:49 PM

Sorry Geek, someone beat you to it :(

https://vborg.vbsupport.ru/showthread.php?t=68429

The Geek 03-17-2005 10:57 PM

Thanks for the link.

Looks like it is about the same kind of thing - but handled a bit differently. No phrase installs or anything like that. Its a one line modification.

I guess ill keep it as its done now.

PS - small images resizing is fixed now.

yoyoyoyo 03-18-2005 12:40 AM

thanks for sharing!

AN-net 03-18-2005 01:17 AM

if a GD library is required i would state it;)

The Geek 03-18-2005 08:59 AM

Updated package to test for GD support (it checks you vB options). If none is present then it skips the proceedure (the proceedure uses the GD library which is pretty standard stuff).


All times are GMT. The time now is 08:33 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
  • Page Generation 0.01057 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete