v.guerard
Forum Replies Created
-
Here is my file with correction => http://pastebin.com/tEbFz62k
line 166 : just test if there s more than 1 picture (you’ll see a javascript error in console without this patch)
Old Code :
$this->include_template(‘photocrati-nextgen_gallery_display#container/before’);
[…]
New Code :
if (count($images) > 1) :
$this->include_template(‘photocrati-nextgen_gallery_display#container/before’);
[…]Line 200 : Close the if
Old code :
<?php endif ?>New code :
<?php
endif;
endif ?>Hope it s ok for you 😉
Here is the entire file : http://pastebin.com/zkhJrV1u
line 597 : on query, I just a the exclude=0
Old code :
array(“galleryid IN %s”, $gallery_ids))->group_by(‘galleryid’)->run_query(FALSE, TRUE);
New code :
array(array(“galleryid IN %s”, $gallery_ids), array(‘exclude = %d’, 0)))->group_by(‘galleryid’)->run_query(FALSE, TRUE);There s also a correction for gallery with all excluded picture
line 618: just test if gallery counter is great than 0 to add it in $retval array
Old code :
$retval[] = $gallery;New code :
if ($gallery->counter > 0) {
$retval[] = $gallery;
}