Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Cel User Always Online Details »»
Cel User Always Online
Version: 4.2.002, by cellarius cellarius is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

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).

Download Now

File Type: zip cel_uao_4-2-002.zip (2.5 KB, 125 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
dandanch, elsa23, madness85, Nirjonadda, tbworld

Comments
  #22  
Old 03-14-2014, 04:32 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 03-14-2014, 05:09 AM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
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.
Reply With Quote
  #24  
Old 03-14-2014, 08:13 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
Logging them in again for longer and running cron to see if it works
Quote:
Originally Posted by ForceHSS View Post
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.
Reply With Quote
  #25  
Old 03-14-2014, 08:14 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dandanch View Post
Works pretty good, but it's not showing them as logged in in there profile. Thanks for the mod
I'll look into that.
Reply With Quote
  #26  
Old 03-14-2014, 08:22 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
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.
Reply With Quote
  #27  
Old 03-14-2014, 08:23 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webmastersun View Post
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.
Reply With Quote
  #28  
Old 03-14-2014, 08:29 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webmastersun View Post
The same result.
Since you posted this in the other thread:
Quote:
Originally Posted by webmastersun View Post
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.
Reply With Quote
  #29  
Old 03-14-2014, 08:56 AM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cellarius View Post
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 ?
Reply With Quote
  #30  
Old 03-14-2014, 09:33 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #31  
Old 03-14-2014, 09:51 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New version: 4.2.002

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:25 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.07956 seconds
  • Memory Usage 2,330KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (5)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete