Show Comments That Contain...

View Mode | Mass Edit Mode

escape($s); $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_author LIKE '%$s%' OR comment_author_email LIKE '%$s%' OR comment_author_url LIKE ('%$s%') OR comment_author_IP LIKE ('%$s%') OR comment_content LIKE ('%$s%') ORDER BY comment_date"); } else { $comments = $wpdb->get_results("SELECT * FROM $tablecomments ORDER BY comment_date $commentorder LIMIT 20"); } if ($comments) { echo '
    '; foreach ($comments as $comment) { $comment_status = wp_get_comment_status($comment->comment_ID); if ('unapproved' == $comment_status) { echo '
  1. '; } else { echo '
  2. '; } ?>

    Name: comment_author_email) { ?>| Email: comment_author_email) { ?> | URI: | IP:

    Posted | $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "comment_ID."\">Edit Comment"; echo " | comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete Comment — "; } // end if any comments to show // Get post title $post_title = $wpdb->get_var("SELECT post_title FROM $tableposts WHERE ID = $comment->comment_post_ID"); $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title; ?> Edit Post “ | View Post

  3. '; } else { ?>

    No results found.