WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery Voting
[resolved] Problems saving Voting "Enable for Image: (6 posts)

  1. kkcache
    Member
    Posted 1 year ago #

    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 } ?>
    			</a>
    		</div>
    	</div>

    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?

    http://wordpress.org/extend/plugins/nextgen-gallery-voting/

  2. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. kkcache
    Member
    Posted 1 year ago #

    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?

  4. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  5. kkcache
    Member
    Posted 1 year ago #

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

  6. kkcache
    Member
    Posted 1 year ago #

    Thanks Shauno. I'll check.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic