Support » Plugins and Hacks » NextGEN Gallery Voting » [Resolved] Tag added to gallery.php but no single image voting

[Resolved] Tag added to gallery.php but no single image voting

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


    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

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

    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.

    Plugin Author shauno


    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?

    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.

    Plugin Author shauno


    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.

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

    Plugin Author shauno


    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.

    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?


    Plugin Author shauno


    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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] Tag added to gallery.php but no single image voting’ is closed to new replies.
Skip to toolbar