Forums

Login widget - is this normal? (4 posts)

  1. MaureenD
    Member
    Posted 3 weeks 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?

  2. james.ebert
    Member
    Posted 3 weeks 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
    ";
    ?>
    }

  3. MaureenD
    Member
    Posted 3 weeks 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!

  4. MaureenD
    Member
    Posted 3 weeks 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.

Reply

You must log in to post.

About this Topic