Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter reinermueller

    (@reinermueller)

    Just installed version 1.3.1.
    Problem still persists.

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

    Check it with the default theme

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

    Thread Starter reinermueller

    (@reinermueller)

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

    Thread Starter reinermueller

    (@reinermueller)

    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” >

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

    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

    now i have the same problem with the 1.4.1 version!

    help me please!

    Link ?

    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.

    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?

    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 150×150 thumbnails (container width in this case is 170px):

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

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: NextGEN Gallery]: Gallery not shown correctly with IE8’ is closed to new replies.