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
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| comment_guidelines.diff | 1.29 KB | Ignored | None | None |

#1
Interesting feature. Personally, I don't think it's needed, though.
Moving to 6.x-dev queue.
#2
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
I agree with christefano. This is a very vital feature.
#4
It's incredible how long it takes to incorporate such a simple and useful feature.
#5
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.
#6
#7
Cvbge don't work on it, so I changed assigned person to nobody.
#8
In node module we have submission guidelines ($type->help variable) in help system:
<?phpfunction 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
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
This will be a nice feature for 7.x (since 6.x is both string- and feature-frozen).
#11
Just want to voice my support for this. I was looking for something like this. This is partly a usability issue to me.
#12
Maybe it's a vital, but i used it. Thanks.
#13
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
Subscribing. The patch needs refreshed for HEAD.
#15
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
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
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
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.