Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Is it feasible to track abuse report counts? View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
SkippyFiRe - 9/7/2010 10:41:25 AM
   
Is it feasible to track abuse report counts?
Our client would like to track the number of times a post or comment has been flagged for abuse, and hide content based on a certain threshold. Is that feasible?

I was going to try and do this myself, but I realized that this is going to take a LOT of work. Mainly, I would need to find every place that content is displayed, and check to make sure each piece of content hasn't hit the abuse threshold by using the Abuse API.

Is there a better way I can accomplish this? Anyone have ideas?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/9/2010 2:56:43 AM
   
RE:Is it feasible to track abuse report counts?
Hello,

I counsulted your requirement with our developer and it will take a few customizations to achieve this functionality. I also created a new requirement and maybe it will get implemented in one of the future versions.

He described the following approach:
1) Create a custom scheduled task, which would check, if any document/comment exceeds some treshold of abuse reports.
2) The abuse reports are available in the table CMS_AbuseReport, so you would have to count, how many times a document/content is reported.
3) You can "hide" the content by rolling back the approval (set it to false). For example the blog comments (table "Blog_Comment") have a column called "CommentApproved".
4) This needs to be done for every content separately, because the forum posts are located in a different table.

Best regards,
Boris Pocatko

User avatar
Certified Developer v7
Certified  Developer v7
SkippyFiRe - 9/14/2010 1:47:38 PM
   
RE:Is it feasible to track abuse report counts?
Thanks kentico_borisp,
I was able to accomplish this fairly easily. I modified the Abuse Report Submission Control here:

KenticoCMS\CMSModules\AbuseReport\Controls\AbuseReportEdit.ascx.cs

to handle the creation of the AbuseReportInfo object. After saving the object, I check the count in the table for the given ReportObjectType, and ReportObjectID to see if there is more than the given threshold. If there is more than the threshold, I disapprove the blog comment, message board comment, or forum post using code specific to those objects.

One last thing I did was to prevent people from submitting abuse reports for the same item more than once, since that is now important :P

Sorry I can't post the specific code though. (I developed this for a client).

Thanks.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/15/2010 6:26:27 AM
   
RE:Is it feasible to track abuse report counts?
Hello,

Tahk you for sharing this with us.

Have a nice day.

Best regards,
boris Pocatko