ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Images in Comments

April 14, 2008 11:01pm

Subscribe [2]
  • #1 / Apr 14, 2008 11:01pm

    zovall

    4 posts

    When I ‘Allow image URLs in comments’ for my Weblog, EE automatically displays the actual image if an image URL is pasted.

    Unfortunately, sometimes our users link to large images that then mess up the display of the sidebar. 

    Is there a way to automatically resize the images that are posted in comments?  The only other thing I can do is to Not Allow image URLs in comments.

  • #2 / Sep 26, 2008 7:00pm

    BrandB

    36 posts

    Curious, did you ever find a solution for this?

  • #3 / Sep 26, 2008 7:18pm

    Omkar N.

    177 posts

    I tackled this issue by modifying the CSS.  There were some divs that contained the comments and I added “overflow:hidden;” to them.  This still displayed the full image but in order to see it you would have to use scrollbars.  The size of the comments container did not change and so the sidebar was not affected.

    Here’s an example of how I used it:

    div.comment-container
    {
        width:                     13px;
        height:                 13px;
        overflow:                hidden;
    }

    You will have to try it out on a few divs in your CSS (unless you are a CSS wizard and know exactly where to put it) to make sure you are adding that line to the correct div. 

    Hope this helps!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases