HI,
I installed Drupal forum + advanced forum module + forum_access but I can't find a way to disable comment a comments so that forum would act like every other forum where comments are part of thread get deleted only if thread is deleted.
As it looks now in one thread every comment can be individually commented and in case that this comment is deleted also all sub comments linked to this comment gets deleted.
Is there any way that EVERY COMMENT on forum wouldn't have "reply" option? Or that in case that moderator delete some comment all replies on this comment wouldn't be deleted but stayed as part of a whole thread?
Another thing which a bit confuse me is that I can't find Sticky Thread/Lock Thread admin/moderator options. I use forum_access module but single thread/comment have only EDIT option. I wondering what I overlooked? How to lock individual thread?
Comments
I found "Flat comments"
I found "Flat comments" module, this might solve my first problem.
Flatcomments module
What you're looking for is Flatcomments module, which the Advanced Forum project page and documentation recommends. Once installed, configure it at the Forum content type, "Comment settings" with the option: Make all comments replies to the main post, regardless of the reply link used.
To remove "Reply" from comments, I'm not quite certain as I've not tried to remove it (and with Flatcomments, don't want to remove it). However here is a snippet I use in my own customsite.module in order to remove one undesired link from the $links:
// Remove the Read # from the $links on nodesfunction customsite_link_alter(&$links, $node) {
unset($links['statistics_counter']);
}
I'd guess that could be used with some adaptions (e.g. maybe $comment not $node... and figure out what the name of the Reply link is if not simply reply).
For your other question... Sticky/etc are only "within" editing the node or comment. However you can expose them if you want to the $links by using Fast toggle module. To "lock" something you would change the initial node's "Comment settings" to Read only (and I "think" Fast toggle will expose this to you as a quick ink if you use it).
-- David
davidnewkerk.com | absolutecross.com
View my Drupal lessons & guides
Yes, this is what I was
Yes, this is what I was looking for. I am pretty sure that some others might find it usefull too. Thank you for your fast reply.
Where would I put the code in
Where would I put the code in D6? Never made a module but if I have a node.tpl.php in my theme somewhere, could an "unset..." go in there someplace? (In my particular case, it's fine if "reply" doesn't show anywhere... we do all comments in the forum and disable everywhere else)
Edit: actually, I do need the usual "add a comment" etc. stuff on nodes, I just don't need "reply" anywhere on comments, but since the Forum is the main concern, some granular enought to disable "reply" there only would be more surgical.
Here's how I personally made
Here's how I personally made my customsite.module http://drupal.org/node/368776
No, you cannot place a hook like this in a template file. An alternate way I recently learned about (but haven't tried yet) is here http://drupal.org/node/384124#comment-1297066
-- David
davidnewkerk.com | absolutecross.com
View my Drupal lessons & guides
Ah. Just make a little bitty
Ah. Just make a little bitty module. Doesn't look too hard.