• I have a user that says that everytime he goes to post a comment the my admin name and email address are already filled in. He then says that he changes the info to his info but when he posts the comment it gives my admin info — it even shows my gravatar.

    Any suggestions on what might be fubared?

    I’m runnning Strayhorn

Viewing 9 replies - 1 through 9 (of 9 total)
  • Is the user logged in as Admin (or is the computer the user is using logged in as Admin)?

    If someone is logged in, WordPress grabs their user info and fills in the comment info from that – overriding what they put in in the fields. See the comments.php to see how it implement deals with this (it only shows the name/email/url fields if someone isn’t logged in.)

    Thread Starter tgrisier

    (@tgrisier)

    He says that he doesn’t log in. He just comes to the site and posts comments as he sees fit.

    mdawaffe, is there any way to disable this? I really hate it. I’m working on a beta version of my site, trying to get everything working the way I want it to (theme-wise mostly) before rolling out 1.5 on my main site, but I really wish it didn’t bypass the name and email and webpage options if I am logged in. It makes it hard to test the system and work on it at the same time. This didn’t used to be the way it worked in Mingus. Is there some setting I can comment in the PHP to disable this?

    Comment out the following lines in wp-comments-post.php.

    // If the user is logged in
    get_currentuserinfo();
    if ( $user_ID ) :
    $comment_author = addslashes($user_identity);
    $comment_author_email = addslashes($user_email);
    $comment_author_url = addslashes(str_replace('https://', '', $user_url));
    else :
    if ( get_option('comment_registration') )
    die( __('Sorry, you must be logged in to post a comment.') );
    endif;

    rboren, that seems to eliminate the notification that I am logged in, but the fields don’t appear for me still. Any other ideas?

    In other words, I get no fields and when I try to comment, I am met with:
    Error: please fill the required fields (name, email).

    Nevermind. I figured it out. Had to take out some of the code in my comments.php file in the new site template. And now all is well. Cheers.

    what code did you take out in your comments.php file in the new site template?? I am having the same issues with the fields not showing up and don’t know how you fixed yours! how? what did you delete?

    please explain for those of us who find this thread by searching

    -Jennifer

    Figured it out. The problem was not entirely with WordPress, but with my lack of understanding the new “process” one must go through to leave a comment. WP could make this easier for first-time commenters by adding a “you must register on this site to leave a comment” or something like that… which I don’t know how to do on my own…

    Anyhow, I created a step-by-step set of instructions on leaving a comment in my blog:
    https://www.davejenbarnes.com/wordpress/?p=320

    -Jennifer

    Bunker

    (@bunker)

    I have a similar problem in that on my computer at work, all the posts on my site display “Edit This”. If I click on that, I end up at the log-in screen. Apparently I am not actually logged in, but the computer thinks I am. Also, if I try to comment on one of my posts, it displays my name and “log out” with no open blocks for name and email. Yet I cannot post a comment because I’m taken to a screen which tells me I must leave a name and email to post a comment.

    I don’t have this problem with the computer at home.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Users Commenting as Admin’ is closed to new replies.