WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery Voting
[resolved] Tag added to gallery.php but no single image voting (11 posts)

  1. monototal
    Member
    Posted 1 year ago #

    I have added the tag <?php echo nggv_imageVoteForm($image->pid); ?>
    to the gallery.php and enabled image voting in the voting settings as well as the nextgen settings, then created a new gallery, but still can't get single image voting to work.
    What am I doing wrong?

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

  2. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi monototal

    What shortcode are you using to display the gallery? If you are specifying a specific 'template', you need to add the voting tag to that template, not gallery.php

  3. monototal
    Member
    Posted 1 year ago #

    Thanks for answering so quickly.
    I'm using this
    [nggallery id=1]

  4. monototal
    Member
    Posted 1 year ago #

    One more thing, I also bought the premium version hoping that would work but for some reason it doesn't show up at all after I activate it. I'll be happy to use any version to get the single image voting to work.

  5. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi again monototal
    Thanks for buying the premium version, but we voting really will work without it, it just adds more features.
    What line have you got the tag on in the gallery.php file?

    It sounds like you've done everything right so far, so it should work. You did enable voting on the image directly from NGG's 'manage gallery' screen?

  6. monototal
    Member
    Posted 1 year ago #

    Hi,
    I've tried to add the tag in different places between line 38 and 49, it's now on line 49 after the div closing tag.
    I enabled voting in NGG's "Manage Gallery" as well as NGG Voting Settings.
    No problem getting the voting for the entire gallery to work, but not for the single image.
    Thank you for taking the time to help me solve this.

  7. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Is this on a site that I can see, or a test install locally?
    I have never had a person not able to get the voting to display, so there must be something silly we have missed :)

    Edit: If it's on a site that you aren't ready to publicize here, you can email me the URL at shaunalberts AT gmail DOT com.

  8. monototal
    Member
    Posted 1 year ago #

    I think it's probably something stupid I've missed!
    I will email you the URL,thanks!

  9. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Just to wrap this thread up. It turns out the tag wasn't inserted into the gallery.php template. Once added, everything worked as expected.

  10. nikolaz111
    Member
    Posted 1 year ago #

    Hi man I have the same problem but I dont understand what you mean by tag in the gallery.php template. What can I do?

    Thanks

  11. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Quoted from the FAQ:

    How do I make the voting form appear for images?

    For images there's an extra step. First you need to enable voing on the specific images you want. Then you need to add a tag to the gallery template from NextGEN Gallery. I'm going to use NextGEN version 1.9.6 to as the example, but it should be pretty much the same for all versions: Between line 38 and line 53 in /nextgen-gallery/view/gallery.php is the loop that shows each image in a specific gallery. You need to add the following tag anywhere in that loop: <?php echo nggv_imageVoteForm($image->pid); ?>. That will output the vote form where you put it. Personally I like to place it on a new line after the close <a> tag (new line created 45) Do not put inside the <a> tag that wraps the image in some of the templates, or the link will conflict with the voting process.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.