• Hi, i recently started a new blog: http://www.thinkyouth.net/

    from time to time we have a post up that someone might not like, so they impersonate the author of the article by writing a fake comment and using the author’s name, and trying to impersonate them.

    i was wondering if there is a plugin or option so i could not let this happen. something that people only with the author’s name, who is logged in can comment using that name.
    any ideas?

Viewing 11 replies - 1 through 11 (of 11 total)
  • It is possible – I am writing some code right now for you – give me a minute 🙂

    All done 🙂 I tested it out on my own server, but if it gives you any problems just let me know.

    I decided to make the code available on my site as well. You can find the instructions here:

    http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/

    Summary: This modification to WordPress prevents comment authors from using the names of the post authors on your site. It does this by first checking to see if the comment author is logged in. If they are not, it compares their name to the list of registered authors. If there is a match, the comment is blocked and a custom message is displayed. The name comparison is case-insensitive. This code was written for WordPress 2.2.x

    Nice hack. You might want to submit it as bug report and see if the developers agree that it’s a problem to address.

    theres this too .. een around for a while;

    impostercide @ http://www.skippy.net/blog/plugins

    it works fine in 2.0, 2.1 and 2.2

    Thread Starter solisdaniel

    (@solisdaniel)

    hey Aleister, thanks so much for this, i’m going to test it out right away, and i’ll get back to you to see if it works.

    to ccoupe: it would be nice to see the developers put this into wordpress right off the bat. it’s a big issue, i know.

    Thread Starter solisdaniel

    (@solisdaniel)

    for the life of me, i could not get this to work at all. when i did a test comment i got this error:

    Parse error: syntax error, unexpected ‘&’ in /home/thinkyo1/public_html/wp-comments-post.php on line 36

    anyone else?

    I am not sure why there would be an ampersand there – there is not one in my code. What version of WordPress are you using?

    Thread Starter solisdaniel

    (@solisdaniel)

    i’m running WordPress 2.2.1, the latest

    Could an extra character accidentally have been added?

    What do you have on line 36 in that file?

    Thread Starter solisdaniel

    (@solisdaniel)

    hey i got it to work, the problem was that i was copying and pasting directly from the site. but hey, now it works, thanks so much for this.

    No problem – glad to hear it 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Prevent Author impersonation in comment’ is closed to new replies.