The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
new_user_online setting - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.4 (https://userspice.com/forums/forumdisplay.php?fid=27)
+--- Thread: new_user_online setting (/showthread.php?tid=1323)



new_user_online setting - sparky - 02-01-2019

Not sure if you would consider this a bug or not but in users/includes/header.php: if $settings->track_guest == 1 you are setting new_user_online($user_id) however when the user logs-out, you are not removing them from the users_online table.

I see you have a remove user based on time (delete_user_online: users/helpers/users_online.php) but cant find where that may be used.

I have a solution in place to remove the logged in user when they logout in the usersc/scripts/just_before_logout.php file, but shouldn't you be removing them since you are creating this setting?


RE: new_user_online setting - Brandin - 02-03-2019

Hi Sparky,

This used to be called whenever you visited the admin.php - I am not sure if this was carried over to the 4.4 Admin Portal.

Brandin.