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.