Lightbox and NextGen Gallery
-
Hi,
I’ve been trying to combine the two plugins although it hasn’t gone well, i’m only have issues while trying to get it to work on NGG.
Now Simple Lightbox has this function named “slb_activate()” which works perfectly fine on other instances such as Advances custom fields, it’s supposed to force the wrapper around any piece of content it hasn’t been able to by just installing the plugin.
So i’ve been trying to use this function on NextGen Gallery although it doesn’t like to work together with it.
I of course can’t use it on the default template/custom tempalte file because that’d mean i’d break the URL’s since it works on one page so I had to go to the root of it which is custom-gallery.php(inside the theme).
I’ve tried the following on gallery.php:
<!-- Thumbnails --> <?php $i = 0; ?> <?php foreach ( $images as $image ) : ?> <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $image->style ?> > <div class="ngg-gallery-thumbnail" > <?php if ( !$image->hidden ) { $test = "<img title=" . esc_attr($image->alttext) . " alt=" . esc_attr($image->alttext) . " src=" . nextgen_esc_url($image->thumbnailURL) . " " . $image->size . "/>" ?> <?php echo slb_activate($test); } ?> </div> </div>
As you could see I’ve removed the standard as well as turning off effects in the plugin settings, yet this only returns me images as they are without wrapping it in a . I can’t wrap my mind around why this is so.
So my question is:
How can I wrap the ‘slb_activate()’ function around NextGen Gallery’s content.Side Note: These galleries are inside the standard wisywig so not a custom field.
Sorry if I forgot anything.
- The topic ‘Lightbox and NextGen Gallery’ is closed to new replies.