Nofollow Comments

From Habari Project

Jump to: navigation, search

By default, Habari does not add the nofollow microformat tag to commenter links. For those who would prefer to nofollow comments, it is easily done in the theme by adding the nofollow tag to the output of the commenter's url.

<li id="comment-<?php echo $comment->id; ?>" <?php echo $class; ?>>
  <div class="comment-content">
    <?php echo $comment->content_out; ?>
  <div class="comment-meta">#<a href="#comment-<?php echo $comment->id; ?>" class="counter" title="<?php _e('Permanent Link to this Comment'); ?>">
    <?php echo $comment->id; ?></a> | 
<span class="commentauthor"><?php _e('Comment by'); ?> <a href="<?php echo $comment->url; ?>" rel="nofollow"><?php echo $comment->name; ?></a></span>
<span class="commentdate"> <?php _e('on'); ?> <a href="#comment-<?php echo $comment->id; ?>" title="<?php _e('Time of this comment'); ?>"><?php $comment->date->out('M j, Y h:ia'); ?></a></span>
<h5><?php if ( $comment->status == Comment::STATUS_UNAPPROVED ) : ?> <em><?php _e('In moderation'); ?></em><?php endif; ?></h5>
Personal tools
This is a cached copy of the requested page, and may not be up to date.

Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.

(Cannot contact the database server: Access denied for user 'habari'@'localhost' to database 'habari_wiki' (localhost))

You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.