MaureenD
Member
Posted 2 years ago #
If someone registers for my site and then logs in, shouldn't it say (somewhere) "Welcome (name)!" and show that they are indeed logged in?
Currently it just keeps showing the form fields visible with the name and encrypted password still filled in.
Also it should provide a link to their profile so they can change their password.
Should I be using a custom widget or plugin to get this functionality?
james.ebert
Member
Posted 2 years ago #
I had to add some lines of PHP to the sidebar to get this effect.
global $current_user;
if ( is_user_logged_in() ) {
get_currentuserinfo();
print "Welcome, $current_user->user_firstname $current_user->user_lastname
";
?>
}
MaureenD
Member
Posted 2 years ago #
Wow - thanks! Meanwhile, I started looking around at plugins and am trying to configure the PrefPass plugin.
If that doesn't work for me I'll use your code!
MaureenD
Member
Posted 2 years ago #
@james.ebert can you explain exactly where to put that code? I've been trying different plugins for this and none seem to be working.
In almost every case the user can log in but they can't logout.