This patch adds a textarea on admin/comment/configure. Whatever you enter there will be displayed to the user when replying to a comment. This is similar to what is already possibile for admin/settings/content-types/page

Comments

Jaza’s picture

Version: x.y.z » 6.x-dev
Status: Needs review » Needs work

Interesting feature. Personally, I don't think it's needed, though.

Moving to 6.x-dev queue.

Christefano-oldaccount’s picture

I disagree that this isn't needed. Countless weblogs and web columns today have posting guidelines and I've always been surprised that Drupal doesn't have built-in support for it.

hpn’s picture

I agree with christefano. This is a very vital feature.

archetwist’s picture

It's incredible how long it takes to incorporate such a simple and useful feature.

mki’s picture

Title: Add guidelines when replying to comment - like for any node type » Guidelines on comment submission - like for node submission
StatusFileSize
new1.05 KB

Some changes and update to Drupal HEAD from 2007/06/19.

Please devote your time to review and add this to Drupal core. Thank you.

mki’s picture

Assigned: » mki
mki’s picture

Assigned: mki » Unassigned

Cvbge don't work on it, so I changed assigned person to nobody.

mki’s picture

In node module we have submission guidelines ($type->help variable) in help system:

<?php
function node_help($section) {
...
  if (arg(0) == 'node' && arg(1) == 'add' && $type = arg(2)) {
    $type = node_get_types('type', str_replace('-', '_', arg(2)));
    return '<p>'. (isset($type->help) ? filter_xss_admin($type->help) : '') .'</p>';
  }
}
?>

But help is at the top of page. On reply submission we will have on page:
(1) help = commend submission guidelines,
(2) node (+comments) / comment
(3) comment form.
Any ideas?

Christefano-oldaccount’s picture

What I ended up doing is add something like this to template.php:

/**
 * Display posting guidelines at the top of comment submission forms.
 * It is useful for helping or instructing your users.
 */
function phptemplate_comment_form($form) {
  $output .= '<div>';
  $output .= '<div class="comment_help">Comment guidelines go here.</div>';
  $output .=  drupal_render($form);
  $output .= '</div>';
  return $output;
} 

I've written up a more elaborate tutorial that allows editing of the comment guidelines from within Drupal (instead of editing template.php).
Check my drupal.org profile for a link to my Drupal development column.

This is crossposted at http://drupal.org/node/15248 (#comment-242999).

keith.smith’s picture

Version: 6.x-dev » 7.x-dev

This will be a nice feature for 7.x (since 6.x is both string- and feature-frozen).

Sborsody’s picture

Just want to voice my support for this. I was looking for something like this. This is partly a usability issue to me.

josh123-1’s picture

Maybe it's a vital, but i used it. Thanks.

HS’s picture

I agree absolutely essential for any CMS, especially one which has blogging capability.

You can create a block under content area to show up, but only if your comment reply is set up to open on a different page.

Anonymous’s picture

Issue tags: +Usability

Subscribing. The patch needs refreshed for HEAD.

HS’s picture

This module : http://drupal.org/project/warning

Takes care of the issue and allows the admin to place warning messages in other submission forms as well. I think this is the ideal way to go.

Anonymous’s picture

Another example of a badly named project. Actually I agree with Hilal that the way to handle this issue is with a module. I think that the module should be a part of the core maintained modules. So rather than the patching to add a form submission message to the comment area we should patch to add a module that adds a form submission message to what ever form we may have. Maybe combine it with the form help area.

HS’s picture

Earnie,

There are a ton of other modules that are really beneficial to any drupal site, again posted in the wrong section, bad titles, vague descriptions. Just criminal..

Drupal should have staff or mods who can dig through this stuff and bring them all out.

After the recent changes to drupal.org its harder to find these modules.

Anonymous’s picture

Hilal,

The place to complain about the website is in the Drupal webmasters issue queue. I agree that I don't like the new d.o/project/Modules page as well as I did before. You could ask to become a documentation editor or simply supply a patch for a page.

elliotttf’s picture

Status: Needs work » Needs review
StatusFileSize
new1.28 KB

I've re-worked this patch for D7 allowing for the submission guidelines to be added on a per-content type basis.

sdsheridan’s picture

Nice patch. Simple and effective, and nice that it's on a per-content-type basis. The only thing I might do is attach a class to the <p> tag, so themers can style it.

damien tournoud’s picture

Version: 7.x-dev » 8.x-dev

Drupal 7 is long feature frozen now. Bumping to Drupal 8.

brianV’s picture

StatusFileSize
new1.2 KB

Re-rolled for D8, with sdsheridan's suggestion to add a class to the

.

Bojhan’s picture

Status: Needs review » Needs work

needs screenshot

brianV’s picture

Status: Needs work » Needs review
StatusFileSize
new28.03 KB
new46.31 KB
new1.24 KB

Sure, as requested. I've also added an updated copy of the patch.

dixon_’s picture

Status: Needs review » Needs work

I think this is a sensible thing to have. Placement and/or interaction might need some iterations though.

Another thing we also need is tests for this.

Bojhan’s picture

I was tempted to mark this won't fix, but since dixon_ found it sensible I would love to know what the thoughts are? Why is this necessary for core? I am not sure this is a widely requested feature.

dixon_’s picture

Status: Needs work » Closed (won't fix)

Actually, Bojhan is right. This is an easy thing to fix in contrib and not very widely requested. Having submission guidelines for nodes makes much more sense, since nodes are mostly used very differently. Comments are mostly just comments.