How to display the name when login or sign up successfully

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • zhaohx02
    Staff Sergeant

    • Apr 2010
    • 42

    How to display the name when login or sign up successfully

    Hello!
    I have a question, how to display user name or full name on the top right every page when visitor loged in or signed up successfully?
    (display full name is better)

    and
    can I modify the full name to Nick name? If I modify it, can the sign up work correctly? I have modify the "change password" button text to "submit", then the page cannot display correctly. it takes me long time to
    correct it, so I am afraid to try modify other function style.
    but I want my website looks pretty.

    my website is www.yayalearn.com

    best regards
    Lucy
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    Re: How to display the name when login or sign up successfully

    Currently you can only display the username.

    Add this text where you want it to appear:

    Hello '.$_SESSION['username'].'

    Format it as you like.


    Right click the text, select HTML, and add the following in the text HTML:

    In the Before Tag:

    <?php
    echo '


    in the After Tag,

    ';
    ?>

    Of course, this will only work in those pages that are protected, and only after they have loggen in.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment

    • zhaohx02
      Staff Sergeant

      • Apr 2010
      • 42

      #3
      Re: How to display the name when login or sign up successfully

      Thank you very much. It works now.

      Comment

      Working...
      X