Version: 4.2.002, by cellarius
Developer Last Online: Apr 2022
Category: Mini Mods -
Version: 4.2.x
Rating:
Released: 03-12-2014
Last Update: 03-13-2014
Installs: 21
Uses Plugins
Additional Files Translations
No support by the author.
What does it do?
This addon simply lets you define one or several users (or usergroups) that will be always shown as online in the Who's Online section and other parts of the forum.
How does it work?
It adds a cron job that updates the last activity entry in the session table for the given users. It is set to run every ten minutes. If your session length is shorter, you will need to adapt the cron job. (You can check your session timeout at AdminCP->Settings->Options->Cookies and HTTP Header Options, it needs to be more than 600, 900 is default).
How to install
Just download, upload the contents of the UPLOAD folder to your forum root, and import the product file of the addon. Then go to AdminCP->Settings->Options and enter the userid(s) of the users (or usergroup ids) you want to be always online in the Cel User Always Online section. Then the users need to log in once manually, to get things started.
Other versions of vB?
This addon should work with every Version of vB4, and most likely on vB3, too (not tested).
Warning: include_once([path]/./includes/cron/cel_user_always_online.php) [function.include-once]: failed to open stream: No such file or directory in [path]/admincp/cronadmin.php on line 116
Warning: include_once() [function.include]: Failed opening '[path]/./includes/cron/cel_user_always_online.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [path]/admincp/cronadmin.php on line 116
where is cel_user_always_online.php file ?
Imported XML file and config in option ACP but didn't show users on Who is online on my forum
I didn't understand this
Quote:
It adds a cron job that updates the last activity entry in the session table for the given users. It is set to run every ten minutes. If your session length is shorter, you will need to adapt the cron job.
I removed cron job function at footer template, it is reason cause error and didn't show users online by IDs ?
Database error in vBulletin 4.2.2:
Invalid SQL:
UPDATE session
SET lastactivity = NOW
WHERE userid IN (1);
MySQL Error : Unknown column 'NOW' in 'field list'
Error Number : 1054
Request Date : Thursday, March 13th 2014 @ 03:38:23 PM
Error Date : Thursday, March 13th 2014 @ 03:38:23 PM
Script : http://www.mystechtronics.net/another/cronadmin.php?do=runcron&cronid=90
Referrer : http://www.mystechtronics.net/another/cronadmin.php?do=modify
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.5.33-31.1