The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Image Resizer - Using nCode Script Details »» | |||||||||||||||||||||||||||||||||||||||
Image resizer using nCode script
This hack resizes external images (not attachments) in cms, blogs, posts, new thread preview, signatures, private messages, visitor messages and vBadvanced CMPS. You have the option to: Disable the hack. Choose the resize mode. Default Maximum width. Enable and disable cms resize option. Enable and disable postbit resize option. Enable and disable signature resize option. Enable and disable blogs resize option. Enable and disable private messages resize option. Enable and disable visitor messages resize option. Enable and disable vBadvanced CMPS resize option. This hack has been tested: - Using IE, FF, Chrome and Opera using default skin. Installation: - Upload the contents of upload folder to the root of your forum. - Import the XML file via Plugins & Products > Manage Products > Add/Import Products. - If you want to use "Enlarge in the same window" option you must edit "Image Medium Max" stylevar for the style you are using. Set this stylevar to high number e.g. 2000px or more if needed. Upgrade: - Upload the contents of upload folder to the root of your forum overwriting the existing file. - Remove old product from AdminCP produact Manager. - Import the XML file via Plugins & Products > Manage Products > Add/Import Products. PS. This hack adds one link in the footer to SevenSkins website. _________________________________ _________________________________ Please: Nominate this modification for the MOTM. Support me by donating ... click the link on the right. (Support Developer) Remember to click Mark as Installed if you use this hack. _________________________________ _________________________________ 03 Sep 2012 Version 1.6 -Added functionality: Resizing of the images in vBadvanced CMPS. Total Installs to date: 1248 Total Downloads to date: 7068 31 July 2011 Version 1.5 29 Jun 2011 Version: 1.4 -Fixed to work with vBulletin 4.1.4 -remove yellow bar as it was causing issue with vBulletin 4.1.4. -Added functionality: Resizing of the images in CMS comments. -Added functionality: Resizing of the images in BLOG comments. 21 Dec 2010 Version: 1.3 Thanks to ZexTasy for cms plugin code. Added these option: -Enable and disable cms resize option. -Enable and disable postbit resize option. -Enable and disable signature resize option. -Enable and disable blogs resize option. -Enable and disable private messages resize option. -Enable and disable visitor messages resize option. 25 June 2010 Version: 1.2.0 Fixed to work with vBulletin 404. 06 March 2010 Version: 1.0.0 Released . Download Now
Screenshots
Show Your Support
|
16 благодарности(ей) от: | ||
Abhik, BCP Hung, beertruck, davut_c20, Hippy, john7911, Kirk Fitzgerald, Life Revived, MagicThemeParks, michal72, mohammadxxx, Rubio, Teascu Dorin, TheLastSuperman, too_cool_3 |
Comments |
#42
|
|||
|
|||
Fantastic little mod, just what I needed. I can't wait till it works on the CMS side of things too
|
#43
|
|||
|
|||
so I take it this doesn't scale images that use the [img] bbc code function correct?
|
#45
|
|||
|
|||
This appears to be the best of the image resizers working for 4.x, but does it work in the CMS? And if not is there an edit we can do ourselves to make it work in CMS?
The images posted in articles in the CMS sometimes are too big, and not only does it look ugly but there is no scroll bar or any way of seeing the full image. I don't think I'm the only one with this problem, a solution would be very nice. Edit: nevermind, found one that does the CMS, and pretty much anywhere else on the site. |
#46
|
|||
|
|||
Is there any way to make it so that if you click the bar to expand the image and then click the image (not the bar) again it will open in a new window?
|
#47
|
|||
|
|||
So in the end this is actually the best and simplest image resizer. I've now tried all of them, and played around with the code on each, and this one is the winner.
I managed to create a very crude fix for enabling CMS resizing on this one. Problem with it is that the warning bar on top becomes over-sized, probably some CSS issue. Here is an example: If you do not mind this, do not want to wait for a new hack or update to this one, and understand that you are doing this at your own risk, then here is how I did this: Open: product-sevenskins_imageresizer-v1.0.0.xml Find: Code:
<plugin active="1" executionorder="5"> <title>Image Resizer: Postbit and Signatures</title> <hookname>postbit_display_complete</hookname> <phpcode><![CDATA[if($vbulletin->options['sevenskins_imageresizer_enabled']) { $post['message'] = preg_replace('/<img src="([^"]*)" border="0" alt="" \/>/', '<img src="\\1" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />', $post['message']); if($vbulletin->options['sevenskins_imageresizer_resizesignatures']) { $post['signature'] = preg_replace('/<img src="([^"]*)" border="0" alt="" \/>/', '<img src="\\1" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />', $post['signature']); } }]]></phpcode> </plugin> Code:
<plugin active="1" executionorder="5"> <title>Image Resizer: CMS</title> <hookname>global_complete</hookname> <phpcode><![CDATA[ global $vbulletin; if($vbulletin->options['sevenskins_imageresizer_enabled']){ //Resize Images in message $output = preg_replace('/<img src="([^"]*)" border="0" alt="" \/>/', '<img src="\\1" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />', $output); }]]></phpcode> </plugin> Uninstal/delete the old hack, you do not need to delete the contents of "upload" folder. Import the edited one, you do not need to reupload the "upload" folder. Check if it works for you. If not, to revert to the old version, uninstal/delete this one. Import the original. This is likely a very crude method of accomplishing this, and I'm only sharing this for those desperate for a good resizer that works on CMS. For me this is a temporary fix until the author of this hack releases something better. Note: this was done on 4.0.2, I have no idea how it will behave on any other variation, or if any other mods will interfere. |
#48
|
|||
|
|||
Does this work on the CMS?
|
#49
|
|||
|
|||
Not by default but see my post right above yours and see if that helps you.
|
#50
|
||||
|
||||
I have always been a fan of the nCode resizer, primarily because of the bar above the image, which allows users to wrap [URL] around the image. Most - if not, all - resizers make the image clickable to enlarge, so wrapping [URL] has no effect; and a lot of my members do that.
I'd like to see multiple inputs on the AdminCP with multiple locations of images. (For example, being able to set a different max width for CMS, Blog, Posts, PM's, etc.)... Also, I've noticed that it doesn't resize [SIGPIC], which is a minor annoyance. Also, any know how to set a different width if an image is quoted? My forum is fixed at 900px wide, so my images are resized down to 500px, but then if quoted, they stick out, so I make them set at about 460px... I'd like to be able to utilize max available area. Even better, is it at all possible to just make max width "100%", so that it'll just resize down to the available area? ...But I'm just nitpicking here, brilliant mod |
#51
|
||||
|
||||
Best image resizer!
But i have a suggestion (that i need) so if you can add it, would be really cool. I want to use the plugin for signatures too, but with another width and height max. Sry for my english. Installed, ofcourse. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|