You last visited on ...
In x-cart, only Admin can know a customer's "last visit" time. Can we let customer see his/her "last visit" time (like phpbb does) ? Is there any variable in x-cart holding the information?
Thanks. Jeff |
Re: You last visited on ...
Quote:
You may get this information by applying the following mod to your x-cart. 1. add those lines at the bottom of auth.php (just above ?> at the end of the file) in the root of your x-cart Code:
if (!empty($login)) { 2. open required template file which appears in customer area, for example, skin1/authbox.tpl and add into template: Code:
{if $last_login_time ne ""}You logged in last time at: {$last_login_time|date_format:$config.Appearance.datetime_format}{/if} |
This useful code should be moved to completed mods.
|
moved
|
Thanks for the code, zaa - it works great! :D
|
All times are GMT -8. The time now is 02:37 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.