Guidelines on comment submission - like for node submission

Cvbge - December 31, 2005 - 19:15
Project:Drupal
Version:7.x-dev
Component:comment.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:Usability
Description

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

AttachmentSize
comment_guidelines.diff1.29 KB

#1

Jaza - January 17, 2007 - 03:58
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.

#2

Christefano - January 19, 2007 - 05:36

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.

#3

hpn - April 16, 2007 - 11:45

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

#4

archetwist - April 27, 2007 - 17:37

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

#5

mki - June 20, 2007 - 10:10
Title:Add guidelines when replying to comment - like for any node type» Guidelines on comment submission - like for node submission

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.

AttachmentSize
comment.module_78.patch 1.05 KB

#6

mki - June 20, 2007 - 15:20
Assigned to:Cvbge» mki

#7

mki - June 20, 2007 - 15:24
Assigned to:mki» Anonymous

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

#8

mki - June 22, 2007 - 11:17

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?

#9

Christefano - January 8, 2008 - 03:38

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).

#10

keith.smith - January 8, 2008 - 03:42
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).

#11

Sborsody - September 16, 2008 - 02:38

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

#12

josh123 - November 28, 2008 - 23:05

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

#13

Hilal - April 16, 2009 - 18:30

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.

#14

earnie - April 17, 2009 - 14:14

Subscribing. The patch needs refreshed for HEAD.

#15

Hilal - April 20, 2009 - 04:31

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.

#16

earnie - April 20, 2009 - 12:53

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.

#17

Hilal - April 20, 2009 - 21:14

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.

#18

earnie - April 21, 2009 - 15:04

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.

 
 

Drupal is a registered trademark of Dries Buytaert.