vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Avatar Creator/Resizer (https://vborg.vbsupport.ru/showthread.php?t=36466)

Raz 03-22-2002 10:00 PM

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)

The Realist 03-23-2002 02:39 PM

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

Raz 03-23-2002 02:44 PM

What version of PHP are you using?

That function is part of PHP 3.0.16+ and PHP 4.0.0+

Neo 03-23-2002 03:48 PM

Wow. This looks really cool.

Freddie Bingham 03-23-2002 03:51 PM

This hack will require your PHP to have GD support compiled in.

defnot 03-23-2002 03:54 PM

great !!!

but i have every time the same error..

"Sorry, only jpeg pictures can be resized here!"

but my pic are a JPG...

BlueWolf 03-23-2002 05:19 PM

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?

Raz 03-23-2002 07:02 PM

Ah, thanks freddie forgot about the GD library :o

BlueWolf, download the updated file and set $aron to 0 and set $sz to 50.

Raz 03-23-2002 07:26 PM

Quote:

Originally posted by defnot
great !!!


but i have every time the same error..


"Sorry, only jpeg pictures can be resized here!"


but my pic are a JPG...

It may have a jpg extention, but it seems it wasn't encoded using the JPEG standard.

ptbyjason 03-24-2002 01:50 AM

I am probably doing something real stupid, but if I create a link to that php file I get.

PHP Code:

Parse errorparse error in /business/XXXXXXX/html/vbulletin/avatarcreator.php on line 14 



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
  • Page Generation 0.01068 seconds
  • Memory Usage 1,729KB
  • 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)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (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