NP_ModComments seems not to work … there are MySQL error messages when you try to rate an comment. (2007-11-17 kg)
A plugin that allows logged in users to moderate comments.
| General Plugin info | |
|---|---|
| Author: | Tim Broddin |
| Current Version: | 1.0a |
| Download: | Download (.zip) (not available) |
| Code: | ModCommentsCode |
| Demo: | - |
| Forum Thread: | - |
IkoTikashi: “The requested URL /files/NP_ModComments.zip was not found on this server.”
Matt: “Has anyone got a copy or is this plugin dead?”
Allows you to add a comment moderation system (like the one on /. to your site).
This plugin offers the core functionality, later on I (or other people) can make
plugins that depend on this one (like: calculating a members score, hiding troll comments, …)
You are free to use this code but it is provided as is. I will try to support it but I'm a student and I often just don't have the time.
When you find a bug or have a certain feature request you can always contact me at sirtim@fuckhedz.com or (till MS closes down their IM network to GAIM users) on MSN (sirpsycho@fuckhedz.com)
There are no options to set but you can configure this plugin very well by editing this file.
Setting the different moderation classes:
Scroll down this file untill you find the function NP_ModComments. You will see a list of the currently enabled moderation classes.
The structure is quite easy:
$this->mod[0]['name'] = 'example name'; $this->mod[0]['score'] = 5;
As you see the moderation classes all have a number (in the example above it's 0).
When you want to add another class you have to give it the next number. So, when the last moderation class in the list has number 7 the next one will have to have number 8 ($this→mod[8]['name'] = …). I hope you get the idea.
The score needs to be unique. No two moderation classes can have the same score.
Showing a message to non-members:
You can only vote when you are a member. By default people who are not a member of your weblog will simply not see the moderationbox. If you want them to see a message like 'Sorry, only members can moderate comments' you have to remove the // on line 156
Showing the moderationbox:
Simply put <%ModComments(form)%> in the comment header/body/footer template part
Showing the most chosen moderation class:
Put <%ModComments(top)%> in the comment header/body/footer template part
Showing the score:
The score is the sum of all scores given. To show it:
Put <%ModComments(score)%> in the comment header/body/footer template part
Showing the number of votes:
Put <%ModComments(votes)%> in the comment header/body/footer template part
I hope you enjoy this plugin!
Tim - The guy who likes to eat his own boogers.