Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Members who have visited today (with last 24 hours option). Details »»
Members who have visited today (with last 24 hours option).
Version: 2.31, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.x Rating:
Released: 11-08-2004 Last Update: 07-23-2005 Installs: 627
 
No support by the author.

This modification is no longer available or supported.

A very simple display of all members who have visited the forum 'today' (i.e. since midnight). I looked at the existing hacks that apparently do this, and they either seemed over complicated or had a lot of problems, so I wrote my own simple version.


The main features of Version 2.xx are ;

1. It displays the list on Forum Home under the "Users online" display.

2. The list view is collapsable, so you just see the number.

3. Invisible users are only displayed to those allowed to see them (with a "*")

4. Users who should display as coloured or bold etc should be displayed correctly. (based on the display usergroup)

5. If you 'hover' over a username it will show the time they were last active.

6. The list is in member name order.


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.


Addons:
ericgtr has created a CMPS module for this hack, you will find the files here.
paul41598 has created a pop-up display instead of the collapsable display, you will find the files here.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #412  
Old 07-02-2005, 01:47 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gizmosheretwo
It was on at first, after your reply it looked like you ask to turn it off, so I turned it off.
It doesn't matter, I decided not to use this as it most probably will just hug the board with queries.

Also having quite a few users login within a day I realise it would use quite a lot of space.
Your choice, but to answer those points - the list is collapsable - it uses 1 line when collapsed, and one select query [on forumhome only as well !) is nothing - it will never be noticed, affect nothing etc.
Reply With Quote
  #413  
Old 07-02-2005, 06:13 PM
JohnGalt JohnGalt is offline
 
Join Date: Jul 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what's the latest version of onlinetoday.php? is it just 2.0? how is it different than the previous version?
Reply With Quote
  #414  
Old 07-02-2005, 07:16 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JohnGalt
what's the latest version of onlinetoday.php? is it just 2.0? how is it different than the previous version?
Yes, its 2.00

To update it to 2.20 change this ;

PHP Code:
require_once('./includes/functions_misc.php');
$now TIMENOW intval($vboptions['hourdif']);
$cutoff vbmktime(000date('m'$now), date('d'$now), date('Y'$now)); 
to this ;

PHP Code:
$tz $bbuserinfo['timezoneoffset'] + $bbuserinfo['dstonoff'];
$now TIMENOW + ($tz 3600) - date('Z',TIMENOW);
$cutoff mktime(000date('m'$now), date('d'$now), date('Y'$now)); 
(and edit the comment from 2.00 to 2.20 )
Reply With Quote
  #415  
Old 07-02-2005, 07:18 PM
gizmosheretwo gizmosheretwo is offline
 
Join Date: Jun 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
Your choice, but to answer those points - the list is collapsable - it uses 1 line when collapsed, and one select query [on forumhome only as well !) is nothing - it will never be noticed, affect nothing etc.
I think it's the skin I'm using paul, it was all in place but nothing was showing witin your hack....

So I took it off, would of been nice if what you say after what I posted doesn't use much queries etc..

Is my code right that I did post, as I had all in place but users visited today didn't appear, If my code is correct that I posted then I could find what's going on..
Reply With Quote
  #416  
Old 07-07-2005, 03:21 AM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul, I updated your code in my file, and Im still having problems. Even at 12:01am, its still showing the users from yesterday. Actually, it shows nothing ( 0 ), even if I log in and back out. The only way I can get it to show users is by uncommenting this line
// $cutoff = $now - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## //
Reply With Quote
  #417  
Old 07-07-2005, 04:34 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paul41598
Even at 12:01am, its still showing the users from yesterday. Actually, it shows nothing ( 0 ), even if I log in and back out.
Sorry but you have confused me here, this seems to contradict itself.

At 12:01am no users seems reasonable as it's likely no one has done anything to update their last activity time past the start time of 12:00 am (you should appear if you start refreshing the page).

I have a bit of debug code I can send you that will display all the timezone relevant information to so I can see how your midnight cutoff is being calculated. I won't have access to it for about 10 hours though.

Uncommenting the line you mention will work, since it's just a simple last 24 hours calculation.
Reply With Quote
  #418  
Old 07-07-2005, 09:26 AM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
Sorry but you have confused me here, this seems to contradict itself.

At 12:01am no users seems reasonable as it's likely no one has done anything to update their last activity time past the start time of 12:00 am (you should appear if you start refreshing the page).

I have a bit of debug code I can send you that will display all the timezone relevant information to so I can see how your midnight cutoff is being calculated. I won't have access to it for about 10 hours though.

Uncommenting the line you mention will work, since it's just a simple last 24 hours calculation.
I just worded it wrong. Umm, with the updated code. after 12:01am, the list shows noone on there. If i log in, refresh, log out, and check the list, it still shows noone there.

Uncommenting the line though will display my name fine. Not sure what the diff is between all that code and the commented line though.

Of course I cant test it once again until tongiht at 12:01am
Reply With Quote
  #419  
Old 07-07-2005, 03:23 PM
Wireless King Wireless King is offline
 
Join Date: Jun 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

While attempting to add this on my forum, I got the error message: "fatal Error". Any idea why?
Reply With Quote
  #420  
Old 07-07-2005, 03:43 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wireless King
While attempting to add this on my forum, I got the error message: "fatal Error". Any idea why?
Nope, and you haven't given much to go on.
Reply With Quote
  #421  
Old 07-08-2005, 02:47 PM
SlipNslide281 SlipNslide281 is offline
 
Join Date: May 2005
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and looks great. But one question. Where do I add the Phrases:

NOW CREATE THE FOLLOWING PHRASES:
******************************
last_online_at_x / Last online at {1}
******************************
active_users_today / Number of Active Users Today
******************************
most_users_ever / Most users ever online on a day was {1} on {2}.
******************************
already_visited_today / The following members have already visited the forums today
Reply With Quote
Reply


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 01:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05332 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (6)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
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete