![]() |
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). |
Cellarius, your missing the contents to upload. :)
|
I see the xml file there...
|
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 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:
|
I'll wait until the files are updated, but this looks promising;
|
Sorry, I misclicked when uploading. Got the xml instead of the zip next to it - sorry, folks!
|
It happens to all of us brother. :)
|
any screen shoot please
|
Just ran this on test server and got this error:
Quote:
|
Your cron brings an error
Code:
Database error in vBulletin 4.2.2: |
Hm. It seens something went wrong when packing the thing. That clearly is an old version of the file. Let me check that out. I'm going to remove the file until for a moment.
Really sorry, guys - I should not have whipped this up during my lunch break... |
OK, I just reuploaded. For those who already installed: just replace the includes/cron/cel_user_always_online.php file, no changes in the product xml.
Thanks for your patience ;) |
Quote:
|
Do members need to login first then it keeps them logged in before this works or does it matter
|
Yes, they need to log in once, so there is a entry for them in the session table that can be updated.
|
i logged in all members but only shows me ran the cron did not keep them logged in
|
Logging them in again for longer and running cron to see if it works
|
Works pretty good, but it's not showing them as logged in in there profile. Thanks for the mod:)
|
Removed as it logs them out after a while
|
Quote:
I set UserIDs Code:
18,185,28,36,68,95 and I tried to log in some accounts but it was not working, didn't show usernames on forum home and keep them as logged in. |
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
|
Quote:
Not interested in using cron job for Mod. :) |
Quote:
Quote:
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. |
Quote:
|
Quote:
|
Quote:
|
Quote:
Quote:
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. |
Quote:
must wait for 15 minutes to Cron runs ? |
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. |
New version: 4.2.002
- added option to select usergroups to be always online - fixed inactivity issue on profile page. |
Quote:
It is possible to have a radio button on each user profile so when we can update ( turn on/off status) to show user online immediately ? without waiting for Cron runs. :cool: or other way to show user that don't need to wait them must not login once to forum ? ...etc Just my ideas. Thanks for your new version and I will update next versions and hope it will better than previous. |
You need to log the user in once to create a valid entry in the session table, and you need the cron to simulate user activity. And no, what you suggest is not possible - that's just not how vB works.
If it is really too much trouble for you to install this, enter some userids or usergroup ids in the AdminCP and then log in the users you want this for once, then I'm sorry. This addon does what you asked for in the other thread, in the only way possible that I can think of. If it does not meet your comfort standards, then don't use it. You can always hope someone will come up with a better idea. I really just whipped this up to help you out. I don't even have use for this myself. (And to tell the truth, this "it's too hard to use, make it easier, do it different although I have no clue myself"-attitude reminds me of why I once decided not to do stuff like that anymore...) |
Also one of the ways a user may not appear online, that logged in, and you have them set to stay logged in, is if they manually clicked on the log out button. Because what that does is remove their info from the session table, unless of course Cellarius wrote something it to prevent that, I am not sure though, as I have not looked into the code.
|
Quote:
|
Absolutely, I was just letting people know another reason someone may not appear as online, and try and blame the mod as not working. :)
|
Quote:
|
Quote:
Quote:
I thought have a better way without using cron job and session, just creating a tick button in user profile to update their status immediately and show them on forum home. But if it's impossible with the way vB works then I can accept that. For me, a great add-on is easy in using and full functions what a user needs and can run well on all versions or their configurations. :D I see because this is only your beta version. Thanks Cellarius! |
Once again: Since the session is the thing that vB determines by whether a user is currently online or not, you can't do it without sessions. Just as you can't show threads without the thread table or posts without the posts table. Like it or not.
So, I'm sorry this does not qualify as a great addon on your scale, but I can live with that. Sadly I have to work with what vB makes possible, not what you wish for. You can always file a suggestion in JIRA, and good luck with that. Adding a button in the profile to do what the cronjob does for a single user would not be that hard. But what I really can't follow is why you'd rather click on a button in every user's profile every 15 minutes than to have that done automatically with a cronjob, but hey - each to his own I guess. Do you have partners to click through the nightshifts? Anyway, I still find your attitude extremly annoying. If there was someone out there who coded a perfectly working addon for free on my request, I would surely not continously post that I felt it was too complicated, not comfortable enough and done the wrong way. And now, just when you're finally forcing yourself to at least "appreciate the effort" and mutter a "thank you", you can't resist to state that you can perfectly understand why it is "only beta" and really not a great addon. As I said before, its miserable figures like you that make coders think twice before offering help. Just for the record: This addon is no longer beta, and from now on, is (really) unsupported - maybe I'll do bugfixing if a bug in current functionality should be found. It is what it is now, and will not be improved upon. It works as it is, so take it or leave it. |
Quote:
|
Please can you try add option "How many time show user online" If member does not come back this period than goes to auto offline. Also add option Enable Mod on/off.
|
All times are GMT. The time now is 06:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|