Forums

[Plugin: NextGEN Gallery]: Gallery not shown correctly with IE8 (15 posts)

  1. reinermueller
    Member
    Posted 2 years ago #

    NextGEN Gallery 1.2.1
    In contrast to IE8 running in "compatibility view" a gallery, which is embedded with "[nggallery id=nn", isn't shown correctly using IE8 with native mode. Pls. see http://www.sgniederkainsbach.de/?p=1480

  2. reinermueller
    Member
    Posted 2 years ago #

    Just installed version 1.3.1.
    Problem still persists.

  3. alephalpha
    Member
    Posted 2 years ago #

    I have the same problem with IE8: http://galerie.anta-brink.com/sport/

  4. Alex Rabe
    Member
    Posted 2 years ago #

    Check it with the default theme

  5. alephalpha
    Member
    Posted 2 years ago #

    It is ok with the default theme. It seems to be a problem with our theme.

  6. reinermueller
    Member
    Posted 2 years ago #

    I do not use any special theme.
    Pls. see http://www.sgniederkainsbach.de/?p=1480

  7. reinermueller
    Member
    Posted 2 years ago #

    I propose the following changes to solve the problem:

    1. Add the following three lines to nggfunctions.php after line 186:

    $gallery->thumbwidth = intval($thumbwidth) + 15; // 15 = padding + margin according style sheet, should be a parameter
    $gallery->thumbheight = intval($thumbheight) + 21; // 21 = padding + margin according style sheet, should be a parameter

    2. Substitute line 41 in view\gallery.php by the following one:
    <div class="ngg-gallery-thumbnail" style="width:<?php echo $gallery->thumbwidth ?>px; height:<?php echo $gallery->thumbheight ?>px" >

    3. Substitute line 41 in view\gallery-caption.php by the following one:
    <div class="ngg-gallery-thumbnail" style="width:<?php echo $gallery->thumbwidth ?>px; height:<?php echo $gallery->thumbheight ?>px" >

  8. alephalpha
    Member
    Posted 2 years ago #

    Great - that works fine.
    Thank you very much reinermüller.

  9. wineinprovence
    Member
    Posted 2 years ago #

    Thanks for the fix. Works for me as well except for the fact that there is now a much larger white drop-shadow around the thumbnails. Any thoughts on getting rid of this?

    Thanks

  10. luiggiggi
    Member
    Posted 2 years ago #

    now i have the same problem with the 1.4.1 version!

    help me please!

  11. Alex Rabe
    Member
    Posted 2 years ago #

    Link ?

  12. luiggiggi
    Member
    Posted 2 years ago #

    first of all, thanks for answer me, i really appreciate that.

    second... in the meantime i've solved the issue in the most possible brutal way:

    i've substitute the lines indicated in the files view\gallery.php and view\gallery-caption.php, then in the nggfunctions.php iv'e added the lines
    $gallery->thumbwidth = intval($thumbwidth) + 156; (the thumb width i want is 145px)
    $gallery->thumbheight = intval($thumbheight) + 117; (and the height is 97)

    and in the style.css of my theme (compositio) i've added the follow:
    .ngg-gallery-thumbnail img { height: 97px; width: 145px;}

    whit those lines the thumbnail are forced to the specified dimension, but of course i can't change it dinamically.

  13. luiggiggi
    Member
    Posted 2 years ago #

  14. Josh68
    Member
    Posted 1 year ago #

    Thanks for these tips. I had to modify (for my chosen thumb size) that last, brute-force method to fix it in IE8. Any thoughts on how this will break with future NextGen releaes?

  15. Josh68
    Member
    Posted 1 year ago #

    I just updated NextGen and broke this fix. I went ahead and made only a change to my CSS to fix in IE8. Don't know yet if it will break something somewhere else, but this is based on the overall dimensions of the containers for my 150x150 thumbnails (container width in this case is 170px):

    .ngg-gallery-thumbnail-box, .ngg-gallery-thumbnail {
    width: 170px;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic