• Hi, I’d like to know how I can change the rating type. It’s currently set to the default dropdown option. I’d like to change it to like / dislike for images, but can’t seem to find the option to do so.

    I did find the image voting options in the gallery menu, but it doesn’t seem to register any changes.

    I’d appreciate any help. Thank you.

Viewing 1 replies (of 1 total)
  • Thread Starter macnetis

    (@macnetis)

    Update:

    I hacked the database to change the rating type to like/dislike. However, it was causing problems with the nextgen gallery’s imagebrowser. Because of the “?r=1” appended to the end of the url, clicking on the “Back” or “Next” button will automatically include the “?r=1” inside the link. What this means is that the image will automatically be “liked” for subsequent images.

    So, what I did instead was to hack the database again to change it the default dropdown rating type, but I hacked the form instead. Instead of the standard 1-10 dropdown options, i changed the “submit” button to a “Like!” button instead.

    Here’s the code I used:

    $out .= '<div class="nggv-image-vote-container">';
    $out .= '<form method="post" action="">';
    $out .= '<input type="hidden" name="nggv[vote_pid_id]" value="'.$pid.'" />';
    $out .= '<input type="hidden" name="nggv[vote_image]" value="100" />';
    $out .= '<input type="submit" value="Like!" />';
    $out .= '</form>';
    $out .= '</div>';

    I tried to change the input type from a submit button to an image, but it wasn’t successful.

    I hope this helps you guys who want a like/dislike voting type for images.

    If anyone knows how to use an image to submit instead of the generic submit button, please reply.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: NextGEN Gallery Voting] Change Rating Type’ is closed to new replies.