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)

webmastersun 03-14-2014 10:35 AM

Quote:

Originally Posted by cellarius (Post 2487155)
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).

I think you should improve it to easy for users. According to me, it's rather complex for using and controlling. May be I set session time out higher than you thus I got result not as my expectation.
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.

cellarius 03-14-2014 11:11 AM

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

ozzy47 03-14-2014 11:24 AM

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.

cellarius 03-14-2014 11:28 AM

Quote:

Originally Posted by ozzy47 (Post 2487169)
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.

No, I did not provide for that. If people specifically log out, then this is probably what they want to do (and it also is the way to end being permanently online).

ozzy47 03-14-2014 11:30 AM

Absolutely, I was just letting people know another reason someone may not appear as online, and try and blame the mod as not working. :)

cellarius 03-14-2014 11:31 AM

Quote:

Originally Posted by ozzy47 (Post 2487174)
Absolutely, I was just letting people know another reason someone may not appear as online, and try and blame the mod as not working. :)

And right you are :)

webmastersun 03-14-2014 11:48 AM

Quote:

Originally Posted by ozzy47 (Post 2487169)
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.

I think so, It may be reason why user didn't appear online :)

Quote:

Originally Posted by cellarius (Post 2487167)
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...)

I thought it can be easier but no, it depends on vB works, I see that and appreciated your efforts although it's in beta version.

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!

cellarius 03-14-2014 12:07 PM

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.

webmastersun 03-14-2014 12:26 PM

Quote:

Originally Posted by cellarius (Post 2487178)
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.

Exactly :D and of course, everyone is always to find a new & better way for them and the same to me, I will use new add-on if it suits my requirements better yours. But at this time, no more add ons on vB can do better than yours thus I will still use yours although it's not as my expectation ;)

Nirjonadda 03-14-2014 08:45 PM

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 03:32 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
  • Page Generation 0.01120 seconds
  • Memory Usage 1,759KB
  • 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
  • (6)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