vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Cel User Always Online (https://vborg.vbsupport.ru/showthread.php?t=309473)

cellarius 03-12-2014 11:00 PM

Cel User Always Online
 
1 Attachment(s)
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).

ozzy47 03-13-2014 12:05 PM

Cellarius, your missing the contents to upload. :)

New Joe 03-13-2014 12:44 PM

I see the xml file there...

webmastersun 03-13-2014 01:30 PM

Seem you uploaded missing files

Code:

    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 ?

dandanch 03-13-2014 04:36 PM

I'll wait until the files are updated, but this looks promising;

cellarius 03-13-2014 09:51 PM

Sorry, I misclicked when uploading. Got the xml instead of the zip next to it - sorry, folks!

ozzy47 03-13-2014 10:26 PM

It happens to all of us brother. :)

tanzeelniazi 03-13-2014 10:42 PM

any screen shoot please

dandanch 03-13-2014 10:43 PM

Just ran this on test server and got this error:

Quote:

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 : Friday, March 14th 2014 @ 12:37:17 AM
Error Date : Friday, March 14th 2014 @ 12:37:17 AM
Script : http://localhost/admin/cronadmin.php...on&cronid=1623
Referrer : http://localhost/admin/cronadmin.php?do=modify
Username : admin
Classname : vB_Database
MySQL Version : 5.1.72-cll

ForceHSS 03-13-2014 10:48 PM

Your cron brings an error
Code:

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



All times are GMT. The time now is 03:26 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01159 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete