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
  #362  
Old 05-30-2003, 04:14 AM
SmEdD's Avatar
SmEdD SmEdD is offline
 
Join Date: Mar 2003
Location: Ontario, Canada
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright I installed it. It worked mint. Now it's a new day and nothing shows up and it's 0 visitors yet there have been like 20 visits. Oh and the record is still there. And the .php file dosn't show anything also.
Reply With Quote
  #363  
Old 05-31-2003, 02:27 AM
SmEdD's Avatar
SmEdD SmEdD is offline
 
Join Date: Mar 2003
Location: Ontario, Canada
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To reduce this to one query use this modifacition.

Find:
PHP Code:
// today online hack begin 
Add after:
PHP Code:
    $tempupdate=$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'"); 
Find:
PHP Code:
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'"); 
Replace with: (Do at both locations)
PHP Code:
  $tempupdate
Reply With Quote
  #364  
Old 05-31-2003, 03:13 AM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont think you will always save 1 query with that. Notice that both
PHP Code:
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'"); 
are within conditional IFs which are not always true. Your modification, however, always runs that one query.

I could be wrong of course
Reply With Quote
  #365  
Old 05-31-2003, 04:29 PM
SmEdD's Avatar
SmEdD SmEdD is offline
 
Join Date: Mar 2003
Location: Ontario, Canada
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya thoes ifs are pretty much aways gonna run. If they didn't the online today hack wouldn't.
Reply With Quote
  #366  
Old 05-31-2003, 04:35 PM
SmEdD's Avatar
SmEdD SmEdD is offline
 
Join Date: Mar 2003
Location: Ontario, Canada
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh and neither have a else tag wich means they arn't a option
Reply With Quote
  #367  
Old 06-01-2003, 12:16 AM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SmEdD:

This doesn't make any sense. Just because there is no ELSE does not imply that the IF clause is always executed.

And fact is, it is not always executed. Only when the Who-Was-Online-List changes, the query is executed. Otherwise it is read from cache.

Your modification, however, always runs the query - even when it is not necessary.
Reply With Quote
  #368  
Old 06-02-2003, 01:09 PM
Linus Linus is offline
 
Join Date: Dec 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I forgot how to change the colours of the users online (eg. admin get diff. colour) can anyone remind me how ? Thanks
Reply With Quote
  #369  
Old 06-11-2003, 02:35 AM
Hostc
Guest
 
Posts: n/a
Default

I don't know if this has been posted before but when I click on the Number of Active Users Today the onlinetoday.php page just comes up as a blank page?
useing the Version with usernames on extra site (onlinetoday.php)

I've double checked the code and haven't found anything wrong that I did during the installaion.
Reply With Quote
  #370  
Old 06-11-2003, 05:06 AM
S.Shady's Avatar
S.Shady S.Shady is offline
 
Join Date: Apr 2003
Location: Cleveland, Ohio
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine for me
you upload the php file to your forums dir if you used the file ?
Reply With Quote
  #371  
Old 06-12-2003, 03:55 AM
Xube's Avatar
Xube Xube is offline
 
Join Date: Nov 2001
Location: private
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work for vBulletin 2.3.0? Is there an update that's compatible with 2.3.0?
Reply With Quote
  #372  
Old 06-12-2003, 04:01 AM
Crinos's Avatar
Crinos Crinos is offline
 
Join Date: Oct 2001
Location: Los Angeles, CA
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works in 2.3.0
Reply With Quote
  #373  
Old 06-12-2003, 10:36 AM
lostsoul2k lostsoul2k is offline
 
Join Date: Jun 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ARGG i get this annoying thing it shows the number of active users perfect and it also shows all Most users ever online on a day was 3 on 06-11-2003. when i first installed but for some reson it doesen't show the usernames of that user ??? do you no how to fix im also using 2.3.0 and the Emerge skin from vbskinz.com ??
Reply With Quote
  #374  
Old 06-12-2003, 12:49 PM
Xube's Avatar
Xube Xube is offline
 
Join Date: Nov 2001
Location: private
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 06:01 AM Crinos said this in Post #371
It works in 2.3.0

I'm running vB 2.3.0 but for some reason I installed it but all I get is zeros. It's not adding any stats to the readout.

Quote:
Number of Active Users Today: 0
Most users ever online on a day was 0 on 06-12-2003. | The following members have already visited the Board today:
Any hints to what may be wrong?
Reply With Quote
  #375  
Old 06-12-2003, 01:33 PM
Xube's Avatar
Xube Xube is offline
 
Join Date: Nov 2001
Location: private
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, it appears to be a misunderstanding on my part of how the invisible users thing works.

From the hack docs:
Quote:
Hint: If you wish that "Number of Active Users Today:" only counts Users who are not invisible,
replace $numbertodayonline with $todayonline. (Admins always see the right number!)
Wording this differently, it says that...


if we want the "Number of Active Useres Today" area to only count users that are visible, replace $numbertodayonline with $todayonline.


...So what do we do if we want the "following members have already visited the Board today" list of those that visited/were online during the given day to INCLUDE the invisible members on that list?
Reply With Quote
  #376  
Old 06-12-2003, 01:48 PM
S.Shady's Avatar
S.Shady S.Shady is offline
 
Join Date: Apr 2003
Location: Cleveland, Ohio
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dont change it if you want the invisable to be on there. its set up like that. the change is to stop invisable from being there
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 07:33 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.06513 seconds
  • Memory Usage 2,367KB
  • 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
  • (5)bbcode_php
  • (3)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
  • (4)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
  • (15)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