restored to 2.0.66.37 and works again.
@xguimera – I would suspect you will still need to use the gallery ID and the issue with imageURL was resolved with version 2.0.76
Thanks!
– Cais.
With version 2.0.76 if I use gallery ID instead of gallery name I get error… and also if I use imageURL with gallery ID I get path error.
@xguimera – Can you provide a Gist or pastebin of the entire related code so what you are referencing can be taken in its proper context?
– Cais.
I attach link to website under construction…
http://www.stand-box.com/clients/implanta
At homepage I call to gallery with next function and nothing is returned
<?php global $nggdb; $gallery2 = $nggdb->get_gallery (‘homepage’, ‘sortorder’, ‘ASC’, true, 0, 0);foreach($gallery2 as $image) { ?>
<div><img alt=”<?php bloginfo(‘name’);?>” src=”<?php echo $image->imageURL;?>”/></div><?php } ?>
Also in Projects – Offices – Google Offices I call to gallery with gallery ID and path returned is not ok
<?php $enlace = get_post_meta($post->ID, ‘galeria’, true); ?>
<?php global $nggdb; $gallery2 = $nggdb->get_gallery ($enlace, ‘sortorder’, ‘ASC’, true, 0, 0);foreach($gallery2 as $pic) { ?>
<div><img alt=”<?php bloginfo(‘name’); wp_title();?>” src=”<?php echo $pic->imageURL; ?>”/></div><?php } ?>
Expect this will help.
regards
xavi
Thanks for your report! I’ve committed a fix that should fix your problem; we recently made an update that broke nggdb::get_gallery()’s search by slug. I can’t say exactly when this will be released (but we do hope it will be soon), if you’d like to upgrade to .76 you can fix this by altering nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/lib/ngg-db.php and replacing line 125’s $image_mapper->select()->where(array("galleryid = %d", $id)); with
if (is_numeric($id))
$image_mapper->select()->where(array("galleryid = %d", $id));
else
$image_mapper->select()->where(array("slug = %s", $id));