Thread: Show Thread Enhancements - Image resizer
View Single Post
  #677  
Old 09-22-2007, 01:51 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jupp View Post
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 View Post
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 View Post
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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01248 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete