Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Who Was Online Today on forums Details »»
Who Was Online Today on forums
Version: 1.00, by Gary King Gary King is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Version: 3.0.4 Rating:
Released: 01-02-2004 Last Update: 03-16-2004 Installs: 527
 
No support by the author.

PLEASE CLICK THE INSTALL BUTTON IF INSTALLED!

What does this hack do?

It shows the users who visited your forums in the last 24 hours (or today). This hack works similiarly like the one released for vBulletin 2.

NOTE: If you want to show 'Who was online today' on a separate page from forumhome, then download instructions-newpage.txt and onlinetoday.php instead of instructions-regular.txt

Modifications
  • 1 file modification
  • 3 template modifications
  • 0 queries to run

Features
  • supports and uses phrases
  • usernames are formatted properly
  • invisible users only show to people who are supposed to see them (admins and whoever else you allowed)
  • integrated (makes it so that the Who Was Online bar is now collapseable

Screenshots
Look below

Credits: Thanks goes to Mystics, where this hack is based on his

Show Your Support

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

Comments
  #72  
Old 01-09-2004, 08:46 PM
Zeitgeist Zeitgeist is offline
 
Join Date: May 2002
Location: Europe
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've used another hack from vBulletin.nl now(http://www.vbulletin.nl/community/showthread.php?t=1475). At the moment it's working perfectly. I'll see what will happen if we reach 0:00 ... This hack here resets the statistics every day on this time.
Reply With Quote
  #73  
Old 01-09-2004, 11:29 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zeitgeist
I've used another hack from vBulletin.nl now(http://www.vbulletin.nl/community/showthread.php?t=1475). At the moment it's working perfectly. I'll see what will happen if we reach 0:00 ... This hack here resets the statistics every day on this time.
are you on vb3 rc2???
Reply With Quote
  #74  
Old 01-10-2004, 04:36 AM
Spencer F. Spencer F. is offline
 
Join Date: Dec 2003
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this error when installing:

Database error in vBulletin 3.0.0 Release Candidate 2:

Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, 0, 'last_online_at_x', 'Last online at {1}', 1)
mysql error: Duplicate entry 'last_online_at_x-0-1' for key 2

mysql error number: 1062

Date: Saturday 10th of January 2004 12:35:53 AM
Script: http://www.musicbanter.com/test/admi...php?do=install
Referer: http://www.musicbanter.com/test/admi...php?do=install
Username: admin
IP Address: ***

But I think it worked? Is this normal?
Reply With Quote
  #75  
Old 01-10-2004, 10:16 AM
P.Jackson P.Jackson is offline
 
Join Date: Sep 2003
Location: Newcastle,Uk
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works for me good job
Reply With Quote
  #76  
Old 01-10-2004, 03:11 PM
Kewl Kewl is offline
 
Join Date: Jan 2002
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zeitgeist
Sorry, it doesn't work. It resets the date to 01-01-1970 and hides the most users ever online on a day completly.
hmmm same thing for me

did this get fixed? or does it fix itself at midnight?

doesn't give a total either

thanks
Reply With Quote
  #77  
Old 01-10-2004, 03:26 PM
Zeitgeist Zeitgeist is offline
 
Join Date: May 2002
Location: Europe
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eXtremeTim
are you on vb3 rc2???
Yes, why?
Reply With Quote
  #78  
Old 01-10-2004, 04:40 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spencer F.
I got this error when installing:

Database error in vBulletin 3.0.0 Release Candidate 2:

Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, 0, 'last_online_at_x', 'Last online at {1}', 1)
mysql error: Duplicate entry 'last_online_at_x-0-1' for key 2

mysql error number: 1062

Date: Saturday 10th of January 2004 12:35:53 AM
Script: http://www.musicbanter.com/test/admi...php?do=install
Referer: http://www.musicbanter.com/test/admi...php?do=install
Username: admin
IP Address: ***

But I think it worked? Is this normal?
No that shouldn't happen, and as for the problem with counting the most users online on one day record, I will see what I can do to fix this
Reply With Quote
  #79  
Old 01-10-2004, 06:49 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this who was online today code.

This is the exact code from my index.php file for it so.

PHP Code:
// ### WHO WAS ONLINE TODAY ########################
// $maxusers = unserialize($datastore['maxloggedin']);
 
if (intval($maxusers['maxonline']) <= $totalonline)
 {
  
$maxusers[0] = $totalonline;
  
$maxusers[1] = TIMENOW;
 }
$todayloggedinusers "";
$numbertodayonline 0;
$numbertodayonlineinvisible 0;
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, options FROM ".TABLE_PREFIX."user 
       WHERE lastactivity > " 
. (mktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-$timeoffset)*3600)) . 
       ORDER BY username"
);
       
while (
$todayuser=$DB_site->fetch_array($todayusers))
{
 
$todayuser['options'] = intval($todayuser['options']);
 foreach(
$_USEROPTIONS AS $optionname => $optionval)
 {
  
$todayuser["$optionname"] = iif($todayuser['options'] & $optionval10);
 }
 
$numbertodayonline++;
 
$invisibleuser '';
 
$userid $todayuser['userid'];
 
$lastactivetime vbdate($vboptions['timeformat'], $todayuser[lastactivity]);
 
 if (
$todayuser['invisible']==and $bbuserinfo['usergroupid']!=6)
 {
  
$numbertodayonlineinvisible++;
  continue;
 }
 if (
$todayuser['invisible'] == 1)
 { 
// Invisible User but show to Admin
  
$invisibleuser '*';
 }
 
$username fetch_musername($todayuser);
 
 if (!
$todayloggedinuser)
 {
  eval(
"\$todayloggedinuser = \"".fetch_template('forumhome_todayloggedinuser')."\";");
 }
 else
 {
  eval(
"\$todayloggedinuser .= \", ".fetch_template('forumhome_todayloggedinuser')."\";");
 }
}
$DB_site->free_result($todayusers);
if (
$bbuserinfo[usergroupid] == 6) {
 
$todayonline $numbertodayonline;
} else {
 
$todayonline $numbertodayonline $numbertodayonlineinvisible;
}
 if (
intval($maxusers['maxonline']) <= $totalonline) {
 
$maxloggedin $maxusers[0] . " " $maxusers[1] . $numbertodayonline " TIMENOW;
 
$maxusers[2] = $numbertodayonline;
 
$maxusers[3] = TIMENOW;
 
$DB_site->query("REPLACE INTO " TABLE_PREFIX "datastore (title, data) VALUES ('maxloggedin', '" addslashes(serialize($maxusers)) . "')");
}
$todayrecordusers $maxusers[2];
$todayrecorddate vbdate($vboptions['dateformat'],$maxusers[3]);
eval(
"\$todayloggedinusers = \"".fetch_template('forumhome_todayloggedinusers')."\";"); 
Reply With Quote
  #80  
Old 01-10-2004, 07:02 PM
Kewl Kewl is offline
 
Join Date: Jan 2002
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

strange still same thing

]
Reply With Quote
  #81  
Old 01-10-2004, 07:57 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kewl
strange still same thing

here is the link if you want to see what it is doing

http://www.pcinnovations.com/forum/index.php?s=
Is that code i put right after the whos online tracking code? Hmm this is strang :-/
Reply With Quote
Reply

Thread Tools

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:17 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.05984 seconds
  • Memory Usage 2,333KB
  • 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
  • (1)bbcode_php
  • (5)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
  • (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