vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Members who have visited the forum (Today or last 24 hours). (https://vborg.vbsupport.ru/showthread.php?t=82769)

Paul M 07-01-2005 01:12 AM

Quote:

Originally Posted by hellsatan
My plugin is active, and it was working when I installed the hack yesterday ;)

It just stopped working for some reason :p

Satan

Did you try refreshing the display ? if it's your first visit of the day, your last activity timestamp is updated after the hack runs. :)

If that doesn't work, check your timezone settings, including the server. FYI: I have a little debug plugin that checks the TZ settings, but it's at home, and I'm at work.

Chris M 07-01-2005 10:23 AM

I know about the "first visit of the day" - I can assure you it is not that ;)

Must be my timezone settings then - I'll fiddle about and see if I can get it to work :ermm:

Satan

Chris M 07-01-2005 10:24 AM

Aha - Upon further investigation, turning on the DST settings in the vB Options causes this to die :p

Satan

Dream 07-04-2005 07:35 AM

thanks, pretty cool, working fine

does this get users on the last 24 hours or the current day?

Paul M 07-04-2005 01:36 PM

Quote:

Originally Posted by Dream
does this get users on the last 24 hours or the current day?

..
Quote:

Originally Posted by first post
This plugin adds a simple display of all members who have visited the forum 'today' (i.e. since midnight).

<snip>

If you prefer, then there is an option to make this hack display a rolling 24 hours - un-comment the relevant line in the code.

:)

Dream 07-05-2005 02:43 AM

:P

you could make it so it shows the day

Total users that have visited today (7/4/2005): 10

Paul M 07-05-2005 07:15 AM

Quote:

Originally Posted by Dream
:P

you could make it so it shows the day

Total users that have visited today (7/4/2005): 10

Just change that part of the forumhome template to ;

PHP Code:

Total users that have visited today ($datenow) : $totaltoday 

:)

Dream 07-08-2005 09:15 PM

i wonder if this is getting members on the forum since midnight using my gmt settings... say my forum is at gmt -6, and my server is gmt, is the " since midnight users" being taken using gmt -6? it seems its resetting the list at my gmt midnight, but it shows alot of people that im not sure they visited after that

Paul M 07-08-2005 10:52 PM

I don't quite follow you, but for each user, it should reset at their midnight.

Dream 07-09-2005 04:36 AM

their midnight? can I change it to the forum midnight?

Cloudrunner 07-09-2005 10:22 AM

Quote:

Originally Posted by Dream
their midnight? can I change it to the forum midnight?

yes, change the line
PHP Code:

$cutoff mktime(000date('m'$now), date('d'$now), date('Y'$now)); 

to read
PHP Code:

$cutoff mktime(000date('m'), date('d'), date('Y')); 

in the plugin itself. This will set the cutoff time to your forums timeset.

If you do this then you can comment the $tz line and the $now line as they will not be used for this if you go and use the forums time.

Borimikan 07-09-2005 01:26 PM

Ok I install it... now I have a question, and sorry bcause Im new.... Where the XML file goes to?

Paul M 07-09-2005 02:40 PM

You upload it as a plugin.

ACP > Plugin System > Download / Upload Plugins

theArchitect 07-16-2005 12:19 AM

As always great work.

Installed on 3.5.0 beta 4.

ack 07-20-2005 11:47 PM

Thanks! Worked great. ^_^

Dream 07-21-2005 04:38 AM

Quote:

Originally Posted by Cloudrunner
PHP Code:

$cutoff mktime(000date('m'), date('d'), date('Y')); 


uhm that didnt work, this didnt work either

PHP Code:

$cutoff mktime(000vbdate('m'), vbdate('d'), vbdate('Y')); 

there are still members in the list with "last visit" as "yesterday" in their profiles

edit: well I updated my version with the one in this thread and it seems to be working the way I wanted, thanks

Boofo 07-22-2005 05:03 AM

Quote:

Originally Posted by Paul M
You do realise the original version resets each midnight ?

If we uncomment the line for 24 hours rolling do we need to comment out the line before it?

Also, does this work according to the user's midnight or the server's?

Paul M 07-22-2005 11:48 AM

Quote:

Originally Posted by Boofo
If we uncomment the line for 24 hours rolling do we need to comment out the line before it?

No, it simply over-rides the lines above.

Quote:

Originally Posted by Boofo
Also, does this work according to the user's midnight or the server's?

Each users midnight.

Boofo 07-22-2005 04:21 PM

Quote:

Originally Posted by Paul M
No, it simply over-rides the lines above.

Each users midnight.

Thank you, sir. Excellent!

Paul M 07-22-2005 07:12 PM

Just one small point - the two questions are mutually exclusive.

If you uncomment the 24 hr option then obviously the midnight question is irrelevant (or vice versa). :)

Boofo 07-22-2005 09:29 PM

Quote:

Originally Posted by Paul M
Just one small point - the two questions are mutually exclusive.

If you uncomment the 24 hr option then obviously the midnight question is irrelevant (or vice versa). :)

Not really. The server time is 6 hours off of my timezone. So knowing if it is set to server midnight or usertime midnight is a relevant question. ;)

cecdah 07-22-2005 10:30 PM

Installed in two minutes, and working like a charm. Thanks a lot. :)

Neutral Singh 07-24-2005 02:14 AM

gr8!! ** Aman Clicks Installed **

mvigod 07-25-2005 07:37 PM

shouldn't the 24 hour roll variable be TIMENOW rather than $now which is what you have? I installed this and it shows all users registered rather than from past 24 hours. Changing this to TIMENOW yields the correct result.

Paul M 07-25-2005 09:18 PM

Quote:

Originally Posted by mvigod
shouldn't the 24 hour roll variable be TIMENOW rather than $now which is what you have? I installed this and it shows all users registered rather than from past 24 hours. Changing this to TIMENOW yields the correct result.

Indeed it should have been - $now was correct before the last update of the code, when the $now variable was removed - but I forgot to change that 24hr line - it was actually fixed and uploaded yesterday morning - but obviously you wouldn't know this - so thanks for noticing and pointing it out. :)

Boofo 07-26-2005 09:24 PM

I uncommented the 24 hour roll-over code and it isn't rolling over now like it should. I have 2 vistors from yesterday still showing up and online today.

Paul M 07-26-2005 10:23 PM

Quote:

Originally Posted by Boofo
I uncommented the 24 hour roll-over code and it isn't rolling over now like it should. I have 2 vistors from yesterday still showing up and online today.

I am assuming you have read the previous post and have the correct version, not the one using $now.

Other than that I don't understand what your problem is. You are bound to see visitors from yesterday since it goes back 24 hours (so at 6pm today, you will have visitors back to 6pm yesterday).

Boofo 07-26-2005 10:30 PM

Quote:

Originally Posted by Paul M
I am assuming you have read the previous post and have the correct version, not the one using $now.

Other than that I don't understand what your problem is. You are bound to see visitors from yesterday since it goes back 24 hours (so at 6pm today, you will have visitors back to 6pm yesterday).

I thought it changed at the user's midnight. I am using the latest version 3.31.

Paul M 07-27-2005 11:23 AM

Quote:

Originally Posted by Boofo
I thought it changed at the user's midnight. I am using the latest version 3.31.

You seem to be confusing two options. It can run in one of two modes.

1. Members who visited today (i.e. from midnight) - which is the default as supplied.

2. Members who visited in the last 24 hours - which requires you to uncomment an extra line.

You appear to have uncommented the line for mode 2, but are expectiing mode 1.

evss 07-27-2005 02:54 PM

Installed!
thank you.

Boofo 07-27-2005 07:46 PM

Quote:

Originally Posted by Paul M
You seem to be confusing two options. It can run in one of two modes.

1. Members who visited today (i.e. from midnight) - which is the default as supplied.

2. Members who visited in the last 24 hours - which requires you to uncomment an extra line.

You appear to have uncommented the line for mode 2, but are expectiing mode 1.

Now that makes more sense. My misunderstanding then. Sorry for the confusion, sir. ;)

h75 07-27-2005 09:06 PM

*clicks install* *clicks thankyou* :)

FleaBag 07-27-2005 10:11 PM

Much appreciated hack, and survived the template reverts for RC1. Thanks. :)

Neal-UK 07-28-2005 11:26 PM

Quote:

Originally Posted by Paul M
Click install then please. :)

i got a 'invalid thread specified' during install and it's all blank on forumhome although the information is there, just not the members.

Neal-UK 07-28-2005 11:30 PM

Quote:

Originally Posted by Paul M
<shrug> It works for me and everyone else - is it listed, and active in the plugin manager.

ignore last, i uploaded it in wrong place, not plugins, works fine!

GrendelKhan{TSU 07-30-2005 03:03 AM

3.5 RC1 here....no problems.
good stuff :D

<<< clicks INSTALL :) ;)

Chris_D 07-30-2005 10:28 AM

Looks cool. Nice work :)

[high]* Chris_D clicked Install.[/high]

XtremeOffroad 08-02-2005 10:53 PM

Installed and works fantastic, Well with only 1 member it's hard to tell but in time hopefully the board will grow.
Thanks.

Neal-UK 08-02-2005 11:43 PM

Quote:

Originally Posted by XtremeOffroad
Installed and works fantastic, Well with only 1 member it's hard to tell but in time hopefully the board will grow.
Thanks.

i'll join and say hello although i have a citroen saxo, does that count?

Snake 08-04-2005 02:32 PM

Paul this hack is lovely although is it possible to make it view to the administrators only? I really don't want it shown up to the other members except the admins.


All times are GMT. The time now is 05:23 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.03473 seconds
  • Memory Usage 1,835KB
  • 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
  • (5)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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