vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Image resizer (https://vborg.vbsupport.ru/showthread.php?t=118048)

ShackMaster 09-14-2007 12:32 AM

Is there anyway to require users to make a selection during registration? I would like to have the options to resize available during registration and warn 1024 resolution (or lower) that they should choose to have their images resized to the maximum default of 800 pixels wide so that the forum does not go widescreen on them for larger images. Currently the option load on the Edit Options page.

Thanks!

brvheart 09-14-2007 01:53 AM

installed, one question/future revision - it would be nice to be able to either exclude certain forums or allow one usergroup the option to not use it....

Pirate45 09-17-2007 09:24 AM

Quote:

Originally Posted by Jupp (Post 1335421)
Change the plugin code in nCode Image Resizer: Replacer In Cached Data

Sorry, that's not working for me.

Strange thins was, this was working on vBlogetin but we converted to the vBulletin Blogs and it is not working there. :confused:

Pirate45 09-17-2007 10:38 AM

Seems to be working now but the drawback is that a different size is needed for the blogs due to the left side on the blog pages.

Would it be possible to have another version of this that would apply ONLY to the blogs?

MissKalunji 09-20-2007 07:21 PM

How can i prevent it from loading in vbadvanced? i don't want the script to run when someone is on vbadvanced page..

How can i achieve that?

Thanks!

p.s Great mod

PoetJA-1975 09-22-2007 01:51 AM

Quote:

Originally Posted by Jupp (Post 1335421)
Change the plugin code in nCode Image Resizer: Replacer In Cached Data from
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;
        }
}

to:
Code:

$this->ncode_imageresizer_do = false;
if(defined('NCODE_IMAGERESIZER_INIT') && strpos(strtolower(get_class($this)),'vb_bbcodeparser') !== false && ($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;
        }
}


and change the plugin code in nCode Image Resizer: Replacer In Uncached Data from:
Code:

if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
        $text = ncode_imageresizer_replace($text);
}

to:
Code:

if(defined('NCODE_IMAGERESIZER_INIT') && strpos(strtolower(get_class($this)),'vb_bbcodeparser') !== false && $this->ncode_imageresizer_do !== false) {
        $text = ncode_imageresizer_replace($text);
}


Either copy and paste the complete plugin code or simply replace the red code in the particular plugin with the green code.

Thanx very much - works deliciously LOL
Appreciate the sharing ;)

Quote:

Originally Posted by ShackMaster (Post 1338675)
Is there anyway to require users to make a selection during registration? I would like to have the options to resize available during registration and warn 1024 resolution (or lower) that they should choose to have their images resized to the maximum default of 800 pixels wide so that the forum does not go widescreen on them for larger images. Currently the option load on the Edit Options page.

Thanks!

Good idea - don't know how difficult that'd be to accomplish - but subscribing, as it would be nice to have such an option....

Quote:

Originally Posted by Pirate45 (Post 1340740)
Seems to be working now but the drawback is that a different size is needed for the blogs due to the left side on the blog pages.

Would it be possible to have another version of this that would apply ONLY to the blogs?

Ditto to what I said above...

Jacquii.

nokalexander 09-22-2007 04:17 AM

Good work, Installed :)

Inferno Dragon 09-22-2007 06:16 AM

this is a killer hack :D works perfectly fine..thanks for such a nice and useful mod m8..

Jupp 09-22-2007 01:55 PM

Quote:

Originally Posted by Pirate45 (Post 1340740)
Would it be possible to have another version of this that would apply ONLY to the blogs?

If there is a way to determine wether we're inside a blog or not, then it should be pretty easy to modify the ncode_imageresizer_headinclude template so that the blog sidebar payload (200px) is taken into consideration, eg. NcodeImageResizer.MAXWIDTH = NcodeImageResizer.MAXWIDTH - 200;. ;)

MissKalunji 09-23-2007 01:58 PM

Quote:

Originally Posted by MissKalunji (Post 1343335)
How can i prevent it from loading in vbadvanced? i don't want the script to run when someone is on vbadvanced page..

How can i achieve that?

Thanks!

p.s Great mod

bump


All times are GMT. The time now is 07: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.01963 seconds
  • Memory Usage 1,751KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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