XF 2.1 How to update user last activity?

alexis78i

Member
Hello.
I have use this methods in my app

PHP:
\XF::start('/hc');
$app = \XF::setupApp('XF\Pub\App');
$app->start();
$s = $app->session();
$uid = $s->get('userId');

What method can I use to update the user's last activity?
Thank you.
 
You would use this in your file instead now:
PHP:
// Session activity for location purposes
    public static function getActivityDetails(array $activities)
    {
        return \XF::phrase('gt_faq_activity');
    }

Just add the function to the end of your file then your done.
 
Top Bottom