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)

GreasySpoon 07-07-2008 11:43 AM

Quote:

Originally Posted by redlabour (Post 1568859)
By the Way - the CSS is only used if you click in Pic to maximize it by the Scripts.

I know, my problem is that i dont need unnessesary CSS-code on my site.

Megatr0n 07-07-2008 11:48 AM

This won't clash with Jase2's image resizing will it?

TCattitude 07-07-2008 12:16 PM

Quote:

Originally Posted by Megatr0n (Post 1569038)
This won't clash with Jase2's image resizing will it?

Quote:

* Upgrading.
If you're using old (but great!) nCode Image Resizer for vb3.6.x or Jase2 port
for vb3.7
... then you need to uninstall your old version first from your vBulletin's
Product Manager.
Then, perform an installation from the beginning... and configure it
in your AdminCP
Covered.

TCattitude 07-07-2008 12:36 PM

Quote:

Originally Posted by GreasySpoon (Post 1568832)
Very nice but to much CSS in the code for me.

Changed a little bit:
Quote:

1.2.1 (June 7th, 2008)
- Change. Moved the conditional in template:
ncode_imageresizer_headinclude
...in order to show less CSS when using Lytebox or Highslide.
Just one new CSS definition will be added (when using Lytebox/Highslide)
If you customized this template, revert it to reflect the changes.
To upgrade, just import the new 1.2.1 product (allow overwrite = yes). No need to re-upload the files.

macc 07-07-2008 12:40 PM

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

Stoebi 07-07-2008 02:13 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

Yes, this should be fixed.

open plugin admin_options_processing and search for:
PHP Code:

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');


Replace with:
Code:

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_maxheight` = NULL, `ncode_imageresizer_maxwidth` = NULL, `ncode_imageresizer_mode` = NULL WHERE 1');
}

Better use my code please, and see the different, if you set the options 'clear all user settings' and save:
PHP Code:

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
            WHERE 1
    "
);


Regards, Stoebi

Calash 07-07-2008 02:50 PM

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

Deepdog009 07-07-2008 03:30 PM

:up:

macc 07-07-2008 03:36 PM

Quote:

Better use my code please, and see the different, if you set the options 'clear all user settings' and save:
PHP Code:

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
            WHERE 1
    "
);


Regards, Stoebi
where to chage this code above and put (mean use your code)

thanks for reply and help!

regards

macc

Stoebi 07-07-2008 03:43 PM

Sorry, but I think, it's better to wait for TCattidude to make a new release.

@Calash
Resize works, but you need to change the dimensions for your album images in the usergroup options.


All times are GMT. The time now is 12:16 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.01538 seconds
  • Memory Usage 1,767KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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