Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Doesn't work in Embed

This discussion is related to the Image Resizer addon.

Hi! My forum is embedded in my Wordpress site, and this plugin doesn't seem to work properly. The image resizes perfectly, but when I click the bar at the top, it only enlarges for a second, then resizes again.

I assume it's related to the embed because when I open my forum in a new tab on its own (not embedded) it works. Any ideas on how to fix this? Thanks so much!

Comments

  • Did you disable vanillas built in image resizing functionality?

  • I think so — I went into global.js and deleted from "// Shrink large images to fit into message space, and pop into new window when clicked." to the end. That doesn't seem to help.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited April 2013

    what are you trying to achieve? , to control the images size when embedded?

    you can use css if you want to make all embedded images in posts the same size..

    .Message img{width:200px;height:auto;}

  • CelesteCeleste New
    edited April 2013

    Yeah, I just want it so if someone posts a large picture, it resizes to the width of the post.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited April 2013

    I prefer to rely on css for that. So it does not matter what they embed it all stays at the same size.
    depending on you theme css you can also do it. Just add this to the custom.css of the theme. Change the width as necessary. the height get calculated automatic no need to put the height.

    .Message img{width:200px;height:auto;}

    Celeste
  • Ah, good thinking. I used max-width instead since I don't want it to blow up smaller images. I'd prefer it link to the larger version, but this is definitely OK for now. Thanks! =)

    vrijvlinder
  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited April 2013

    If they want to see it even larger they can right click and open image in a new window and see the original size :)

  • Yeah, not everyone knows to do that though =)

    vrijvlinder
  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited April 2013

    It is easy enough to post some instructions for those who are mouseycapped lol or have them install hover zoom browser extension . Then they just hover and it get bigger.

Sign In or Register to comment.