| 1 |
The patch is taken from the module comment_notify. Actually only parts of it are needed,
|
| 2 |
but I thought it's easier to use an existing and working patch than to create a new one.
|
| 3 |
I also added the patched comment.module file. You can just replace the original comment.module file.
|
| 4 |
|
| 5 |
|
| 6 |
Right now if you just use the module, all comments will be displayed with the private once just being empty. If you don't want any of the private comments to be displayed you need to slightly modify your comment.tpl.php:
|
| 7 |
|
| 8 |
<?php if ($comment->visibility == 1):?>
|
| 9 |
|
| 10 |
//here is the existing comment.tpl.php content
|
| 11 |
|
| 12 |
<?php endif; ?>
|
| 13 |
|
| 14 |
I will also add an example comment.tpl.php file from the YAML theme.
|
| 15 |
|
| 16 |
===========================
|
| 17 |
FAQ
|
| 18 |
===========================
|
| 19 |
Q - When I upload the module into the modules directory drupal doesn't see my comments module anymore.
|
| 20 |
A - Make sure to correctly patch the comment.module file. If there's an existing comment.module file in
|
| 21 |
the comment_og folder, it needs to replace the existing comment.module file of the system.
|