I'd like to remove the need to enter a title for comments. Is there a way to hide the title field and display for comments?

CommentFileSizeAuthor
#3 fourseasons-comments.gif64.77 KBderjochenmeyer

Comments

derjochenmeyer’s picture

Hi rjdempsey. Go to Administer › Content management › Comments › Settings (path: admin/content/comment/settings) There you can disable the Title input. The the output cannot be controlled from the settings. You have to modify the comment.tpl.php

remove this line <h3><?php print $title ?></h3> in the following code (comment.tpl.php):

<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 ($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>

    <?php if ($submitted): ?>
      <span class="submitted"><?php print t('!date — !username', array('!username' => theme('username', $comment), '!date' => format_date($comment->timestamp))); ?></span>
    <?php endif; ?>
      
    <div class="content">
      <?php print $content ?>
    </div>

  </div>

  <?php if ($links): ?>
    <div class="links"><?php print $links ?></div>
  <?php endif; ?>
  <div style="clear:both;"></div>
</div>
natisto’s picture

My comments thing has no "settings" link...and the path you mentioned doesn't get me anywhere. Any other ideas?

derjochenmeyer’s picture

StatusFileSize
new64.77 KB

Well, if i go to forward-media.info/admin/content/comment/settings on my demopage (running Drupal 5 > the version you chose for the issue) i see the screen thats attached as a screenshot here. You should see exactly the same.