Support » Fixing WordPress » Comments Not Loggin In

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Robin

    (@hismuse)

    Ok after breaking my site many times I was able to get the comments section to stay logged in but was not able to fix the name/email/site form part so it is hidden when logged in, argh.

    Thread Starter Robin

    (@hismuse)

    You can see a picture here how I am logged in but the fields still show –> http://www.flickr.com/photos/hismuse/2752896463/

    Here is the information for my comments.php:

    <?php else : // If there are no comments yet ?>
    <?php endif; ?>
    
    <?php if ( pings_open() ) : ?>
    	<a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?></a>
    <?php endif; ?>
    
    <br /><br />
    
    <a name="postcomment"></a>
    <?php if ( comments_open() ) : ?>
    <b><?php _e('Leave a comment'); ?></b><br />
    
    <!-- Clickable smileys start here -->
    <?php
    	if ( function_exists(csm_comment_form) ) {
    		csm_comment_form();
    	}
    ?>
    <!-- Clickable smileys end here -->			
    
    <form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    	<p>
    	  <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="15" tabindex="1" />
    	   <label for="author"><?php _e('Name'); ?></label> <?php if ($req) _e('(required)'); ?>
    	<input type="hidden" name="comment_post_ID" value="<?php echo $post->ID; ?>" />
    	<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" />
    	</p>
    
    	<p>
    	  <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="15" tabindex="2" />
    	   <label for="email"><?php _e('E-mail'); ?></label> <?php if ($req) _e('(required)'); ?>
    	</p>
    
    	<p>
    	  <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="15" tabindex="3" />
    	   <label for="url"><?php _e('<acronym title="Uniform Resource Identifier">URI</acronym>'); ?></label>
    	</p>
    
    <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="<?php _e('Log out of this account') ?>">Logout &raquo;</a></p>
    
    	<p>
    	  <label for="comment"><?php _e('Your Comment'); ?></label>
    	<br />
    	  <textarea name="comment" style="border: 1px solid #000;" id="comment" cols="50%" rows="9" tabindex="4"></textarea>
    	</p>
    
    	<p>
    	  <input name="submit" id="submit" type="submit" tabindex="5" value="<?php _e('Click Me!'); ?>" />
    	</p>
    	<?php do_action('comment_form', $post->ID); ?>
    </form>
    
    <?php else : // Comments are closed ?>
    
    <?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comments Not Loggin In’ is closed to new replies.