By jason342 on
I have comment approval on for usual page/story comments, but this automatically made the forum topic replies to be moderated too?
I don’t want moderation for forum topic replies, how can I make this happen?
Thanks
I have comment approval on for usual page/story comments, but this automatically made the forum topic replies to be moderated too?
I don’t want moderation for forum topic replies, how can I make this happen?
Thanks
Comments
hmmm, if you want this
hmmm, if you want this anytime soon you probably have to write a small module to make it happen. However, I just looked at the comment_save function, and the comment module API is kind of lacking in this regard.
http://api.drupal.org/api/4.7/function/comment_save
For nodes, hook_nodeapi has a "submit" hook where you can change the node properties before they are saved to the DB. For comments, there is hook_comment:
look at: http://api.drupal.org/api/4.7/function/hook_comment
But the comment module seems not to have anything like a "submit" op. If you expect to have lots of forum comments, but few page comments, you could try using the "insert" op with hook_comment and set the comments on pages to be moderated after the fact (and display a message even). This will be more expensive (more DB calls), which is why you'd want to do it for the case where you expect fewer comments.
For the future, you could file a feature request for Drupal 6.x.
---
Work: BioRAFT
So there isn't a simple
So there isn't a simple option in 'access control' that I have missed out then?
I thought that type of option was there in drupal itself, but for some reason it was me who couldn't find it.
=-=
nope not at this stage.
all comments are treated equally no matter where they are.
pwolanin, thanks but all
pwolanin, thanks but all that sounds too complicated.
Isn't there an easier way to do this?
sorry, but as far as I can
sorry, but as far as I can tell there is no easier way (what I sugested should be easy, in the grand scheme of things).
However, look through the list of modules- maybe one of these has a bre-built solution. For example, maybe a one of the modules for rating comments to get them published distinguishes among node types.
You also, of course, have the option of hiring a consultant to do it for you.
---
Work: BioRAFT
How to disable comment moderation for forum only? (Drupal 6)
Hi
I also want to have comment moderation for all node or content types except for forum.
Is there a simpler way to do this, or is the issue still not resolved? Do I still need to dig into php codes in modules?
I couldn't find a Drupal 6 module for comment permissions per node type.
Tunc
I've the same problem: I need
I've the same problem: I need to have a "moderator" role for editing/deleting comments on a specific forum without granting the full "administer comment" permission... I've two forums with this problem and, if I cannot find a good Drupal solution I'll have to use another platform for the forum :-/
--
by FiNeX
FiNeX.org
Siti Web Vicenza
_
Have you tried the http://drupal.org/project/forum_access module?
EDIT:
Nevermind, you can do this with rules. Don't grant the 'publish comments without approval' permissions then use a rule triggered by the 'after saving new comment' event, with conditions for commented node type and user role, to published the comment immediately (use a php action to set $comment->status to 0).
Outputs queued message
I was able to write a tiny module with hook_action_info to update the comment status in the DB if it's a forum comment. However, with the 'publish comments without approval' permission, I'm still getting the Drupal message 'Your comment has been queued for moderation by site administrators and will be published after approval.'. Any nifty way to get rid of that in my module code?
Using the latest -dev
Using the latest -dev versions of forum access and node comments I've been able to set up a complex forum with a lot of roles, users and access permissions.
--
by FiNeX
FiNeX.org
Siti Web Vicenza
@kriskd, did you find a way
@kriskd, did you find a way to get rid of that message?
@boogsbobo - No luck so far
boogsbobo,
I've been working hard at trying to change that message, because if I can do that, I may have module that will publish forum comments immediately, but keep others in the moderation queue. Here is where I am at.
In hook_form_alter I successfully clear the message with drupal_get_messages('status')
Then I try to set a new message in hook_comment_form_submit with drupal_set_message, however the new message never displayed. I can verify my new message is getting in the $_SESSION array by var_dump'ing it, but it won't display on submit.
Can anyone tell me what I'm doing wrong? I've seen plenty of other examples where drupal_set_message is used in form_submit so in theory it seems what I'm doing should work, but it doesn't.