Displaying a user welcome message

Discussion in 'Customization & add-ons' started by patrick_6, Sep 5, 2006.

  1. patrick_6

    patrick_6 New Member

    Joined:
    Aug 22, 2006
    Messages:
    9
    So far I have been doing pretty good as far as customization goes. However, I haven't looked to far into the smarty stuff. This is probably pretty easy:

    I just want to know how to display user info when they login on the main page. I was trying: Welcome {u.login|escape}, but didn't seem to be working. I want to display their first name. Whats the code for smarty? Do I have to update member.php?

    thanks in advance. Love the script.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
  3. patrick_6

    patrick_6 New Member

    Joined:
    Aug 22, 2006
    Messages:
    9
    im an idiot. thanks.
  4. vbskins

    vbskins New Member

    Joined:
    Sep 5, 2006
    Messages:
    4
    This code dont work on any amember pages only on non amember pages

    <?

    session_start();

    print "Welcome, " . $_SESSION['_amember_user']['name_f'] . " " . $_SESSION['_amember_user']['name_l'];

    ?>

Share This Page