Title: wyldwolf's Replies | WordPress.org

---

# wyldwolf

  [  ](https://wordpress.org/support/users/wyldwolf/)

 *   [Profile](https://wordpress.org/support/users/wyldwolf/)
 *   [Topics Started](https://wordpress.org/support/users/wyldwolf/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wyldwolf/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wyldwolf/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wyldwolf/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wyldwolf/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wyldwolf/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Admin Comments: Different CSS](https://wordpress.org/support/topic/admin-comments-different-css/)
 *  [wyldwolf](https://wordpress.org/support/users/wyldwolf/)
 * (@wyldwolf)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/admin-comments-different-css/#post-661479)
 * I’m using the following:
 *     ```
       <?php// Comment loop
       if ($comments):
       	foreach ($comments as $comment):
       	// Test if Comment Author == Post Author
       		if ($comment->user_id == $post->post_author):
       			$CommentAuthorIsPostAuthor = True;
       		else:
       			$CommentAuthorIsPostAuthor = False;
       		endif;
   
       	// NoFollow sucks, we need an "alt" tag
       		$AuthorName = $comment->comment_author;
       		$AuthorURL = $comment->comment_author_url;
       		if ( ($AuthorURL == '') || ($AuthorURL == 'http://') ):
       			$AuthorData = "Comment by $AuthorName";
       		else:
       			$AuthorData = "Comment by <a href='$AuthorURL' alt='URL for comment author $AuthorName'>$AuthorName</a>";
       		endif;
       ?>
       ```
   
 * So this chunk of code does the following:
    1. Identify the author based on user id. This means you will only be identified
       as the author if are actually logged in. (keeping email high-jackers from being
       identified as the author erroneously).
    2. Allow for custom comment author links. In my case I’m adding an “alt” tag, and
       removing the “rel” tag.
 * Kevin
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can’t ferrit out bad code (WP hacked)](https://wordpress.org/support/topic/cant-ferrit-out-bad-code-wp-hacked/)
 *  Thread Starter [wyldwolf](https://wordpress.org/support/users/wyldwolf/)
 * (@wyldwolf)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/cant-ferrit-out-bad-code-wp-hacked/#post-725813)
 * Small update: The offending spam was inserted directly into my DB. So I guess
   I have a bigger issue I need to solve.
 * Any suggestions?
 * Thanks.
 * Kevin

Viewing 2 replies - 1 through 2 (of 2 total)