• Robin

    (@hismuse)


    I think this theme I am using has a lot of stuff missing and the author is gone. I’ve fixed most of the stuff but I have no idea how to fix it so the comment form has the information saved after the person comments.

    http://lifeisnotamovie.net

    <?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"><?php _e("This post is password protected. Enter the password to view comments."); ?><p>
    
    				<?php
    				return;
                }
            }
    
    		/* This variable is for alternating comment background */
    		$oddcomment = "graybox";
    ?>
    
    <!-- You can start editing here. -->
    <div id="comment-item">
    <div id="hasil-comment">
    <?php if ($comments) : ?>
    
    <?php comments_number('No Comments', 'One Comment', '% Comments' );?> to “<?php the_title(); ?>”
    
    	<ol class="commentlist">
    
    	<?php foreach ($comments as $comment) : ?>
    
    		<li class="<?=$oddcomment;?>">
    			<a name="comment-<?php comment_ID() ?>"></a><?php comment_author_link() ?> Says:<br />
    			<?php comment_text() ?>
    
    		</li>
    
    		<?php /* Changes every other comment to a different class */
    			if("graybox" == $oddcomment) {$oddcomment="";}
    			else { $oddcomment="graybox"; }
    		?>
    
    	<?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) : ?>
    </div>
    <div id="comment">
    
    <form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    <fieldset>
    <legend id="info">Personal Information</legend>
    <label>Name</label> (required)<br /><input type="text" name="author" id="form-name" tabindex="1" />
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
    <label>Email</label> (required)<br /><input type="text" name="email" id="form-mail" tabindex="2" />
    <label>http://</label><br /><input type="text" name="url" id="form-link" tabindex="3" />
    <label>Comment</label><br />
    <textarea name="comment" id="coment-message" cols="50" rows="10" tabindex="4"></textarea>
    <input class="submit" value="Submit" type="submit" tabindex="5" />
    </fieldset>
    
    <?php show_subscription_checkbox(); ?>
    
    </form>
    
    </div></div>
    <?php // DO NOT DELETE THIS TAG (ikram_zidane)
    endif; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Theme’s Comment Form’ is closed to new replies.