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)

ClemsonJeeper 01-13-2009 02:07 AM

So I think I may have fixed the issue (at least on my forum) with the "initial load" of images being normal sized, then when you reload, they are resized properly.

To fix, go into AdminCP -> Plugins & Products -> Plugin Manager

look for "Product: TCattd - The Image Resizer" and click on "nCode Image Resizer: Replacer in Cached Data".

Replace:

Code:

$this->ncode_imageresizer_do = false;
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
        if(!empty($parsedtext) && $parsedhasimages) {
                $parsedtext = $this->handle_bbcode_img($parsedtext, $dobbimagecode, $parsedhasimages);
                $parsedtext = ncode_imageresizer_replace($parsedtext);
                $parsedhasimages = false;
        } else {
                $this->ncode_imageresizer_do = true;
        }
}

with:

Code:

$this->ncode_imageresizer_do = false;
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
        flush();
        if(!empty($parsedtext) && $parsedhasimages) {
                $parsedtext = $this->handle_bbcode_img($parsedtext, $dobbimagecode, $parsedhasimages);
                $parsedtext = ncode_imageresizer_replace($parsedtext);
                $parsedhasimages = false;
        } else {
                $this->ncode_imageresizer_do = true;
        }
}

YMMV. It seems to work on my site.

KevinL 01-13-2009 04:06 AM

That code messes viewing for guests for me.

Vinyljunky 01-13-2009 07:53 AM

Quote:

Originally Posted by ebed146 (Post 1709761)
PLEASE work on 3.8! This mod is amazing.

Me too :up:

beduino 01-14-2009 11:10 PM

Quote:

Originally Posted by Vinyljunky (Post 1710692)
Me too :up:

Me too 2

Unfortunately the resizer works [ncode] but lytebox, highslide etc don't :(

horusbird 01-16-2009 11:08 AM

:( idem!

horusbird 01-16-2009 02:05 PM

Quote:

Originally Posted by horusbird (Post 1714519)
:( idem!

I solved, the problem is not vbulletin 3.8.0 but VBSEO, I stopped vBSEO plugin and the image resizer work! :)

KevinL 01-16-2009 02:13 PM

Quote:

Originally Posted by horusbird (Post 1714699)
I solved, the problem is not vbulletin 3.8.0 but VBSEO, I stopped vBSEO plugin and the image resizer work! :)

What exactly was going on and what happen? I'm interested because I would like to get this working again.

jazde86 01-17-2009 11:53 AM

Hmm, not working anymore after upgrading from vB 3.7.4 to 3.8.0 :( Please update it soon. :D

juverol 01-17-2009 12:52 PM

Thank you very much

Howdy 01-18-2009 01:59 PM

awesome hack, very good work! easy to install as well.

only 1 problem and I'm sure it's something on my end. it works great on all forums, but it doesn't scroll through with the right and left keyboard arrows in the Album.

Album here:
http://anglerinsider.com/forum/album.php?albumid=1

thanks much..


All times are GMT. The time now is 10:52 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.01348 seconds
  • Memory Usage 1,739KB
  • 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
  • (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