Moving the comment box
-
I am trying to move the comment box up, to below the post information. But, I must be copying something extra (or not enough) since every attempt has broken the page. Any help?
<div> <?php if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Go back you freak!'); if (!empty($post->post_password)) { if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { ?> <p class="nocomments">Password Protected! <?php return; } } $oddcomment = 'class="alt" '; ?> <?php if ($comments) : ?> <h3> <?php comments_number('No Responses', 'One Response', '% Responses' );?> to <?php the_title('“','”'); ?> </h3> <ul id="listcomments"> <?php wp_list_comments('type=comment&callback=commentstemplate'); ?> </ul> <div id="navigation"> <span class="prev"><?php previous_comments_link() ?></span> <span class="next"><?php next_comments_link() ?></span> </div> <?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. <?php endif; ?> <?php endif; ?> <?php if ('open' == $post->comment_status) : ?> </div> <h3><?php comment_form_title(); ?></h3> <div id="respond"> <div class="cancel"> <?php cancel_comment_reply_link('Close') ?> </div> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 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. <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <p style="display: block; margin-top: 5px; font-size: 10px; text-transform:uppercase; font-family:Arial, Helvetica, sans-serif;">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 »</a> <?php else : ?> <small>Name <?php if ($req) _e('(<strong>*</strong>)'); ?> </small> <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" class="TextField Name" /> <small>E-mail (<?php if ($req) _e('<strong>*</strong>'); ?>)</small> <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" class="TextField" /> <small><abbr title="Uniform Resource Identifier">URI</abbr></small> <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" class="TextField URI" /> <small>Message</small> <?php endif; ?> <textarea name="comment" id="comment" rows="6" tabindex="4" class="TextArea" cols="7"></textarea> <?php comment_id_fields(); ?> <input name="SubmitComment" type="image" class="submitcom" title="Post Your Comment" src="<?php bloginfo('template_url'); ?>/images/trans.png" alt="Post Your Comment" /> <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 ?> </div>
- The topic ‘Moving the comment box’ is closed to new replies.