vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Auto Resize Image Attachments (Avatars & Profile Pic Too).... (https://vborg.vbsupport.ru/showthread.php?t=68429)

MajorFm.com 12-31-2004 05:07 PM

Nice hack... thanks...

KTBleeding 12-31-2004 07:16 PM

I have been looking for this hack..

[high]* KTBleeding will install when he gets off work.
[/high]

EDIT:

Installed and working fine! I'm so glad I found this hack. ;)
[high]* KTBleeding clicks install[/high]

MajorFm.com 01-07-2005 02:10 PM

Im getting a error on uploading a avatar thats bigger then the dimentions set...

Fatal error: Call to undefined function: remote_filesize() in /usr/local/apache/www/crazyapes/majorfmforum.com/htdocs/forum/includes/functions_upload.php on line 106

magyosha 01-23-2005 06:38 PM

could not get this working at all
always says the image is to large and makes no attempt to resize ..
checked and double checked all the editing that was needed ... (tryed with profiles & atachments)
running vb 3.0.3 with the latest security fix's applied

attachments stored in the filesystem .. but would not think this would affect the profile pic as they are in the dbase .. and they don't work either ..

kall 01-26-2005 06:34 PM

Parse error: parse error, unexpected T_ELSE in /home3/nzboards/public_html/forums/includes/functions_upload.php on line 341

That's just trying to upload a gif larger than the dimensions. Same thing happens if I use jpg.

kall 01-26-2005 09:43 PM

Quote:

Originally Posted by mini2
Possibly a typo? Could you post that line and I can compare?

Line 341:

PHP Code:

else 

:)

Context - lines 321 to 362
PHP Code:

        if ($imginfo[2] != AND $imginfo[2] != AND $imginfo[2] != 3)
        { 
// .gif, .jpg, .png
            
if ($showerrors)
            {
                @
unlink($filename);
                if (
$incp)
                {
                    
print_stop_message('the_uploaded_file_is_not_valid');
                }
                else
                {
                    eval(
print_standard_error('error_imagenotimage'));
                }
            }
            else
            {
                return 
false;
            }
        }
    }
    else
    {
        if (!
$vboptions['allowimgsizefailure'])
        {
            if (
$showerrors)
            {
                @
unlink($filename);
                if (
$incp)
                {
                    
print_stop_message('the_uploaded_file_is_not_valid');
                }
                else
                {
                    eval(
print_standard_error('error_imagenotimage'));
                }
            }
            else
            {
                return 
false;
            }
        }
    } 


givemeplain 02-06-2005 05:10 PM

Hey, this works well for me .. but is there a way so that when an image is reduced in size, you can click on it (in post) to view it full size in a new window or something? Thanks.

MrNase 02-23-2005 07:22 PM

Quote:

Originally Posted by mini2
As an update I've completely removed this hack, thenreinstalled itusing the current uploaded files and it worked with 100%success foravatars and attachments. I tested large jpg, png and gifimagesfor the attachments, no errors, no problems. That's withvBulletin3.0.6.

Thank you very much. I updated because some members reported errors which I never got. I really hope these are resolved now :)

John_44 02-28-2005 07:42 PM

Very nice Hack !
Unfortunatly it doesn´t work for me. No errors until i upload a larger Image -> Then it says Error 500 -> could not execute Script. I´m using the German Provider 1&1 and would apreciate every help possible.

(GD Lib is installed)

John_44 03-08-2005 08:28 PM

No, it always hapens.


All times are GMT. The time now is 07:49 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.01116 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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