WordPress.org

Ready to get started?Download WordPress

Forums

Want to moderate a specific person (8 posts)

  1. mulligan
    Member
    Posted 5 years ago #

    I have a person who keeps commenting on my blog that is becoming a bit of a troll. Right now, I don't have comments moderated.

    I'd really like to send the troll's comments to moderation without having to send all comments to moderation. Is there any way to do that?

  2. macsoft3
    Member
    Posted 5 years ago #

    Does this person use the same IP address or e-mail address?

  3. mulligan
    Member
    Posted 5 years ago #

    Yes, this person does.

  4. macsoft3
    Member
    Posted 5 years ago #

    Then you can. You can just write a simple PHP script for the table titled wp_comments where

    - You make an SQL query for comment_author_email or comment_author_IP for the last post.
    - If there is a match, update comment_approved with value = 1.

    I won't write an entire script. But it shouldn't be difficult. And I'm not a PHP expert.

  5. mulligan
    Member
    Posted 5 years ago #

    I have never written a scrip for PHP before so I still have some questions. I think I know what to do but when I check the SQL wp-comments I see that the default for comment_approved is 1. Does that mean that if a comment has a value of 1 it is approved?

  6. whooami
    Member
    Posted 5 years ago #

    you dont need to write a script.

    just go get wp-ban and out the person's IP in there.

  7. mulligan
    Member
    Posted 5 years ago #

    Actually, I think I figured out an easier way. I went to Settings > Discussion and then placed this person's e-mail and IP in the comment moderation box. I just tested it using the e-mail address and it went to moderation.

    Now I feel silly. If I'd read the directions for that section more closely I would know I could do it that way.

    Thanks for your help, though. I do appreciate it.

  8. macsoft3
    Member
    Posted 5 years ago #

    Ohh... That's quite interesting. I've educated myself as well. Than you, too.

Topic Closed

This topic has been closed to new replies.

About this Topic