vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Who Was Online Today on forums (https://vborg.vbsupport.ru/showthread.php?t=59579)

Gary King 03-29-2004 07:00 PM

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? :)

Gary King 03-29-2004 07:00 PM

For those who are having reset problems, make sure you run the query required.

Hellburn 03-29-2004 07:07 PM

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.

Gary King 03-29-2004 07:29 PM

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.

Hellburn 03-29-2004 07:50 PM

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.

trafix 03-29-2004 09:49 PM

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

KarateKid 03-30-2004 02:44 AM

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:

Zero Tolerance 03-30-2004 08:25 AM

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 :)

KarateKid 03-31-2004 08:29 AM

hm, that doesn't change anything with my problem!??!

Hellburn 04-01-2004 06:42 AM

I dont understand why the userrecord reset at midnigt by the newpage.txt. Nobody a fix for this problem?


All times are GMT. The time now is 06:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01575 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete