![]() |
Show firstname not login on auth box when user logged in
It may be elsewhere in the forum, but someone just asked me for this one, so I'd thought I'd share how to have the auth box show the firstname instead of the login when the user is logged in.
1) include/check_useraccount.php add the following line to the list of smarty assignments: $smarty->assign("login_firstname",$user_account["firstname"]); 2) /authbox.tpl line 7: {$lng.txt_logged_in}{$login_firstname}! That's it! Rubyaryat |
Thanks thats what i was looking for, could you please help me how to display first name and last name as well.
thanks |
Here it is, for 4.0.11
authbox.tpl Code:
{$login_firstname}{$login_lastname}{$lng.txt_logged_in} after the {$login_lastname} to get the text "is logged in" into the next line... in check_useraccount.php add line Code:
$smarty->assign("login_lastname",$user_account["lastname"]); Code:
$smarty->assign("login_firstname",$user_account["firstname"]); Cheers, Andy |
andreas04031,
Thanks for help thanks thanks thanks |
Quote:
|
Works in 4.0.18, another great small addon!
Thank you Any idea how to add the username to the Checkout section as well, I am using Jons Ezcheckout.... |
All times are GMT -8. The time now is 10:12 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.