vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - Image Resizer (https://vborg.vbsupport.ru/showthread.php?t=176531)

RACHR 06-27-2008 07:44 PM

Work on 3.7.2?

It doesnt work, i have the ald attachements and no image resizer, in acp i have the Add on and i can choose any options.

Thx

frankenberrie 06-27-2008 08:53 PM

Perfect for every board out there!!

ALil'Hope 06-27-2008 08:59 PM

Fatal error: Call to a member function query_write() on a non-object in /public_html/forums/includes/adminfunctions_options.php(490) : eval()'d code on line 11

Black Widow 06-28-2008 10:52 AM

Quote:

Originally Posted by Marcus_Fenix (Post 1559269)
Hi,

We've got a problem with the image resizer on our forum. I wanted to set the size a little lower than 650 pixels, but when I tried to change it to 600 pixels. I got this error:

Fatal error: Call to a member function query_write() on a non-object in /var/www/includes/adminfunctions_options.php(490) : eval()'d code on line 64

The funny thing is that I can change it to a higher value and now it?s up to 700 pixels... oops :D

Any clues?
Using vbulletin 3.7.1

Quote:

Originally Posted by ALil'Hope (Post 1560674)
Fatal error: Call to a member function query_write() on a non-object in /public_html/forums/includes/adminfunctions_options.php(490) : eval()'d code on line 11

In order to fix the Fatal Error do the following:

Open the xml product file.
Search for:
Code:

<plugin active="1" executionorder="5">
                        <title>nCode Image Resizer: Enforce Maximum Dimensions</title>
                        <hookname>admin_options_processing</hookname>
                        <phpcode><![CDATA[if($vbulletin->GPC['setting']['ncode_imageresizer_useroptions'] == 'maxdimensions') {
        if($oldsetting['varname'] == 'ncode_imageresizer_maxwidth' && $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) && intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) > 0) {
                $db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxwidth` = '.intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']));
        } elseif($oldsetting['varname'] == 'ncode_imageresizer_maxheight' && $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) && intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) > 0) {
                $db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxheight` = '.intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']));
        }
}

if($vbulletin->GPC['setting']['ncode_imageresizer_clearusersettings'] == '1') {
        $vbulletin->GPC['setting']['ncode_imageresizer_clearusersettings'] = '0';
        db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxheight` = NULL, `ncode_imageresizer_maxheight` = NULL, `ncode_imageresizer_maxwidth` = NULL, `ncode_imageresizer_mode` = NULL WHERE 1');
}]]></phpcode>
                </plugin>

Replace with:
Code:

<plugin active="1" executionorder="5">
                        <title>nCode Image Resizer: Enforce Maximum Dimensions</title>
                        <hookname>admin_options_processing</hookname>
                        <phpcode><![CDATA[if($vbulletin->GPC['setting']['ncode_imageresizer_useroptions'] == 'maxdimensions') {
        if($oldsetting['varname'] == 'ncode_imageresizer_maxwidth' && $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) && intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) > 0) {
                $vbulletin->$db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxwidth` = '.intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']));
        } elseif($oldsetting['varname'] == 'ncode_imageresizer_maxheight' && $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) && intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) > 0) {
                $vbulletin->$db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxheight` = '.intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']));
        }
}

if($vbulletin->GPC['setting']['ncode_imageresizer_clearusersettings'] == '1') {
        $vbulletin->GPC['setting']['ncode_imageresizer_clearusersettings'] = '0';
        $vbulletin->db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxheight` = NULL, `ncode_imageresizer_maxwidth` = NULL, `ncode_imageresizer_mode` = NULL WHERE 1');
}]]></phpcode>
                </plugin>


indie2industry 06-28-2008 10:58 AM

will this resize signature Pictures also??

Doctor Death 06-28-2008 09:51 PM

Quote:

Originally Posted by indie2industry (Post 1561123)
will this resize signature Pictures also??

I would like to know this as well. Specifically photo album photos?

EagleNick 06-29-2008 12:47 AM

Does it work on 3.7.2

indie2industry 06-29-2008 04:53 AM

Quote:

Originally Posted by Doctor Death (Post 1561583)
I would like to know this as well. Specifically photo album photos?

yep, it works on signatures. it includes an option.

And works perfectly with 3.7.2:up:

aramiK89 06-29-2008 10:45 AM

Hey, just need to check - once this is added it won't give birth to the security token error?

Has the line of code been added so that it works with the security token feature?

Just been having a lot of issues with this + mods

Thanks!

Ingress 06-29-2008 03:20 PM

Thanks, installed on 3.7.2 and working nicely ;-)

Noticed a minor CSS-flaw that caused the text-alignment of the warning to behave differently in Firefox and MSIE 7.

In MSIE it was centered, in FF it was not, fixed it this way:

In product-imageresizer.xml

search for

Code:

table.ncode_imageresizer_warning td {
        font-size: 10px;
        vertical-align: middle;


add after:

Code:

text-align: center;

The just upgrade the product and choose overwrite.

That's all ;-)

Ingress


All times are GMT. The time now is 06:28 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.01309 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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