If you want to remove the vote down, it's pretty easy.zaphs wrote:I'd be interested in seeing a variant on this mod whereby users can give a thumbs up to a post but not a thumbs down.
Being able to negatively rate something sometimes creates the wrong sort of forum atmosphere.
Perhaps there could be a switch in your mod whereby I could turn off negative voting and only allow a thumbs up?
Code: Select all
else if ($postvote == 'down')
{
$vote_points = (-1)*$abs_vote_points;
$vote_crement = '-';
}
1. The mod specifically prevents users to vote on the first post. It's suppose to be like the Yahoo Q&A. You can't vote on the question. Anyway, if you want to make it so users can vote on the first post, just remove some of the conditioinals around checking for the first post.griera wrote:Nice mod!
Congratulations
I have three questions for SpilltheBeans
1. Is there a way to allow users to vote also the first post, not just the replies?
2. Is there a way to get a list of the most voted posts of all the forums, to be published on the index page?
3. Is there a way to get a list of the most voted members, to be published on the index page?
Best regards
You are right and that should fix the problem with users being able to vote multiple times in a post. The POSTPOINTS_RESULTS_TABLE is what keeps track of user votes per post. Package updated. Let me know if there are any more problems.freejoe76 wrote:Also, in the mod install script, I think POSTVOTE_RESULTS_TABLE ought to be POSTPOINTS_RESULTS_TABLE
No reason really. Just thoght it woudl be odd to have negative points. I'm glad you found the mod useful. It can be a good Digg style mod for topics that have a lot of posts. In fact, it's not hard to extend this mod to add points to topics themselves so people can digg up topics. Anyway, there are two things needed for this mod to be considered complete in my opinion.freejoe76 wrote:No more problems, it's up and it's working. Got a question: Why did you build it so the points couldn't go below zero?
wintersmith wrote:I am really struggling with this. Does this mod require that you have the Category Hierarchy mod? I followed the installations instructions carefully (newbie here), but am getting fatal errors on the viewtopic.php file.
I'm puzzled by the following:
#-----[ FIND ]---------------------------------
#
//mod -- postpoints
$no_increase_views = _read('no_increase_views', TYPE_INT);
$postpoints = $post_id ? _read('postpoints', TYPE_NO_HTML, '', array_flip(array('', 'up', 'down'))) : '';
-------------
But the viewtopic file (fresh from phpBB 2.x installation) doesn't HAVE this set of code. Not only that, there's no instructions on what to do if you do find this code. The instructions simply move on to the next "FIND".
I really want this mod feature for the community, so any help you can provide would be much appreciated.