Title: Storing User Info
Last modified: August 18, 2016

---

# Storing User Info

 *  [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/)
 * How do you make it so in when people post comments, their name, email address,
   and website is stored for them so they don’t have to type it in again?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/storing-user-info/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/storing-user-info/page/2/?output_format=md)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245442)
 * Two possibilities:
 * 1. If they have cookies turned on in their browser, you shouldn’t need to do 
   anything for them. WordPress sets these in its cookie file the first time they
   comment on your site.
 * 2. Get them to register and login before commenting, as this info can be passed
   to the comment form.
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245626)
 * Sorry, should’ve explained it better.
    I meant that it stores the information
   for the people, and it doesn’t displays “Welcome Kafkaesqui” and beside it a “
   Change” link for changing it and just message field/box.
 * Do you know what I mean?
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245662)
 * Anyone?
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245663)
 * I don’t know what you meant. I thought Kafkaesqui’s anwer already covered it.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245674)
 * “[I]t doesn’t displays “Welcome Kafkaesqui” and beside it a “Change” link for
   changing it and just message field/box.”
 * You can duplicate the functionality found in the default theme’s comments.php
   that would let you set up something like this for users who are logged in; there’s
   some testing that occurs on `$user_ID` in that template. Beyond this I’m not 
   sure about what you’re looking for.
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245766)
 * Sorry for the late reply. I mean something like [this](http://img211.imageshack.us/img211/4779/img9so.png).
 * Any ideas?
 * Cheers.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245768)
 * What you show on the image is not a WP thing. It seems to be some kind of “chatting”
   plugin or whatever added.
    First, you should have clarify that in your original
   post; secondly ask about it at its author’s site.
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245770)
 * Moshu, it’s from K2. I didn’t ask Michael about this since he said that all WP
   related questions should go here?
 * I’ll see if I should mail him.
 * Cheers.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245771)
 * K2 is not WP. I think… but I am often wrong 🙂
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245793)
 * Can you use ScriptyGoddess Show/Hide plugin for this?
 *  [tedfox](https://wordpress.org/support/users/tedfox/)
 * (@tedfox)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245794)
 * `<?php if ( $user_ID ) : ?>`
 * Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"
   ><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl');?
   >/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">
   Logout &raquo;</a>
 * That displays
 * “Logged in as TedFox. Logout Â»”
 * I’m sure u can change the specifics as needed easily.
    No need for plugins, but
   only works if person commenting is registered
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245795)
 * Tedfox, I know that. But I needed something like [this](http://img211.imageshack.us/img211/4779/img9so.png).
   So when people come the next time to post comments, it doesn’t show them the 
   name, email, website fields since it’s already stored.
 * Thanks for the reply though. 🙂
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245796)
 * bk, that’s pretty much what tedfox just showed.
 * As I noted above, the default theme’s comments.php **does what you’re asking**.
   Just copy the comment form element from that and modify to suit your needs (such
   as changing the text to say _Welcome back …_).
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245797)
 * But won’t the users have to register, so it says “Logout Name”?
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/#post-245800)
 * Yes, they would. It would have helped if you had specified this was not what 
   you were after…
 * [http://paste.uni.cc/7623](http://paste.uni.cc/7623)
 * The above is a mod of the default theme’s comments.php template. It does not 
   include the “change” link feature. For that you’d have to set up a php script,
   or some javascript, that would clear/reset the comment author cookies.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/storing-user-info/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/storing-user-info/page/2/?output_format=md)

The topic ‘Storing User Info’ is closed to new replies.

 * 16 replies
 * 5 participants
 * Last reply from: [bk](https://wordpress.org/support/users/bk/)
 * Last activity: [20 years, 10 months ago](https://wordpress.org/support/topic/storing-user-info/page/2/#post-245801)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
