Can't enable voting on single images
-
My website crashed a few days ago and now I can’t get my voting for my images to work again. I have added the code to the gallery.php and it’s just not working at all. Even if I go into manage gallery and try to enable voting for an image and then save it it won’t let me. Any suggestions?
Here is my gallery php file:
<?php /** Template Page for the gallery overview Follow variables are useable : $gallery : Contain all about the gallery $images : Contain all images, path, title $pagination : Contain the pagination content You can check the content when you insert the tag <?php var_dump($variable) ?> If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?> **/ ?> <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?> <div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>"> <?php if ($gallery->show_slideshow) { ?> <!-- Slideshow link --> <div class="slideshowlink"> <a class="slideshowlink" href="<?php echo $gallery->slideshow_link ?>"> <?php echo $gallery->slideshow_link_text ?> </a> </div> <?php } ?> <?php if ($gallery->show_piclens) { ?> <!-- Piclense link --> <div class="piclenselink"> <a class="piclenselink" href="<?php echo $gallery->piclens_link ?>"> <?php _e('[View with PicLens]','nggallery'); ?> </a> </div> <?php } ?> <!-- Thumbnails --> <?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" > <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> > <?php if ( !$image->hidden ) { ?> <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> /> <?php } ?> </a> </div> <div style="text-align:center"> <?php echo nggv_imageVoteForm($image->pid); ?> </div> </div> <?php if ( $image->hidden ) continue; ?> <?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?> <br style="clear: both" /> <?php } ?> <?php endforeach; ?> <!-- Pagination --> <?php echo $pagination ?> </div> <?php endif; ?>
I am using the following short code:
[nggallery id=13 template=caption]
SO I also edit my gallery-caption.php (just to be sure) and it looks like this:
<?php /** Template Page for the gallery overview Follow variables are useable : $gallery : Contain all about the gallery $images : Contain all images, path, title $pagination : Contain the pagination content You can check the content when you insert the tag <?php var_dump($variable) ?> If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?> **/ ?> <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?> <div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>"> <?php if ($gallery->show_slideshow) { ?> <!-- Slideshow link --> <div class="slideshowlink"> <a class="slideshowlink" href="<?php echo $gallery->slideshow_link ?>"> <?php echo $gallery->slideshow_link_text ?> </a> </div> <?php } ?> <?php if ($gallery->show_piclens) { ?> <!-- Piclense link --> <div class="piclenselink"> <a class="piclenselink" href="<?php echo $gallery->piclens_link ?>"> <?php _e('[View with PicLens]','nggallery'); ?> </a> </div> <?php } ?> <!-- Thumbnails --> <?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" > <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> > <?php if ( !$image->hidden ) { ?> <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> /> <?php } ?> </a> <span><?php echo $image->caption ?></span> </div> <div style="text-align:center"> <?php echo nggv_imageVoteForm($image->pid); ?> </div> </div> <?php if ( $image->hidden ) continue; ?> <?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?> <br style="clear: both" /> <?php } ?> <?php endforeach; ?> <!-- Pagination --> <?php echo $pagination ?> </div> <?php endif; ?>
Please help I am fresh out of ideas.
https://www.ads-software.com/extend/plugins/nextgen-gallery-voting/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Can't enable voting on single images’ is closed to new replies.