According to this page:
http://drupal.org/node/234681
...this module makes for a great review node type. I have this in action and it's great. There are a couple of "options" that could be implemented to further it's use in this manner - as a review.
1) Disable replies
2) Somewhat related, limit one comment per user, per node
The implementation could be as simple as having a checkbox option - in the same location as the other options - called "Use as review" which would affect both modifications. Or there could be 2 separate options. There may be other applications of these options outside of reviewing as well. Do you think this is in the scope of this project?
Other suggestions on making this happen are welcome. Thanks in advance.
Comments
Comment #1
sirkitree commentedThanks for the suggestions jo1ene, but I do not believe that these are within the scope of the project.
However, these options would be relatively easy to implement within a site specific module.
I would use hook_form_alter() on the nodecomment settings form: (pseudo code)
combined with a check in a hook_link_alter(): (pseudo code)
You could do something similar for the second item, except that the type of element in hook_form_alter() would be some sort of field to hold a numeric value to limit the user to, and the check within hook_link_alter() would have to check this variable (by using variable_get()) with the number of how many comments the user already posted for this node. Might mean another query to the db to get that amount.
Please note: (pseudo code) is not complete or function but is only used to outline the basic idea of how to accomplish this. Much more checking would have to go into it.
Hope this helps!
Comment #2
jo1ene commentedThanks for your help. Your suggestions are helpful!