How can I only allow the user to up vote or down vote a post once. This is the vote.tpl in the themes folder. What do I need to change?
<script type="text/javascript">
$('.unlove').click(function () {
var id = $(this).attr('entryId');
if ($(this).hasClass('unloved')) {
$(this).removeClass('unloved');
ulikedeg($(this).attr('entryId'), 0, -1);
} else {
$(this).addClass('unloved');
if ($('#post_love_' + id).hasClass('loved')) {
ulikedeg($(this).attr('entryId'), -1, 1);
$('#post_love_' + id).removeClass('loved');
} else {
ulikedeg($(this).attr('entryId'), 0, 1);
}