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)

ForceHSS 03-14-2014 04:32 AM

To the op if you could make it that it picks all registered members per group you pick and auto loads them then it would work better

webmastersun 03-14-2014 05:09 AM

Quote:

Originally Posted by ForceHSS (Post 2487135)
To the op if you could make it that it picks all registered members per group you pick and auto loads them then it would work better

I agree with this idea or you can add a tick option to in user profile thus we will select "users always online" easily.
Not interested in using cron job for Mod. :)

cellarius 03-14-2014 08:13 AM

Quote:

Originally Posted by ForceHSS (Post 2487074)
Logging them in again for longer and running cron to see if it works

Quote:

Originally Posted by ForceHSS (Post 2487098)
Removed as it logs them out after a while

It definitely works for me. My session timeout is default at 900 sec, i.e. 15 minutes. If your session timeout is less than 600, your users will be logged out, and you'll need to adapt the cron settings to execute it more often.

Also, if you're testing this on a test installation with no real traffic, the cronjob will not be executed and your users will be logged out, too. I've been testing with an auto page refresh addon for chrome, refreshing the forum home page every 10 sec to simulate traffic.

Have my test users logged in on my test board for over seven hours straight now.

cellarius 03-14-2014 08:14 AM

Quote:

Originally Posted by dandanch (Post 2487096)
Works pretty good, but it's not showing them as logged in in there profile. Thanks for the mod:)

I'll look into that.

cellarius 03-14-2014 08:22 AM

Quote:

Originally Posted by ForceHSS (Post 2487135)
To the op if you could make it that it picks all registered members per group you pick and auto loads them then it would work better

I honestly would not have thought that you would want this for whole usergroups (using this on a large scale will spam your Who's online and confuse your users). Since the usergroup is not in the session, it will require an additional query. I'll think about it.

cellarius 03-14-2014 08:23 AM

Quote:

Originally Posted by webmastersun (Post 2487138)
I agree with this idea or you can add a tick option to in user profile thus we will select "users always online" easily.
Not interested in using cron job for Mod. :)

This will not happen. I just coded this since it was requested and I had an idea for a quick fix. If it is too cumbersome for you to add an userid to the list in the options, or it is somehow against your standards to use a cron job in an addon, then just don't use this. Good luck in finding another method.

cellarius 03-14-2014 08:29 AM

Quote:

Originally Posted by webmastersun (Post 2487107)
The same result.

Since you posted this in the other thread:
Quote:

Originally Posted by webmastersun (Post 2486933)
I removed cron job command at footer template, it is reason cause error and didn't show users online by IDs ?

Then, of course, this will not work. But you'll have other issues if your cronjobs do not work. Why in heaven would you remove the cronjob command?

BTW: If you want any answers from me, post in this thread. I will not monitor any other threads, and I don't do support by PN unless I request you contact me. Plus: Note that this addon is marked as beta, and as not supported. Also, you won't get any more answers if you don't mark the addon as installed.

webmastersun 03-14-2014 08:56 AM

Quote:

Originally Posted by cellarius (Post 2487152)
Then, of course, this will not work. But you'll have other issues if your cronjobs do not work. Why in heaven would you remove the cronjob command?

I added back {vb:raw cronimage} to footer template and amazing that why I added 4 UserIDs but only 1 userid is showed always online :)
must wait for 15 minutes to Cron runs ?

cellarius 03-14-2014 09:33 AM

You need to log in every user at least once, so there is an entry in the session table that can be updated. If you don't do that, it will not work.

The cron runs every ten minutes, and you'll notice a difference only if
1) more time goes by than your normal session timeout (since after that time the user would normaly be no longer shown as currently online)
2) that user does not have any other activity during that time, since then he would be shown as currently online anyway.

I wonder how you would even tell if this addon works if you don't wait at least as long as your session timout. (But keep in mind there needs to be activity on your board for the cron to run, as explained above).

Once again: If you want further answers, mark this addon as installed. I have asked you to do that before, and I think its not too much to ask. I will ignore further questions until you do that.

cellarius 03-14-2014 09:51 AM

New version: 4.2.002

- added option to select usergroups to be always online
- fixed inactivity issue on profile page.


All times are GMT. The time now is 11:28 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.01144 seconds
  • Memory Usage 1,744KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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