• I want to display the user’s information before they post a comment. I am editing the comment.php file and I need to know how to display the information for the users first name, last name and email address by adding code to this file. I have tried lots of stuff, but haven’t gotten anything to work. Thanks. P.S.: I’m pretty new to WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Even if you not an “user” (registered) and just commented on a WP blog, when you go back next time to that blog – you see your name, email and URI in the form, due to the cookies.

    Thread Starter JSiefer

    (@jsiefer)

    I am unsure how to access these cookies and use them in my form. Perhaps it is best just to deminstrate what I am trying to do.

    If you go to my site “https://www.jmsiefer.com”
    Login as: “test user”
    Password: “test”
    .. then go to this page: “https://www.jmsiefer.com/index.php?p=62”

    What I have done is changed the form at the bottom, so instead of adding a comment about the post, they fill out a form regardging the product (which then sends the information to a .php script that I have written and collects the data into an Excel sheet.) I am trying to write the cookies as hidden data into the form, so that the user information will show up in the Excel doucment too. I hope this all makes sense.

    I JUST CAN’T GET THE DANG USER INFORMATION TO GO ALONG WHEN SUBMITTING THE FORM. What are the names of the cookies for the user information? Thanks much. -J.

    P.S.: I should add that when I look at the cookies that I can find, their names are: “wordpressuser_32ee9012545dfe7550…” hashed cookies. Can I get information out of these?

    Thread Starter JSiefer

    (@jsiefer)

    (I want to remove “Step 1” altogether on link I posted above)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display user information: Comments.php’ is closed to new replies.