The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Node.js
#3
I know at this point, table updates are somewhat undesired because it can make updates a little more complicated. But I've been racking my brain trying to figure out how to get the elapsed time since the user logs in, AFTER they have logged in. The Login routine modifies the last login seemingly during the login process and overwrites the last login period.

If you WERE going to be poking at the login script, then something I would REALLY like is to have a column in the table where the "last login" is copied (maybe called "last visit" or whatever, doesn't really matter) before the last login field gets updated. This way after a user has logged in, you can determine how many hours, days, whatever it has been since they were last on the side, and would allow custom content based on that interval.
  Reply


Messages In This Thread
Node.js - by astropos - 02-29-2016, 12:55 PM
Node.js - by mudmin - 03-05-2016, 03:39 PM
Node.js - by brian - 03-07-2016, 01:16 PM
Node.js - by astropos - 03-07-2016, 07:44 PM
Node.js - by brian - 03-07-2016, 09:37 PM
Node.js - by brian - 03-07-2016, 11:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)