1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Nooobb at this!! HELP!

Discussion in 'Blogging' started by blackmouse, Mar 12, 2009.

  1. blackmouse

    blackmouse Registered Member

    Joined:
    Dec 15, 2008
    Messages:
    79
    Likes Received:
    48
    Hi guys! I need your expert help again! I'm guessing this has to do with the html coding which im not all that familar with!

    my blog
    Code:
    www.nationalchildeducation.com/blog
    is a new one..
    and, someone just commented on the first post.. but I have no idea why the comment author is my nickname which is "Webmaster" instead of his own, which is "happygeorge"! Yikes!

    In order to prevent spam, I've actually chosen to moderate every post and comment. I just approved it and the author turns out to be me, is the moderation the reason why this is happening?

    or is the code bringing out the wrong author name? this is what the comment.php looks like...

    Code:
    <?php // Do not delete these lines
    	if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    		die ('Please do not load this page directly. Thanks!');
    
    	if (!empty($post->post_password)) { // if there's a password
    		if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
    			?>
    
    			<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
    
    			<?php
    			return;
    		}
    	}
    
    	/* This variable is for alternating comment background */
    	$oddcomment = 'class="alt" ';
    ?>
    
    <!-- You can start editing here. -->
    
    <?php if ($comments) : ?>
    	<h3 id="comments"><?php comments_number('No Responses', 'One Response' );?> </h3>
    
    	<ol class="commentlist">
    
    	<?php foreach ($comments as $comment) : ?>
    
    		<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
    
    <a href="http://gravatar.com" rel="external nofollow" class="gravatar">
    
    <?php 
    if (function_exists('get_avatar')) {
          echo get_avatar( $comment, 50);
       } else {
          //alternate gravatar code for < 2.5
          $grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=
             " . md5($email) . "&default=" . urlencode($default) . "&size=" . $size;
          echo "<img src='$grav_url'/>";
       }
    ?>
    </a>
    			<?php comment_text() ?>
    			<?php if ($comment->comment_approved == '0') : ?>
    			<em>Your comment is awaiting moderation.</em>
    			<?php endif; ?>
    			<br />
    			<p class="aurther-name"><?php the_author(); ?></p>
    			<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title="">on <?php comment_date('F jS, Y') ?> </a> <?php edit_comment_link('edit','  ',''); ?></small>
                
                
    
    			<br /><br />
    
    		</li>
    
    	<?php
    		/* Changes every other comment to a different class */
    		$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
    	?>
    
    	<?php endforeach; /* end for each comment */ ?>
    
    	</ol>
    
     <?php else : // this is displayed if there are no comments so far ?>
    
    	<?php if ('open' == $post->comment_status) : ?>
    		<!-- If comments are open, but there are no comments. -->
    
    	 <?php else : // comments are closed ?>
    		<!-- If comments are closed. -->
    		<p class="nocomments">Comments are closed.</p>
    
    	<?php endif; ?>
    <?php endif; ?>
    
    
    <?php if ('open' == $post->comment_status) : ?>
    
    <h3 id="respond">Leave a Reply</h3>
    
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
    <?php else : ?>
    
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    <?php if ( $user_ID ) : ?>
    
    <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout »</a></p>
    
    <?php else : ?>
    
    <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" class="input" />
    <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
    
    <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" class="input" />
    <label for="email"><small>Mail ( <?php if ($req) echo "required"; ?> - will not be published) </small></label></p>
    
    <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" class="input" />
    <label for="url"><small>URL: (your website)</small></label></p>
    
    <?php endif; ?>
    
    <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
    
    <p><textarea name="comment" id="comment" cols="50%" rows="10" tabindex="4"></textarea></p>
    
    <p><input name="submit" type="image" src="<?php echo bloginfo('stylesheet_directory'); ?>/images/submit.png" id="submit" tabindex="5" value="Submit" />
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    
    </form>
    
    <?php endif; // If registration required and not logged in ?>
    
    <?php endif; // if you delete this the sky will fall on your head ?>
    I hope someone can help with this as I've tried googling it for solution and I can't understand a bit what the html jibberish is talking about! Thanks guys! Really appreciate your time! :D
     
  2. makingfastcash22

    makingfastcash22 Senior Member

    Joined:
    Feb 15, 2009
    Messages:
    1,152
    Likes Received:
    178
    Home Page:
    I think it might be someone using an autocommenter setup with worpress as the username. You can do this with comment kahuna.


    hope this helps.
     
  3. blackmouse

    blackmouse Registered Member

    Joined:
    Dec 15, 2008
    Messages:
    79
    Likes Received:
    48
    hmm, nope i checked on the user profile. He is real, and he created the profile yesterday. Actually received an email from him telling me about it. So i'm pretty sure its not automated..

    Thanks for trying to help!