vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   ERROR after upgrading (https://vborg.vbsupport.ru/showthread.php?t=153195)

aranthorn 08-03-2007 02:46 PM

Yep, it's definitely the image sizer, but the code is different in the new version.

I just turned it off for the avatars:
find:
Code:

        $member_avatar = $member_avatar['avatar'];

                if(preg_match ( "/\.php/", $member_avatar) || preg_match ( "/avatar/", $member_avatar))
                {
                        if (preg_match ( "/\.php/", $member_avatar))
                        {
                                $member_avatar = $forumpath."/".$member_avatar;
                        }

                        $sizedata="";
                        if ($imagesizer==1)
                        {
                                $check = getimagesize($member_avatar);
                                $avatarwidth  = $check[0];
                                $avatarheight = $check[1];
                                if ($avatarwidth > $maxavatarwidth) { $avatarwidth = $maxavatarwidth; }
                                if ($avatarheight > $maxavatarheight) { $avatarheight = $maxavatarheight; }
                                $sizedata = "width='".$avatarwidth."' height='".$avatarheight."' ";
                        }

                        return "<img src='{$member_avatar}' border='0' alt='' ".$sizedata."/>";

and replace with:
Code:

        $member_avatar = $member_avatar['avatar'];

                if(preg_match ( "/\.php/", $member_avatar) || preg_match ( "/avatar/", $member_avatar))
                {
                        if (preg_match ( "/\.php/", $member_avatar))
                        {
                                $member_avatar = $forumpath."/".$member_avatar;
                        }
/*
                        $sizedata="";
                        if ($imagesizer==1)
                        {
                                $check = getimagesize($member_avatar);
                                $avatarwidth  = $check[0];
                                $avatarheight = $check[1];
                                if ($avatarwidth > $maxavatarwidth) { $avatarwidth = $maxavatarwidth; }
                                if ($avatarheight > $maxavatarheight) { $avatarheight = $maxavatarheight; }
                                $sizedata = "width='".$avatarwidth."' height='".$avatarheight."' ";
                        }

                        return "<img src='{$member_avatar}' border='0' alt='' ".$sizedata."/>";
                }

        if (($avatarid==0) && ($filename!=""))
        {
                $sizedata="";
                if ($imagesizer==1)
                {
                        $check = getimagesize($path);
                        $avatarwidth  = $check[0];
                        $avatarheight = $check[1];
                        if ($avatarwidth > $maxavatarwidth) { $avatarwidth = $maxavatarwidth; }
                        if ($avatarheight > $maxavatarheight) { $avatarheight = $maxavatarheight; }
                        $sizedata = "width='".$avatarwidth."' height='".$avatarheight."' ";
                }
*/
                return "<img src='{$path}' border='0' alt=''/>";

This comments out the avatar resizing.

NO, I don't see this as a fix. Only the author can give a fix, IMHO.

Thanks to LightInClouds for pointing me in the right direction and ranj for the original fix which I just tweaked for this work around.

MrZeropage 08-03-2007 08:11 PM

there is a more easy way to deactivate this, please read here :)

memorex 08-03-2007 09:35 PM

I'm not sure what my problem is, but none of the solutions mentioned have fixxed it

aranthorn 08-03-2007 10:03 PM

Quote:

Originally Posted by MrZeropage (Post 1309191)
there is a more easy way to deactivate this, please read here :)

Oh, sure... just because you know what you're doing...

;)

memorex 08-04-2007 01:26 AM

I went crazy, insane even. Deleted everything :( all games and such.. it works :) now for the fun part of readding everything :( but it works :)

Thanks again MrZeropage.

Tearstone 08-04-2007 01:53 AM

That worked great :)


All times are GMT. The time now is 10:57 PM.

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.01164 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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