This Block Commenter Module will provides a flexible method for Drupal site administrator to Block the list of authenticated users from Commenting corresponding to selected content types.
Thus it prevents spammers from commenting on the Drupal site.
We also plan to add
1.Different setting form for Editors
2.Per Role base blocking.

Project Page - http://drupal.org/sandbox/sanchi.girotra/1673292
GIT Repo location - http://git.drupal.org/sandbox/sanchi.girotra/1673292.git block_commenter
Drupal Version 7.x

Reviewed the modules:
http://drupal.org/node/1676528#comment-6211658
http://drupal.org/node/1681750#comment-6229612
http://drupal.org/node/1677154#comment-6229656

http://drupal.org/node/1684898#comment-6242006
http://drupal.org/node/1612022#comment-6242134
http://drupal.org/node/1687926#comment-6242368

http://drupal.org/node/1697648#comment-6264138
http://drupal.org/node/1678134#comment-6264266
http://drupal.org/node/1697948#comment-6267174

CommentFileSizeAuthor
block_commenter.png56.92 KBsanchi.girotra

Comments

Jeffrey C.’s picture

Automated Review:
An automated review of your project has found some issues with your code; As coding standards make sure projects are coded in a consistent style we please you to have a look at the report and try to fix them. Anyway, note that issues found are possibly false positives and fixing all issues is not a requirement for getting through the application process.

You can find the results of the automated report at http://ventral.org/pareview/httpgitdrupalorgsandboxsanchigirotra1673292git.

Jeffrey C.’s picture

Status: Needs review » Needs work

Putting status to needs work.

sanchi.girotra’s picture

Status: Needs work » Needs review

Thanks for the quick reply!
I fixed almost all the issues that the automatic review utility brought up.
Let me know if you would like me to do anything else with this.

sanchi.girotra’s picture

Issue summary: View changes

Reviewed : http://drupal.org/node/1591870 with #comment-6203098

sanchi.girotra’s picture

Issue summary: View changes

Reviewed the Module with #comment-6211572

sanchi.girotra’s picture

Issue tags: +PAreview: review bonus

Applying for PAReview: review bonus.

klausi’s picture

Issue tags: -PAreview: review bonus

Removing review bonus tag, you did only one manual review out of 3 reviews. Please take a look at the actual source code of the projects. When finishing your review comment also set the issue status either to "needs work" (you found some problems with the project) or "reviewed & tested by the community" (you found no flaws).

klausi’s picture

Issue summary: View changes

Reviewed module with #comment-6211658

sanchi.girotra’s picture

Issue tags: +PAreview: review bonus

@klausi
Thanks for pointing out, that makes my day.
I have removed the reviews which were not manual and done 2 more manual reviews.
I hope I am correct this time. :)
Waiting for your review.

Thanks
Sanchi

klausi’s picture

Status: Needs review » Needs work
Issue tags: -PAreview: review bonus

manual review:

  1. "variable_get('bc_radio', 0),": bc_radio is a bad variable name, it should be more self-explaining what is in it.
  2. block_commenter_uninstall(): deleting all variables starting with "bc_" looks a bit dangerous to me. Better use your full module name for your variables to avoid any name clashes with other modules.
  3. block_commenter_admin_settings_submit(): do not use the raw $form_state['input'], use $form_state['values'] instead.
  4. block_commenter_admin_settings(): this will not scale for large sites where you want to block many users. Your variable will get really big over time. Why can't you use the blocked property of the user module that completely disables user accounts? Or do you want spam users to able to login and use the site in the future?

Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.

klausi’s picture

Issue summary: View changes

Adding project reviewed manually and removed the automated reviews.

sanchi.girotra’s picture

Issue summary: View changes

Reviewed Modules with #comment-6242006,6242134

sanchi.girotra’s picture

Issue tags: -PAreview: review bonus

Thanks Klausi!

I have made required changes as per your suggestions. To handle 4th point, we have added a new table to store blocked users.

sanchi.girotra’s picture

Status: Needs work » Needs review
Issue tags: +PAreview: review bonus

Applying for PAReview: review bonus.

klausi’s picture

Status: Needs review » Reviewed & tested by the community

manual reivew:

  1. block_commenter_admin_settings(): this is still a scalability problem. If I have 100 blocked users they will surely not fit into this one textfield.
  2. block_commenter_admin_settings_submit(): similar here: if I have 100 users to block with 100 comments each you will have to run the comment action on 10,000 comments in one request. PHP will just stop with a timeout or memory exhaustion.
  3. block_commenter_node_view(): why is the foreach() loop needed? It doesn't do anything?

Anyway, that are not application blockers, so this looks RTBC to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.

klausi’s picture

Title: Block Commenter Module Review » Block Commenter
drupwash’s picture

Status: Reviewed & tested by the community » Needs work

@sanchi.girotra when you applying for PAReview: review bonus I will post my review. I will wait.

klausi’s picture

Status: Needs work » Reviewed & tested by the community

@drupwash: do not set issues to "needs work" if there is nothing wrong with the application.

drupwash’s picture

Status: Reviewed & tested by the community » Needs work

manual review:
When I choose any user as Unpublish or delete for a particular content type to block commenting its work but there is no option to post comments again. Means if user x has blocked to post comments then x will never be able to post comments if admin think that x user should able to post comments, so x user needs to unblock.

sanchi.girotra’s picture

Status: Needs work » Needs review

Thanks @Klausi,
I have made required changes as per your suggestions.
To handle 1st point, i have increased maxlength and size of textfield as text area cant be used because i need '#autocomplete_path' and for point 2nd, i have used comment_delete_multiple($cids) in place of comment_delete($cid).
And in block_commenter_node_view(): foreach() loop is used to get the array of blocked content type.

Thanks @drupwash for the review but this is an add on functionality and will add if more users request for the same.

sanchi.girotra’s picture

Issue summary: View changes
sanchi.girotra’s picture

Issue tags: +PAreview: review bonus

Applying for PAReview: review bonus.

klausi’s picture

Status: Needs review » Reviewed & tested by the community

Still RTBC to me.

sanchi.girotra’s picture

Thanks @Klausi for the RTBC.

patrickd’s picture

Status: Reviewed & tested by the community » Fixed

Your project page is not very detailed, please have a look at the tips for a great project page, you may also use HTML-tags for better structure.

Thanks for your contribution and welcome to the community of project contributors on drupal.org.

I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

As you continue to work on your module, keep in mind: Commit messages - providing history and credit and Release naming conventions.

Thanks to the dedicated reviewer(s) as well.

sanchi.girotra’s picture

Thanks @patrickd for granting git vetted user role. :-)

Thanks everyone who reviewed my module. :-)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Reviewed 3 more projects with #comment- 6264138,6264266,6267174