By JordanMDL on
This tutorial does more than disable the subject. It removes it completely.
First you want to open you comment.tpl.php file which can be found in drupal directory (on your server) / themes / current theme / comment.tpl.php
Open that file. You will see a code that looks like the following:
<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; print ' '. $zebra; ?>">
<div class="clear-block">
<?php if ($submitted): ?>
<span class="submitted"><?php print t('!date — !username', array('!username' => theme('username', $comment), '!date' => format_date($comment->timestamp))); ?></span>
<?php endif; ?>
<?php if ($comment->new) : ?>
<a id="new"></a>
<span class="new"><?php print drupal_ucfirst($new) ?></span>
<?php endif; ?>
<?php print $picture ?>
<h3><?php print $title ?></h3>
<div class="content">
<?php print $content ?>
</div>
</div>
<?php if ($links): ?>
<div class="links"><?php print $links ?></div>
<?php endif; ?>
</div>
Inside that code locate a smaller code that looks like the following:
<h3><?php print $title ?></h3>
Delete that small code.
*SAVE AND CLOSE ALL FILES*
Done. Now you have a site that has subject-free comments.
Post any problems and questions here and I will help you out.
Comments
The problem with this
The problem with this approach is that you lose the ability to link to a particular comment (permalinks). I find the default Drupal behavior of repeating the first few works of your post as the title annoying as well, so I looked into disabling this myself today, but didn't want to just delete the title because it also deletes the link.
I think the Comments Subjects module provides a cleaner solution. It will always set the default comment title to "Re: ", or "Re: " if replying to a comment. If you disable comment titles in the Drupal settings, then the titles will always be set to these default values. If you enable comment titles, then your users can still change the title if wanted, but it will default to something sensible and non-repetitive, which does the job nicely for me. :-)
Just wanted to the info, since I was fighting with this earlier as well. Hope it helps.
My comment permalinkage was
My comment permalinkage was not affected by the removal of the subject code. It should work fin if you did it exactly as shown above.