alexis78i Member Jun 28, 2019 #1 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.
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.
Cupara Well-known member Jun 29, 2019 #2 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.
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.