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 - The Image Resizer. Powered with Lytebox / Highslide / Lightview / and many more! (https://vborg.vbsupport.ru/showthread.php?t=184571)

TCattitude 07-07-2008 04:01 PM

Quote:

Originally Posted by macc (Post 1569071)
hello!

get this error message in my admin cp - when will save some settings!

Code:

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

some help?

regards

macc


edit: after update to ver 1.2.1 get this error in my admin cp
Fatal error: Call to a member function query_write() on a non-object in /home/belapla/public_html/vb/libar/includes/adminfunctions_options.php(490) : eval()'d code on line 207


error message come up only when i will change user settings in options - last one in options - ext. image resize


Thanks for the fix, Stoebi.
Added to v1.2.2
Quote:

Originally Posted by Calash (Post 1569173)
I was hoping somebody would come out with a mod like this. Thank you :)

I did notice one thing. Pictures added to Social Groups do not get re-sized.

For example, here is one from my Album

http://www.necrotania.com/vb/album.p...3&pictureid=19

and the same picture in a Social Group

http://www.necrotania.com/vb/group.p...2&pictureid=19

Fix added in v1.2.2 too ;)

v1.2.2 released.

Stoebi 07-07-2008 04:09 PM

Sorry TCattitude, but you read my post not clearly. :(

Quote:

Originally Posted by Stoebi
open plugin admin_options_processing and search for:
.
.
.

This is the complete php code for the hook admin_options_processing:
PHP Code:

if ($vbulletin->GPC['setting']['ncode_imageresizer_useroptions'] == 'maxdimensions')
{
    if (
$oldsetting['varname'] == 'ncode_imageresizer_maxwidth' AND $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) AND 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'])
        );
    }
    else
    {
        if (
$oldsetting['varname'] == 'ncode_imageresizer_maxheight' AND $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) AND 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->db->query_write("
            UPDATE " 
TABLE_PREFIX "setting
                    SET value = 0
            WHERE varname = 'ncode_imageresizer_clearusersettings'
    "
);

    
$vbulletin->db->query_write("
            UPDATE " 
TABLE_PREFIX "user
                SET ncode_imageresizer_maxheight = NULL, ncode_imageresizer_maxheight = NULL, ncode_imageresizer_maxwidth = NULL, ncode_imageresizer_mode = NULL
    "
);


Kind Regards,

Stoebi

redlabour 07-07-2008 04:19 PM

@TCattitude - can you please inform us by the vb.org Hackoptions if their is a Update? Thank you ....

TCattitude 07-07-2008 04:30 PM

LOL.
Stoebi, thanks (sorry, i'm in work now; marketing things :P ... i read wrong)
Zip v1.2.2 updated. Version not changed.

@redlabour, ok ;)

Stoebi 07-07-2008 04:35 PM

Thank you very much and thanks for this nice release also :)

*nominated*

redlabour 07-07-2008 04:50 PM

Quote:

Originally Posted by TCattitude (Post 1569242)
LOL.
Stoebi, thanks (sorry, i'm in work now; marketing things :P ... i read wrong)
Zip v1.2.2 updated. Version not changed.

@redlabour, ok ;)

Good job - thank you! :)

Antek 07-07-2008 05:17 PM

Very nice mod TCattitude :)

Could you add to next version watermark option?

Antek

redlabour 07-07-2008 05:29 PM

Quote:

Originally Posted by D.Baker (Post 1568862)
Does this only work on external images, or does it work on attachments too?

@TCattitude - can you please add this Replacement as a Feature?

After thinking about it i think it is a very good Idea.

RvG2 07-07-2008 05:54 PM

OMG... this is much better... :)

thank you ;)

RvG2 07-07-2008 06:05 PM

just a question:

why there's no enlarge x icon for highslide?


All times are GMT. The time now is 10:14 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.01459 seconds
  • Memory Usage 1,758KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (5)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