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
__________________
Rubymods.com - Your X-Cart services partner for over 9 years.
Modules offered: FedEx labels, Live currency rates, GeoIP, Order Audit, Multiple e-goods.
X-Cart Store Hosting, project management and affiliates program available.
4.2.3 gold [Unix]
|