You've listed this tip in the manual to add user info to pages: <? session_start(); print "Welcome, " . $_SESSION['_amember_user']['name_f'] . " " . $_SESSION['_amember_user']['name_l']; ?> or this for the header html file: Welcome, {$smarty.session._amember_user.name_f} {$smarty.session._amember_user.name_l} ! However, if you are not logged in you still see "Welcome, !" How can I make this text ONLY appear when a user is logged in? Thanks, Warren
it is easy PHP: <?phpsession_start();if (isset($_SESSION['_amember_user'])){ print "Welcome, " . $_SESSION['_amember_user']['name_f'] . " " . $_SESSION['_amember_user']['name_l'];}?>
Hi, I also would like the welcome code on my Member page, member.html? I am currently using v3.06. But I can't seem to get the above to work. Could you please advise me, maybe I'm editing the wrong page or area. Thanks
For a template, it should look like Welcome {$smarty.session._amember_user.name_f} {$smarty.session._amember_user.name_l}!