Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Image Resizer Details »»
Image Resizer
Version: 1.0.2, by Jase2 Jase2 is offline
Developer Last Online: Jun 2009 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.2 Rating:
Released: 04-17-2008 Last Update: 04-17-2008 Installs: 1255
DB Changes Uses Plugins Template Edits
Additional Files Translations  
No support by the author.

Modfication Unsupported: This modfication is now unsupported, due to lack of time to work on it. However, TCattitude has continued development and added many cool NEW features. You can see the updated version here: https://vborg.vbsupport.ru/showthrea...=Image+Resizer

Image resizer for vBulletin version 3.6 and 3.7.
version: 1.0.2

Please remember to click Mark as Installed if you use this modification. Support questions from members who have not marked this as installed will be considered low priority.

What is this?
This resizes images in post that are bigger than the set dimensions in your AdminCP options. It also adds an information bar (which is not displayed when the image isn't resized) giving information about the original dimensions and filesize. Filesize is only supported on Internet Explorer, other browsers don't reveal this information through javascript.

Configuration
Please read the included readme.html

A big thanks to Spleasure, who actually created this product. He has given me the rights to the code, so I will be keeping it going for future versions, fixing any bugs, and adding new features.

Thanks, and Enjoy.

Please report bugs, or feature requests into this thread.

Thank you.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
sodasusu

Comments
  #252  
Old 06-27-2008, 07:44 PM
RACHR RACHR is offline
 
Join Date: Sep 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work on 3.7.2?

It doesnt work, i have the ald attachements and no image resizer, in acp i have the Add on and i can choose any options.

Thx
Reply With Quote
  #253  
Old 06-27-2008, 08:53 PM
frankenberrie's Avatar
frankenberrie frankenberrie is offline
 
Join Date: Dec 2002
Location: N.Y.
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect for every board out there!!
Reply With Quote
  #254  
Old 06-27-2008, 08:59 PM
ALil'Hope ALil'Hope is offline
 
Join Date: Jun 2008
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Call to a member function query_write() on a non-object in /public_html/forums/includes/adminfunctions_options.php(490) : eval()'d code on line 11
Reply With Quote
  #255  
Old 06-28-2008, 10:52 AM
Black Widow's Avatar
Black Widow Black Widow is offline
 
Join Date: Feb 2005
Location: Israel
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marcus_Fenix View Post
Hi,

We've got a problem with the image resizer on our forum. I wanted to set the size a little lower than 650 pixels, but when I tried to change it to 600 pixels. I got this error:

Fatal error: Call to a member function query_write() on a non-object in /var/www/includes/adminfunctions_options.php(490) : eval()'d code on line 64

The funny thing is that I can change it to a higher value and now it?s up to 700 pixels... oops

Any clues?
Using vbulletin 3.7.1
Quote:
Originally Posted by ALil'Hope View Post
Fatal error: Call to a member function query_write() on a non-object in /public_html/forums/includes/adminfunctions_options.php(490) : eval()'d code on line 11
In order to fix the Fatal Error do the following:

Open the xml product file.
Search for:
Code:
<plugin active="1" executionorder="5">
			<title>nCode Image Resizer: Enforce Maximum Dimensions</title>
			<hookname>admin_options_processing</hookname>
			<phpcode><![CDATA[if($vbulletin->GPC['setting']['ncode_imageresizer_useroptions'] == 'maxdimensions') {
	if($oldsetting['varname'] == 'ncode_imageresizer_maxwidth' && $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) && 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']));
	} elseif($oldsetting['varname'] == 'ncode_imageresizer_maxheight' && $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) && 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->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');
}]]></phpcode>
		</plugin>
Replace with:
Code:
<plugin active="1" executionorder="5">
			<title>nCode Image Resizer: Enforce Maximum Dimensions</title>
			<hookname>admin_options_processing</hookname>
			<phpcode><![CDATA[if($vbulletin->GPC['setting']['ncode_imageresizer_useroptions'] == 'maxdimensions') {
	if($oldsetting['varname'] == 'ncode_imageresizer_maxwidth' && $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) && intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']) > 0) {
		$vbulletin->$db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxwidth` = '.intval($vbulletin->GPC['setting']['ncode_imageresizer_maxwidth']));
	} elseif($oldsetting['varname'] == 'ncode_imageresizer_maxheight' && $oldsetting['value'] > intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) && intval($vbulletin->GPC['setting']['ncode_imageresizer_maxheight']) > 0) {
		$vbulletin->$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->GPC['setting']['ncode_imageresizer_clearusersettings'] = '0';
	$vbulletin->db->query_write('UPDATE `'.TABLE_PREFIX.'user` SET `ncode_imageresizer_maxheight` = NULL, `ncode_imageresizer_maxwidth` = NULL, `ncode_imageresizer_mode` = NULL WHERE 1');
}]]></phpcode>
		</plugin>
Reply With Quote
  #256  
Old 06-28-2008, 10:58 AM
indie2industry's Avatar
indie2industry indie2industry is offline
 
Join Date: Jan 2008
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this resize signature Pictures also??
Reply With Quote
  #257  
Old 06-28-2008, 09:51 PM
Doctor Death Doctor Death is offline
 
Join Date: Dec 2005
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by indie2industry View Post
will this resize signature Pictures also??
I would like to know this as well. Specifically photo album photos?
Reply With Quote
  #258  
Old 06-29-2008, 12:47 AM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it work on 3.7.2
Reply With Quote
  #259  
Old 06-29-2008, 04:53 AM
indie2industry's Avatar
indie2industry indie2industry is offline
 
Join Date: Jan 2008
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doctor Death View Post
I would like to know this as well. Specifically photo album photos?
yep, it works on signatures. it includes an option.

And works perfectly with 3.7.2:up:
Reply With Quote
  #260  
Old 06-29-2008, 10:45 AM
aramiK89 aramiK89 is offline
 
Join Date: Jun 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, just need to check - once this is added it won't give birth to the security token error?

Has the line of code been added so that it works with the security token feature?

Just been having a lot of issues with this + mods

Thanks!
Reply With Quote
  #261  
Old 06-29-2008, 03:20 PM
Ingress Ingress is offline
 
Join Date: Nov 2007
Location: Germany
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, installed on 3.7.2 and working nicely ;-)

Noticed a minor CSS-flaw that caused the text-alignment of the warning to behave differently in Firefox and MSIE 7.

In MSIE it was centered, in FF it was not, fixed it this way:

In product-imageresizer.xml

search for

Code:
table.ncode_imageresizer_warning td {
	font-size: 10px;
	vertical-align: middle;

add after:

Code:
text-align: center;

The just upgrade the product and choose overwrite.

That's all ;-)

Ingress
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:19 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.04912 seconds
  • Memory Usage 2,323KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete