This module provides control and sending complaints to the comments.
Drupal 6 and 7 module version are available.
Features:
- link to complaints about the comment will be added automatically;
- complaints sent by AJAX;
- module stores timestamp, IP address and user ID for each complaint;
- author comment can not complain about your own comment;
- for authorized users, verifies the user ID;
- for anonymous users, checked by IP-address.
- each user can complain about a comment only once:
- for authorized users, verifies the user ID;
- for anonymous users, checked by IP-address.
- support views module;
- form for the administration of complaints;
- simple generation of links for complaints in the code.
Tasks:
- the use of popup message to send complaints;
- specifying the reasons for complaint.
Screenshot
Project page
Git repository
Drupal 6 module version: (git clone --branch 6.x-1.x http://git.drupal.org/sandbox/ilyin.eugenegmail.com/1406982.git comment_abuse)
Drupal 7 module version: (git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ilyin.eugenegmail.com/1406982.git comment_abuse)
Reviews of other projects:
http://drupal.org/node/1429208#comment-5561768
http://drupal.org/node/1426462#comment-5561978
http://drupal.org/node/1419816#comment-5562028
Additional review:
http://drupal.org/node/1435294#comment-5586272
http://drupal.org/node/1433838#comment-5586334
http://drupal.org/node/1431854#comment-5586410
Additional review:
http://drupal.org/node/1437126#comment-5590804
http://drupal.org/node/1437082#comment-5590832
http://drupal.org/node/1436718#comment-5590856
Additional review:
http://drupal.org/node/1419486#comment-5592046
http://drupal.org/node/1418366#comment-5592204
http://drupal.org/node/1427016#comment-5592238
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | some.jpg | 193.94 KB | eugene.ilyin |
| #6 | list.jpg | 33.5 KB | eugene.ilyin |
| screenshot.jpg | 40.91 KB | eugene.ilyin |
Comments
Comment #1
patrickd commentedwelcome
It appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
Review of the master branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Go and review some other project applications, so we can get back to yours sooner.
Duplication?
There is already a module called abuse (http://drupal.org/project/abuse) that seems to have similar functionality. Can you explain why your module should be promoted instead of joining forces with the creators of abuse?
I think that this could also be done quite simple with a rules+flags+views combination, is there a need for it?
Comment #1.0
eugene.ilyin commentedSwitched to 6.x-1.0 branch.
Comment #2
eugene.ilyin commentedHello.
Thank you for http://ventral.org/pareview. It's very good tool.
Now I use 6.x-1.x branch.
I corrected the code errors in my module and added the file readme.txt.
My module allows you to send the complaint only to the comments. He is more purposeful.
It's very simple to use and contains only the most necessary functions.
In my module, a simple form of administrative complaints to the comments in the style of the standard listings Drupal.
The module also allows you to send a complaint AJAX and anonymous users should not specify any information (email, name, etc.), just click for report.
I developed this module because it was necessary for me to my current project.
My current project contains a large number of comments, and most users are anonymous.
I need a simple tool for complaints to the comments.
Beginner Drupal developer to be simple to install my module and start using. It is much easier than the "rules + flags + views" and does not require the installation of these modules.
Comment #3
patrickd commentedit would be nice to have a direct comparison of comment abuse and abuse
Comment #4
eugene.ilyin commentedIf you are anonymous you must enter name and email address also.
I tested the abuse module and I did not like:
Comment #4.0
webchickadd review links
Comment #5
IRuslan commentedCouple of notes.
It's undesirable. Access callback must check some permission, or custom callback.
If you hardcode callback to TRUE in code, you could not change it in UI.
This functions are useless now. You should set 'drupal_get_form' as 'page callback', and name of form in 'page arguments' for appropriate items in hook_menu.
In comment_abuse_get_allowed_comment_links_by_nid() function in SQL query
'WHERE ca.cid is NULL'
better will be (uppercase for all MySQL keywords)
'WHERE ca.cid IS NULL'
In comment_abuse_list_form() when you use pager_query, 50 - count of rows should be configurable, e.g. variable_get(...)
In comment_abuse_list_form_submit() cids collected and concatenated manually, use db_placeholders() instead.
In comment_abuse_link() what sense of static variable $comment_allow?
In JS file use Drupal.behaviors (see for details http://drupal.org/node/304258 ) instead default JQuery DOM ready bind - $(function(){}).
I guess almost all views handlers are useless. They make default things. Also there is a good practice to name handlers in that manner:
[MODULE_NAME]_handler_[HANDLER_TYPE]_[HANDLER_NAME]. HANDLER_TYPE - filter, sort, field, etc.. So relationship handler named wrong.
Also add indices to comment_abuse table on uid and nid fields, i guess it will be usefull.
Comment #6
eugene.ilyin commentedOkay!
I have updated
'access callback' => TRUENow it looks like this:
'access callback' => user_access('send complaints on comments')Page callback now looks like this
Your MySQL syntax notice been applied.
Pager has beed refactored. Now there is a possibility to choose the number of complaints per page (default 10).
You can see it in screenshot.
Others fix a little later, and now I really want to sleep :D (3:17 AM)
Comment #7
eugene.ilyin commentedNow I use placeholders in comment_abuse_list_form_submit()
static variable in comment_abuse_link need for get once ID comments, for which complaint button are allowed.
Drupal behaviors used now.
Comment #7.0
eugene.ilyin commentedupdate repository link
Comment #7.1
eugene.ilyin commentedupdate rep path
Comment #8
eugene.ilyin commentedViews handlers and list of complaints on comments, has been refactored.
I added indexes for cid and uid in comment_abuse table.
I and my friend tested this module, bugs has been fixed.
If there are no errors will be found a couple of days I start to develop versions of the module for Drupal 7. I think I can do it for a week.
Comment #9
eugene.ilyin commentedReview please! :D
Or promote to the full version if you think this project is good.
Comment #9.0
eugene.ilyin commentedupdate rep path
Comment #10
eugene.ilyin commentedfixed bug with permissions of complaints to comments
Comment #11
eugene.ilyin commentedNow the user can not complain about your own comments. For registered users verified User ID, and check for anonymous IP address.
Review please or promote to the full version if you think this project is good.
Comment #11.0
eugene.ilyin commentedset branch for git path
Comment #11.1
eugene.ilyin commentedupdate git rep address
Comment #11.2
eugene.ilyin commentedUpdated list of features.
Comment #12
eugene.ilyin commentedDrupal 7 module version is ready!
Comment #13
eugene.ilyin commentedAdded feature to control the count of complaints to the comments in moderation page for Drupal 7.
Comment #14
eugene.ilyin commentedreview my module please.
Comment #15
patrickd commentedI'm sorry for the delay, but there are hundreds of applications and only a hand full of reviewers.
You can speed up you application by getting a review bonus, see #1410826: [META] Review bonus
Comment #16
eugene.ilyin commentedThank you! I will be happy to help you.
Comment #16.0
eugene.ilyin commentedUpdate module description.
Comment #16.1
eugene.ilyin commentedadd review link
Comment #16.2
eugene.ilyin commentednvm
Comment #16.3
eugene.ilyin commentedadd review link
Comment #17
eugene.ilyin commentedI did a review of three other projects.
Comment #18
eugene.ilyin commentedReview my module please.
Comment #19
JupiterIII commentedI've reviewed and tested the 7.x version on my own core box. It works quite well, and makes excellent use of the content dashboard. It works great presently; though I have a suggestion for future development (if you intend to develop further): the "Status" column in the GUI is a "0" or "1". I understand that the 0 means unpublished and 1 means published, however it would be an excellent feature to translate that into "published" or "unpublished" (for simplicity's sake).
Beyond that, I find this to be a fantastic addition to any site that uses comments regularly.
Comment #20
eugene.ilyin commentedThank you. Of course I will develop this project.
As soon as he get full version and the developers will use it, I can understand the direction in which works is most important.
It's a good idea, but in drupal 6 conversely comments with status 0 are published and with the status 1 of an unpublished. This can create confusing, but I'll thinking about it.
Comment #21
klausimanual review:
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #21.0
klausiadd review link
Comment #21.1
eugene.ilyin commentedadd review link
Comment #21.2
eugene.ilyin commentedadd review link
Comment #22
eugene.ilyin commentedThank you for review. I fixed all errors.
When ventral.org/pareview again up and running, I can check my code style.
I get parameters from $_POST for delete comments. This is done by analogy with the comments module in the Drupal core.
Comment #23
eugene.ilyin commentedComment #24
eugene.ilyin commentedModule reviewed by ventral.org/pareview again and errors has not found.
Comment #25
klausimanual review:
Otherwise I think this is nearly ready. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #25.0
klausiadd review link
Comment #26
eugene.ilyin commentedI corrected your remarks. Thanks for your links to documents that have been useful to me.
Comment #27
klausimanual review:
Otherwise looks good to me. Removing review bonus tag, if there are still changes required you can add it again if you have done another 3 reviews of other projects.
Comment #27.0
klausiadd review links
Comment #27.1
eugene.ilyin commentedadd review link
Comment #28
eugene.ilyin commentedI added @file doc block into all files.
About that:
I looked "Form elements #description and #title" in http://drupal.org/node/28984.
I understand the title and description fields are not automatically sanitized in forms api and I have to do it myself.
Pareview script in ventral.org/pareview return this:
sites/all/modules/pareview_temp/test_candidate/./comment_abuse.admin.inc:
+135: [critical] Potential problem: FAPI elements '#title' and '#description' only accept filtered text, be sure to use check_plain(), filter_xss() or similar to ensure your $variable is fully sanitized.
+144: [critical] Potential problem: FAPI elements '#title' and '#description' only accept filtered text, be sure to use check_plain(), filter_xss() or similar to ensure your $variable is fully sanitized.
Now I added check_plain in this lines.
Comment #29
eugene.ilyin commentedI did new reviews.
You set "reviewed & tested by the community" status to my project. What now?
Comment #30
klausiBut the #title is not part of a form element in your case, it is part of link render array. Looks like a false positive in the coder review module.
About the project application workflow: a git administrator other than me will take a final look and either grant you the git vetted user role or bump this issue back to needs work if there are any outstanding issues that I missed.
Comment #31
eugene.ilyin commentedOkay. Now I remove check_plain from these lines.
Comment #32
tim.plunkettThanks for your contribution! 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.
Comment #33
klausiRemoving review bonus tag.
Comment #35
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application (see also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.