Hi,

It'd be greatly appreciate if you email me your change to the comment module. Thank you much!

Sam L.

CommentFileSizeAuthor
#1 whisper_comment.zip19.97 KBatuyo60

Comments

atuyo60’s picture

StatusFileSize
new19.97 KB

Hi, sorry for the late reply, I didn't know the project issues weren't in my tracking page. I have attached the file here.

It should work fine as I am using it on my production site. Rename your original comments.module just in case and upload the updated comments.module. This updated file will work even without the whisper module activated as I have added the module exists check.

An additional column will be added to your comments table but it will be removed when the module is uninstalled.

As for the other files just activate as usual. But just a note that the seal occurs for all node which uses the comments module including the comments in the core forum module. Maybe some other permissions could be added in future to allow the option for certain pages only.

Let me know if it is giving any problems, thanks!

robcrutchfield’s picture

Hi. When I put whisper_comment from this page into my modules directory, the modules that depend on the Comment module (Forum and Tracker) report that Comment is missing (although it isn't), and disable themselves. (When I remove whisper_comment, they're happy again.) Comments are NOT disabled -- they still work -- but the ones marked "Sealed" are NOT hidden from other users.

If I use the Whisper module from http://drupal.org/project/whisper , the only result I get is that the "Sealed" checkbox appears; comments are still not hidden from other users.

I'm using Drupal 5.5, and I'm pretty new to this, so I may be missing something obvious.

Thanks for any help.

atuyo60’s picture

Hi, did u replace the original comment.module file in your modules directory to the modified version then remove the comment.module from the downloaded folder and upload that folder to your sites/all/modules directory?

As for the module that is available for download on the original page, did u mean existing comments were not sealed or are comments added after the module was installed also not sealed?

zeezhao’s picture

Thanks for this. I tried this out and it works after manually altering comments table though. Please is there any new work on this?
e.g can subject now been sealed?

atuyo60’s picture

I did not implement a configuration option but if you would like to seal the subject, it should be easily done through a small edit in the file. I am currently working on drupal 6 so future developments would probably be only for a drupal 6 version.

The option to seal the subject just requires adding one line to the whisper_display.inc.php file, anonymous users have both subject and comment sealed so follow that part of the code by adding this:

$comment->subject = t('Sealed');

zeezhao’s picture

Thanks for your reply. I had already done something similar after looking at the code. It meets my current needs...

It would be nice to get your changes in comment.module into the main drupal code, so that it does not get overwritten during upgrades.

Please let me know what new features are planned in drupal 6.

atuyo60’s picture

I have just completed the module for Drupal 6, it includes a configuration page as you suggested and no hacks whatsoever are needed although it still alters all comment forms for the seal checkbox regardless of page or node types (this seems to be a core limitation, as is with the indexing of comments).

I have already committed the dev release to the project page...

atuyo60’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.