Comments

    get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date"); $commentstatus = $wpdb->get_row("SELECT comment_status, post_password FROM $tableposts WHERE ID = $id"); // this line is WordPress' motor, do not delete it. if ($comments) { if (!empty($commentstatus->post_password) && $HTTP_COOKIE_VARS['wp-postpass'] != $commentstatus->post_password) { // and it doesn't match the cookie echo("
  1. Enter your password to view comments.
  2. "); } else { foreach ($comments as $comment) { ?>
  3. by @

  4. No comments yet.
post_password) && $HTTP_COOKIE_VARS['wp-postpass'] != $commentstatus->post_password) { // no authorization for private comments } else if ('open' == $commentstatus->comment_status) { ?>

Leave a Comment

Line and paragraph breaks automatic, website trumps email, HTML allowed:

" />


Sorry, comments are closed at this time.

Close this window.

Powered by Wordpress