Live and Relax

2 Jul 2009 Fix a gallery display bug in Nextgen gallery v1.33

Filed under: Site Notes & News — ghorse@7:36 PM

Just noticed that there is a bug in Nextgen gallery that is causing the gallery page generated from page with multiple album diplayed.  When you select some of the gallery from the album page, the generated gallery display page will have gallery images display twice instead of once.  It seems that the parsing of the gallery display page have problem.  So I made the following change to the nggCreateGallery function in nggfunctions.php file:


// choose between variable and page link
if ($ngg_options['galNoPages']) {
//            $args['album'] = $album->id;
$args['album'] = ”;
$args['gallery'] = $key;
$args['nggpage'] = false;
$galleries[$key]->pagelink = $nggRewrite->get_permalink($args);


This suppress the “permalink/?album=x&gallery=y” in the page link for gallery in the album page to “permalink/?album=&gallery=y” and nextgen gallery seems to be able to handle this and the gallery images display is not duplicated anymore.

Related posts || 相关文章

Tags: album, bug, Gallery, image, nextgen gallery

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

:o :) :lol: ;) :( 8) :P :D 8O :? :x :| :oops: :mrgreen: :roll: :evil: :twisted: :cry: :!: :arrow: :idea: :?: more »

Live and Relax Copyright gHorse