• Resolved lucaboccianti

    (@lucaboccianti)


    I have set nextgen to use the lightbox effect, and I am able to do so using also the jquery wordpress plugin by Pedro Lamas.

    sometime I need *not* to use the lighbox, and it seem this is not possibile when using single pictures.

    I need single pictures to be linked to some post on my site, but even if I pass the link to the nggSinglePicture() function, it seem the lightbox setting took the precedence.

    ir seem I resolved it with an hack: I use preg_replace() to remove the rel=”…” inside the <a…>:

    $singlepicture = nggSinglePicture($image->pid, $w, $h, '', '', '', '', $my_link);
    $singlepicture = str_replace("rel", "", $singlepicture);
    echo $singlepicture;

    can someone suggest me a less ugly workaround?

    http://wordpress.org/extend/plugins/nextgen-gallery/

  • The topic ‘[Plugin: NextGEN Gallery] disable lightbox for single picture: hacked ok, anything better?’ is closed to new replies.