Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 7

CurtisOdenericgillettefh111tc74 +3 guests

Disabling Vanilla Built in Resizing

This discussion is related to the Image Resizer addon.
Since vanilla did add their own version of resizing that conflicts with this I figured I should tell people how to disable it since I've had many people contact me privately to ask.

Until vanilla either makes their built in version disableable or Move it to a plugin
all users of this plugin will have to go into the global.js in the js directory of their vanilla root and remove the image resizing functions that are located at the end of the file by hand.

Comments

  • Posts: 150

    @Gillingham : I did just as you suggested — the image is resized, and when I click on it, it's enlarged. But when I click on it, it's not resizing back to its smaller state. How can I fix this?

  • Posts: 118

    Can you give me some more specifics on browser versions etc.

    If your browser has a javascript debug log can you try doing that process again with the debug log open and seeing if there are any errors/warnings.

  • Posts: 150

    @Gillingham : Oops! Sorry about the false alarm. It seems to be working. I don't understand why it didn't last night. And thanks for stopping by to help. :)

    And oh, by the way, I replaced the JS responsible for image resizing in global.js (at the end of the file) with the javascript of your plugin, and voila! It's working too. Thanks for the useful contribution to the community.

    And if I may ask... why didn't you make the JS resize and unresize when the image when the image itself is clicked? Why the text above the image?

  • Posts: 118

    Mainly because then that would break the linking of images, which is my most common use case.

  • Posts: 150

    Oh, right. Good thinking there.

Sign In or Register to comment.