Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Mystics Mystics is offline
Developer Last Online: Jun 2015 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-10-2002 Last Update: Never Installs: 339
 
No support by the author.

Hack Name: Who was online today
Hack Version: 1.0.2
For vB Version:: 2.x
Originally Created by: genial @ Skats Board (Contact)
Documentation, Translation, a few changes and posted by: Mystics

Description:
This Hack adds something like the "Currently Active Users:"-Feature of vBulletin.
The difference is, instead of showing the users, who are currently online, it shows
all Users, who were online on a day and it also displays "Most users ever online on a day".

Summary of the Features:
  • Shows "Number of Active Users Today"
  • Shows "Most users ever online on a day"
  • Shows last online time for each User while pointing the Mouse Cursor on it's name (=mouseover) in the list
Important: The Hack only works 100% correct, when each member is in the same time zone as the Server!

Files to edit: index.php
Templates to edit: forumhome
New Templates: forumhome_todayloggedinusers, forumhome_todayloggedinuser

I have attached the Install Instructions in a Text File.
The Instruction is in English and in German.

I will attach a Screenshot in a Reply to this Thread!

Post any Questions into this Thread!

Updates in 1.0.1: Inserted the two new templates into the template precaching (first step)

Updates in 1.0.2: Fixed a little Bug with the "Most users ever online on a day"-Count
(Replace '$maxusers[2] = $todayonline;' with '$maxusers[2] = $numbertodayonline;' in index.php)

Info: You can find an other version of this Hack here. In this other version the usernames of the members, who were already online today, are not shown on the Forum-Mainpage; the names are shown in an extra File (like online.php), onlinetoday.php (Screenshot).

So, depending on which version of the Hack you prefer, you have to download this:
Version with usernames on the main Site of the Forum

or this:
Version with usernames on extra site (onlinetoday.php)

Regards,
Mystics

Show Your Support

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

Comments
  #17  
Old 01-11-2002, 08:58 PM
Mystics's Avatar
Mystics Mystics is offline
 
Join Date: Oct 2001
Location: Germany
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by eva2000
1. is it possible to have the list of usernames visited today in a popup linked to the Number of active users today text ? my list page would be too long with 200 - 500 currentyly active + the list of users visited today
OK, now I have finished the changes you wanted.

I have attached the Instructions and a new PHP-File in a ZIP File to this Posting. Please let me now if it's that, what you wanted.

Info: My attachment does not only contain the changes to the Original Hack....it's a complete new Hack, so it will be the best, you remove the other version of the hack.

[UPDATE]
I have forgotten something in onlinetoday.php (Moderators have not been highlighted), thanx to genial for the Fix!

I have replaced the Attachment with the new version.

[UPDATE2]
Max users and date are now showing correct.

[UPDATE3]
Fixed problem with the "Most Users"-Count
(Replace '$maxusers[2] = $todayonline;' with '$maxusers[2] = $numbertodayonline;' in index.php & onlinetoday.php)

[UPDATE4]
Fixed the Query within onlinetoday.php and index.php
(includes now the User's Timezone)
Reply With Quote
  #18  
Old 01-11-2002, 09:44 PM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is such a cool hack! I installed the new version with the screen for Who Was Online. I love it. I do have one small problem. The other admin and myself are showing up as bold and italic on that page. But, the moderator on the page isn't bold for some reason. I'll see if I can figure it out. But, any help would be appreciated.

I fixed it. I just added user group 7 to the or statement in the highlighting section in onlinetoday.php.
Reply With Quote
  #19  
Old 01-11-2002, 09:58 PM
genial's Avatar
genial genial is offline
 
Join Date: Nov 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FWC
But, the moderator on the page isn't bold for some reason. I'll see if I can figure it out. But, any help would be appreciated.
sorry about mystics, he has forgotten the moderator-query in onlinetoday.php.

search for:
PHP Code:
if (!$usergroupdef['canwhosonline']) {
  
show_nopermission();

and place under:
PHP Code:
  $forummoderators=$DB_site->query('SELECT user.userid,user.username,moderator.forumid
                                  FROM moderator
                                  LEFT JOIN user
                                  ON (moderator.userid=user.userid)
                                  ORDER BY user.username'
);
  while (
$moderator=$DB_site->fetch_array($forummoderators)) {
    
$imodcache["$moderator[forumid]"][] = $moderator;
    
$mod["$moderator[userid]"] = 1;
  }
  
$DB_site->free_result($forummoderators);
  unset(
$moderator); 
but i have not tested this modification.
Reply With Quote
  #20  
Old 01-11-2002, 10:37 PM
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
Location: Manhattan, New York
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, I really enjoy it
Reply With Quote
  #21  
Old 01-11-2002, 10:44 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, works well!
Reply With Quote
  #22  
Old 01-12-2002, 02:36 AM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mystics
OK, now I have finished the changes you wanted.

I have attached the Instructions and a new PHP-File in a ZIP File to this Posting. Please let me now if it's that, what you wanted.

Info: My attachment does not only contain the changes to the Original Hack....it's a complete new Hack, so it will be the best, you remove the other version of the hack.

[UPDATE]
I have forgotten something in onlinetoday.php (Moderators have not been highlighted), thanx to genial for the Fix!

I have replaced the Attachment with the new version.
off to add it now
Reply With Quote
  #23  
Old 01-12-2002, 02:57 AM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great it works perfectly.. screen cap of today so far
Reply With Quote
  #24  
Old 01-12-2002, 03:07 AM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

another request... how would you allow

registered and guest users to view the onlinetoday.php page ? right now i have online.php only mod and admin viewable and it seems onlinetoday.php is the same..

i'd like

online.php to retain it's normal mod /admin only viewing

but

onlinetoday.php to be viewabe by guest and registered users as well as mods/admin
Reply With Quote
  #25  
Old 01-12-2002, 03:30 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by eva2000
another request... how would you allow

registered and guest users to view the onlinetoday.php page ? right now i have online.php only mod and admin viewable and it seems onlinetoday.php is the same..

i'd like

online.php to retain it's normal mod /admin only viewing

but

onlinetoday.php to be viewabe by guest and registered users as well as mods/admin
Eva, I commented the following out at line 15 of of onlinetoday.php and it did what you wanted:
PHP Code:
if (!$usergroupdef['canwhosonline']) {
  
show_nopermission();

Reply With Quote
  #26  
Old 01-12-2002, 03:43 AM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FWC
Eva, I commented the following out at line 15 of of onlinetoday.php and it did what you wanted:
PHP Code:
if (!$usergroupdef['canwhosonline']) {
  
show_nopermission();

thanks
Reply With Quote
  #27  
Old 01-12-2002, 06:01 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by eva2000
thanks
You're welcome.
Reply With Quote
  #28  
Old 01-12-2002, 06:34 AM
SgtSling SgtSling is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for some reason my

Most users ever online was 35 on 01-12-2002 at 08:31 AM.

keeps changing to whatever I have on at that given time

here is the code I am using for that

<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="6"><a href="online.php?s=$session[sessionhash]"><normalfont color="{categoryfontcolor}"><b>Currently Active Users</b></normalfont></a><normalfont color="{categoryfontcolor}"><b>: $totalonline</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan="6"><smallfont>
<nobr>There are currently $numberregistered members and $numberguest guests on the boards.</nobr> |
<nobr>Most users ever online was $recordusers on $recorddate at $recordtime.</nobr><br>
$activeusers
$birthdaybits</smallfont></td>
</tr>

Any clues?
Reply With Quote
  #29  
Old 01-12-2002, 08:07 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found a slight problem with onlinetoday.php when the day changed. Max users and date is fine on forumhome, but it's showing todays information on onlinetoday.php instead of the max number. I looked at Eva's board and it's doing the same thing. I've been tinkering with the code. I've managed to break it several times, but I haven't gotten it right yet.
Reply With Quote
  #30  
Old 01-12-2002, 09:03 AM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FWC
I found a slight problem with onlinetoday.php when the day changed. Max users and date is fine on forumhome, but it's showing todays information on onlinetoday.php instead of the max number. I looked at Eva's board and it's doing the same thing. I've been tinkering with the code. I've managed to break it several times, but I haven't gotten it right yet.
yeah noticed that on my forums too

waiting for a fix
Reply With Quote
  #31  
Old 01-12-2002, 11:04 AM
genial's Avatar
genial genial is offline
 
Join Date: Nov 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in the near future i will make a new release of this hack.

the new release includes all existing features and an extra todayonline-page in "who is online"-style. the display on forumhome will be dis- or enabled in admin-cp options. and specially guests will be counted.
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 06:37 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.05849 seconds
  • Memory Usage 2,383KB
  • Queries Executed 30 (?)
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
  • (4)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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