Forums

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

  1. reinermueller
    Member
    Posted 10 months 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 9 months ago #

    Just installed version 1.3.1.
    Problem still persists.

  3. alephalpha
    Member
    Posted 9 months ago #

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

  4. alexrabe
    Member
    Posted 9 months ago #

    Check it with the default theme

  5. alephalpha
    Member
    Posted 9 months ago #

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

  6. reinermueller
    Member
    Posted 9 months ago #

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

  7. reinermueller
    Member
    Posted 9 months 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 9 months ago #

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

  9. wineinprovence
    Member
    Posted 7 months 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 4 months ago #

    now i have the same problem with the 1.4.1 version!

    help me please!

  11. alexrabe
    Member
    Posted 4 months ago #

    Link ?

  12. luiggiggi
    Member
    Posted 4 months 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 4 months ago #

Reply

You must log in to post.

About this Topic