• prwood

    (@prwood)


    I’m using WordPress 2.0.2, and I’ve created my own theme, which works pretty well on the whole. However, the one problem I’m having is with the popup comment template. I’d like this comment to display a notification when someone posts a comment that has been moderated. However, the code in the template seems to display only *approved* comments, so these notifications never show up:


    $comments = get_approved_comments($id);
    foreach ( $comments as $comment ) {
    if ($comment->comment_approved == '0') {
    // display a notice
    //etc

    Does anyone know of a way to notify someone of comment moderation from within a popup comment window?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter prwood

    (@prwood)

    P.S. I did try replacing the call to get_approved_comments with a direct wpdb call that included non-approved comments, but this doesn’t work because it just shows ALL of the comments to EVERYONE:

    // $comments = get_approved_comments($id);
    $comments = $wpdb->get_results(“SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id ORDER BY comment_date”);

    Can anyone help put this puzzle together?

Viewing 1 replies (of 1 total)
  • The topic ‘Indicating moderation in popup comments’ is closed to new replies.