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
  #242  
Old 03-29-2004, 07:00 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 trafix
i just installed ... but

it shows this..

Number of Active Users Today: 0

Most users ever online on a day was 12 on Yesterday. | The following members have already visited the forums today:

But no names are being displayed ... is this dynamic?
Yep it's dynamic. Are you checking it at midnight or something when it just reset itself?
Reply With Quote
  #243  
Old 03-29-2004, 07:00 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those who are having reset problems, make sure you run the query required.
Reply With Quote
  #244  
Old 03-29-2004, 07:07 PM
Hellburn Hellburn is offline
 
Join Date: Mar 2002
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont know what this hack do at the full releases forum. The user record reset at midnigt and the newpage shows difference todayusernumber how to the index.php. The hack from Mystics works fine but this is only a beta in my eyes.
Reply With Quote
  #245  
Old 03-29-2004, 07:29 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 Hellburn
I dont know what this hack do at the full releases forum. The user record reset at midnigt and the newpage shows difference todayusernumber how to the index.php. The hack from Mystics works fine but this is only a beta in my eyes.
Did you run the query? And I'm not really supporting the newpage since I only made it because someone requested it, although it should be working fine.
Reply With Quote
  #246  
Old 03-29-2004, 07:50 PM
Hellburn Hellburn is offline
 
Join Date: Mar 2002
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes i have run the query. Now i have tested the instructions-normal.txt and he dont reset at midnight but the instructions-newpagedeutsch.txt reset at midnight.
Reply With Quote
  #247  
Old 03-29-2004, 09:49 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hellburn
Yes i have run the query. Now i have tested the instructions-normal.txt and he dont reset at midnight but the instructions-newpagedeutsch.txt reset at midnight.
ok so far so goos .... lets see what happens tonight
Reply With Quote
  #248  
Old 03-30-2004, 02:44 AM
KarateKid's Avatar
KarateKid KarateKid is offline
 
Join Date: Oct 2001
Location: Sydney
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trafix
ok so far so goos .... lets see what happens tonight
I ran the query too, but the record is still resetting all night...

as you can see here: http://www.kampfkunst-board.info/forum/index.php

I installed it somedays ago and had at least a record about 500 active users yesterday, but today the record has been resetted again. :disappointed:
Reply With Quote
  #249  
Old 03-30-2004, 08:25 AM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It comes to my attention why exactly do you not use this for max user's online in a day

PHP Code:
<phrase 1="$recordusers2="$recorddate3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase
As your method is incorrect O_o'

I know this is correct, because i use it for the welcome box i made on my forum, plus it will be more optomized if you do use it, because there is no need for any queries or code execution, since its already in vB

If anyone wants the corrected version + optomized, do these edits:

Change template 'forumhome_todayloggedinusers'
To this:
Code:
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onClick="return toggle_collapse('forumhome_todayactiveusers')"><img id="collapseimg_forumhome_todayactiveusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayactiveusers].gif" alt="" border="0" /></a>
$vbphrase[active_users_today]: $todayonline
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_todayactiveusers" style="$vbcollapse[collapseobj_forumhome_todayactiveusers]">

<tr>

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt=" Number of Active Users Today" border="0" /></td>

<td class="alt1" colspan="0"><div class="smallfont">
<phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase> | 
$vbphrase[already_visited_today]:<br />
        $todayloggedinuser<br />
        </div></td>
</tr>
</tbody>
Open index.php:
Find:
PHP Code:
// ### MAX LOGGEDIN USERS TODAY ################################
$todaymaxusers unserialize($datastore['todaymaxonline']);
if (
intval($todaymaxusers['todaymaxonline']) <= $todaynumberregistered)
{
    
$todaymaxusers['todaymaxonline'] = $todaynumberregistered;
    
$todaymaxusers['todaymaxonlinedate'] = mktime(000date('m'), date('d'), date('Y'));
    
$DB_site->query("REPLACE INTO " TABLE_PREFIX "datastore (title, data) VALUES ('todaymaxonline', '" addslashes(serialize($todaymaxusers)) . "')");
}

$todayrecordusers $todaymaxusers['todaymaxonline'];
$todayrecorddate vbdate($vboptions['dateformat'], $todaymaxusers['todaymaxonlinedate'], 1); 
Remove it

Save and upload, thats it
Reply With Quote
  #250  
Old 03-31-2004, 08:29 AM
KarateKid's Avatar
KarateKid KarateKid is offline
 
Join Date: Oct 2001
Location: Sydney
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hm, that doesn't change anything with my problem!??!
Reply With Quote
  #251  
Old 04-01-2004, 06:42 AM
Hellburn Hellburn is offline
 
Join Date: Mar 2002
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont understand why the userrecord reset at midnigt by the newpage.txt. Nobody a fix for this problem?
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 07:06 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.08664 seconds
  • Memory Usage 2,322KB
  • 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_code
  • (2)bbcode_php
  • (4)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
  • (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