Advertising
Paste Description for Anonymous
Forum thread ttp://wordpress.org/support/topic/124694
- Anonymous
- Tuesday, July 3rd, 2007 at 9:12:40pm MDT
- <?php // Do not delete these lines
- if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
- ?>
- <p class="center"><?php _e("This post is password protected. Enter the password to view comments."); ?><p>
- <?php return; } }
- /* Function for seperating comments from track- and pingbacks. */
- function k2_comment_type_detection($commenttxt = 'Comment', $trackbacktxt = 'Trackback', $pingbacktxt = 'Pingback') {
- global $comment;
- return $trackbacktxt;
- return $pingbacktxt;
- else
- return $commenttxt;
- }
- $templatedir = get_bloginfo('template_directory');
- $comment_number = 1;
- ?>
- <!-- You can start editing here. -->
- <?php if (($comments) or ('open' == $post-> comment_status)) { ?>
- <div id="comments">
- <h3 class="comment_intro"><?php comments_number('0 comments', '1 comment so far', '% comments' );?> ↓</h3>
- <?php if ($comments) { ?>
- <dl id="comment_list">
- <?php $count_pings = 1; foreach ($comments as $comment) { ?>
- <dt id="comment-<?php comment_ID() ?>"<?php if ($comment->comment_author_email == get_the_author_email()) { ?> class="author"<?php } ?>>
- <span class="comment_num">" title="Permalink to this comment">#<?php echo($comment_number); ?></span>
- <?php comment_author_link() ?> on <?php comment_date('m.d.y') ?> at <?php comment_time() ?>
- </dt>
- <dd class="entry<?php if ($comment->comment_author_email == get_the_author_email()) { ?> author<?php } ?>">
- <?php comment_text() ?>
- <?php if ($comment->comment_approved == '0') : ?>
- <p>Your comment is awaiting moderation.</p>
- <?php endif; ?>
- </dd>
- <?php $comment_number++; } /* end for each comment */ ?>
- </dl>
- <?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. -->
- <div class="entry">
- <p>There are no comments yet...Kick things off by filling out the form below.</p>
- </div>
- <?php } else { // comments are closed ?>
- <!-- If comments are closed. -->
- <?php if (is_single) { // To hide comments entirely on Pages without comments ?>
- <div class="entry">
- <p>Like gas stations in rural Texas after 10 pm, comments are closed.</p>
- </div>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <!-- Comment Form -->
- <?php if ('open' == $post-> comment_status) : ?>
- <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
- <p class="unstyled">You must /wp-login.php?redirect_to=<?php the_permalink(); ?>">log in to post a comment.</p>
- <?php else : ?>
- <h3 id="respond">Leave a Comment</h3>
- <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="comment_form">
- <?php if ( $user_ID ) { ?>
- <p class="unstyled">Logged in as /wp-admin/profile.php"><?php echo $user_identity; ?>. /wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Logout »</p>
- <?php } ?>
- <?php if ( !$user_ID ) { ?>
- <p><input class="text_input" type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" /><label for="author">Name</label></p>
- <p><input class="text_input" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" /><label for="email">Mail</label></p>
- <p><input class="text_input" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" /><label for="url">Website</label></p>
- <?php } ?>
- <p><textarea class="text_input text_area" name="comment" id="comment" rows="7" tabindex="4"></textarea></p>
- <p>
- <input name="submit" class="form_submit" type="submit" 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 ?>
- </div> <!-- Close #comments container -->
- <?php } ?>
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.