WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery Voting
[resolved] Trouble with getting voting to work (5 posts)

  1. nootkan
    Member
    Posted 1 year ago #

    I've tried to make this work but I am having problems. I created a photo gallery page with links to two separate galleries using nextGen shortcode on each of them like so: [nggallery id=1][ngg_uploader id=1]

    Then I went into nextgen-gallery/view/gallery.php and made changes like so: ` <!-- 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>`

    I also have the config set to show images enabled (not gallery), users don't have to be logged in to vote, number of votes allowed=one per image, allow users to see results=image, rating type=star rating.

    Link is here: Gallery

    What am I missing?
    http://wordpress.org/extend/plugins/nextgen-gallery-voting/

  2. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi nootkan
    When you say you've set the config to show image voting, do you mean you set it individually per image from NGG's 'manage gallery' page, or do you mean you set the global option on NGG Voting's setting page?

  3. nootkan
    Member
    Posted 1 year ago #

    Ah I see there is another place to configure the voting plugin. I have it working now. Is it possible to allow voting for each individual image instead of for the gallery as a whole?

  4. nootkan
    Member
    Posted 1 year ago #

    Never mind got it figured out. Thanks for a great plugin.

  5. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    I'm glad you got it figured out! I hope you enjoy the plugin. Let me know if there is anything else I can help with.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.