go41

Comments: remove author URL link

von Joern am 14. Jun. 2010 | Keine Kommentare

This is my code for comments:
Code:


<?php if ($comments) : ?>

   <h3 id="comments"><?php comments_number('No Comment', '1 Comment', '% Comments' );?></h3>

   <ul class="commentlist">
   <?php foreach ($comments as $comment) : ?>
   <?php

    $isByAuthor = false;

    if($comment->comment_author_email == get_the_author_email()) {

    $isByAuthor = true;

    }?>

      <div class="commentlist">
      <li id="comment-<?php comment_ID() ?>" <?php if($isByAuthor ) { echo 'class="my_comment"';} ?>>
      <div class="clearfloat">
      <?php echo get_avatar( $comment, $size = '55' ); ?>
         <div class="commenttext">

         <cite><?php comment_author_link() ?> <?php if($isByAuthor ) { echo '(author)';} ?>  said: </cite>
         <?php if ($comment->comment_approved == '0') : ?>

         Your comment is awaiting moderation.

         <?php endif; ?>

         <?php comment_text() ?>

         </div>   
      </div>
      <div class="commentmetadata"> <?php comment_date('j F Y') ?> at <?php comment_time() ?> </div>
   <?php endforeach; /* end for each comment */ ?>

How do I change it, so to remove the link from the author name?
Many thanks

(von: adamwork)

Hier noch 1 weitere Ergebnisse dieses Threads:

Re: Comments: remove author URL link :: Reply by Joern

14. Jun. 2010 (von: Joern)

this gives the authors name with link:<?php comment_author_link(); ?>this shows the admin name if the comment is by the owner of the site:<?php if($isByAuthor ) { echo '(author)';} ?>replace comment_author_link(); with comment_author(); and... Weiterlesen →

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: