The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Image Resizer Details »» | |||||||||||||||||||||||||
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
|
Благодарность от: | ||
sodasusu |
Comments |
#252
|
|||
|
|||
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 |
#253
|
||||
|
||||
Perfect for every board out there!!
|
#254
|
|||
|
|||
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
|
#255
|
||||
|
||||
Quote:
Quote:
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> 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> |
#256
|
||||
|
||||
will this resize signature Pictures also??
|
#257
|
|||
|
|||
I would like to know this as well. Specifically photo album photos?
|
#258
|
||||
|
||||
Does it work on 3.7.2
|
#259
|
||||
|
||||
Quote:
And works perfectly with 3.7.2:up: |
#260
|
|||
|
|||
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! |
#261
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|