Support » Plugin: NextGEN Gallery Voting » Problems saving Voting "Enable for Image:

  • Resolved kkcache


    I Installed NextGen Gallery.
    I then installed voting.
    I can get Gallery Voting – no stress.

    I edited the gallery.php file to add the code line

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser. ]

    <?php echo nggv_imageVoteForm($image->pid); ?>

    into it. The actual code around looks like:

    <!-- 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>imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
                                    <?php echo nggv_imageVoteForm($image->pid); ?>
    				<?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 } ?>

    However, in the back end of NextGen gallery I turn on “Enable for Image” but when I save it comes back without the tick.

    What am I doing wrong?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author shauno


    You need to move the image voting tag outside of the <a>, but other than that you did everything perfectly. I have left a typo in the code that stops the tables being created properly. This one’s my fault 🙂

    Please update to 2.3.1, and make sure to de-activate and re-activate if manually upgrading. That should fix it.

    Sorry for the problem, let me know if there’s anything more I can do to help.

    Not sure. I think it’s all good but when I rate / vote, can’t see what my vote was? I’d the hw it’s supposed to work?

    Plugin Author shauno


    There is a setting that allows the users to see the voting results. If it isn’t set, you will just see a generic ‘thank you’ message once voted. Have you got the setting to allow users to see the results turned on?

    Sorry for my ipad typing. Is the how it’s supposed to work?

    Thanks Shauno. I’ll check.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problems saving Voting "Enable for Image:’ is closed to new replies.