vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Who was online today [available in english & german] (https://vborg.vbsupport.ru/showthread.php?t=34014)

romeshomey 08-14-2003 01:34 PM

I still cant get my Current Users Online panel to work. :(

The Realist 08-17-2003 10:26 AM

I have the same problem?

Anyone.

Quote:

08-10-03 at 06:34 PM centris said this in Post #399
I have installed this hack on every version of vbulletin since release, but today with version 2.3.2 it fails to appear on the forums page, all templates are ok (in the default set) I have no other styles installed. And the forumhome template addition is fine, but nothing shows???

leitel 08-19-2003 04:35 AM

Does anyone have this hack (hacked) working with 3.0 beta 5?

Megadeuce 08-22-2003 06:05 PM

I think is is confusing for it to say:
Most users ever online on a day was 11 on 08-22-2003

Instead, shouldn't it say
Most visitors ever online on a day was 11 on 08-22-2003

Mr. Brian 08-22-2003 11:55 PM

Well, it would be greet if guest to be included as well. I don't dare to ask for much but just hope you can give it a thought.

Thanks. :classic:

Quote:

05-12-02 at 11:06 AM Mystics said this in Post #183
The Hack does not count Guests.



Trigger351 08-23-2003 06:20 AM

OK have read right through this thread and still dont know what my problem is.

Been through the install 3 times to check if it is correct but have this:
Number of Active Users Today: 0
Most users ever online on a day was 0 on 23-08-2003. | The following members have already visited the Board today:

No data is displayed.

2 questions:
Do I have to wait 24 hours to see anything?

Does it work correctly with vBportal installed?

lasto 08-23-2003 06:43 AM

just installed this on 2.3.0 no probs what so ever and nope m8 u dont need to wait 24 hrs

it shows straight away as soon as u done it.

The Realist 08-23-2003 06:28 PM

Finaly found my problem DUHHHhhhhhhhhhh forgot to add a bloody template :)

Well at least it works :)

Quote:

08-17-03 at 12:26 PM The Realist said this in Post #402
I have the same problem?

Anyone.


The Realist 08-31-2003 03:06 PM

I just found a little proble I have and can anyone say how I can fix it?

Problem is below:

Most users ever online on a day was 36 on Today. | The following members have already visited the Board today:

It always says "Most users ever online on a day was 36 on Today" but its not. The count is always wrong and should say "Most users ever online on a day was 36 on "What Ever Date""

Can this be fixed

Zeitgeist 09-02-2003 07:38 PM

Quote:

08-31-03 at 06:06 PM The Realist said this in Post #409
I just found a little proble I have and can anyone say how I can fix it?

Problem is below:

Most users ever online on a day was 36 on Today. | The following members have already visited the Board today:

It always says "Most users ever online on a day was 36 on Today" but its not. The count is always wrong and should say "Most users ever online on a day was 36 on "What Ever Date""

Can this be fixed


I've exactly the same problem! Thought I have forgotten some code in the installation, but I hadn't. Is this really a bug of this script?

Trigger351 09-02-2003 09:21 PM

I think it is a bug...I ended up removing that part of the script so what I have now is:

Active Members Today:

The following members have already visited the Board today:

ogden2k 09-13-2003 05:16 PM

Is it possible to show this only to mods and admins?

X-Fan 09-22-2003 12:05 AM

Working fine on my forums except for the timezone thing. I even adapted it to work nicely on my vbHome front page.

Is there a working fix for the timezone problem yet?

And has anyone found a way for it to include total guests that visited throughout a day as well?

X-Fan 09-22-2003 07:23 AM

Okay, it's inexplicably stopped working now - users today is 0 even though there's currently 25 members online.

Anyone got any ideas as to why, or is this just a result of that timezone problem?

Trigger351 09-22-2003 07:42 AM

Its the timezone problem...The only way to fix it is to get your server to change to your local time or change servers to one that is in your timezone.

Our server shifted us to an Aussie time zone and it fixed the problem. :)

www.tmaauto.com

X-Fan 09-22-2003 07:51 AM

Quote:

Originally Posted by Trigger351
Its the timezone problem...The only way to fix it is to get your server to change to your local time or change servers to one that is in your timezone.

No can do. I'm based in Australia, but the server needs to be US time.

There's got to be a simpler way to fix this problem than to tweak hardware! :ermm:

Trigger351 09-22-2003 08:12 AM

Might be time to change servers...Ours is Flexihostings and they had enough Aussie based customers that they set one of there servers up in Aussie time :)

X-Fan 09-22-2003 08:17 AM

I don't think I'm going to go through the hassle of changing servers just to get one single hack working. I'll easily do without if that's the only option.

iceman-x 09-22-2003 02:45 PM

Is it possible to show this for mods ore admins only.

Rabbitoh Warren 09-25-2003 02:00 PM

Finally read through the entire thread! I've installed Mystic's original version and it's working fine for me so far here after two days. I'm using vB version 2.3.2.

patriciafrankie 09-25-2003 10:47 PM

Dumb question. Where do I find the forumhome template?

Trigger351 09-25-2003 11:15 PM

Its in Control panel > templates > modify :)

patriciafrankie 09-25-2003 11:34 PM

Will I need to do that with every theme I have?

Trigger351 09-26-2003 05:05 AM

Yep if you are using multiple themes otherwise just modify the default theme:)

patriciafrankie 09-27-2003 01:44 AM

Another question :)

I installed this hack (the first one) and it didn't show up :( I installed it for two themes, and it still won't show up.

Using v2.3.2

Thanks,
Patricia

insanctus 09-29-2003 02:32 AM

I just installed this on my vb3 with ease.

Tad change but works awsome :)

patricia did you remember to put templates in both themes?

BenS 09-29-2003 04:30 AM

This is a good one.

*clicks install*

copyninja 10-07-2003 02:56 AM

thanx works GREAT!

using vb 2.3.2

::clicks install::

TeH Z0mB1E 10-24-2003 09:11 PM

um help i must of installed this wrong because my "most users ever online" and "most users ever online in a day" are resetting daily.
its embarrassing when my forum says most users ever online 1 so please help :)

TeH Z0mB1E 10-30-2003 11:23 PM

sorry for the double post but can anyone please help?

kauka 11-16-2003 05:24 PM

Might be a dumb question but how can I get it to work with 2.3.3? They changed the coding some.

Tri@de 11-24-2003 05:48 PM

Quote:

Originally Posted by kauka
Might be a dumb question but how can I get it to work with 2.3.3? They changed the coding some.


Yes, but a little bit.
there's only a little thing in index.php

In the 2.3.3 you have

if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {

instead of

if ((int)$maxusers[0] <= $totalonline) {

so, if you whant to modify, write

// today online hack begin
if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {
$time = time();
$maxloggedin = "$totalonline " . $time . " " . $maxusers[2] . " " . $maxusers[3];
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}

$todayloggedinusers = "";
$numbertodayonline = 0;
$numbertodayonlineinvisible = 0;

$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM 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)) {
$numbertodayonline++;
$invisibleuser = '';
$userid = $todayuser['userid'];
$lastactivetime = vbdate($timeformat, $todayuser[lastactivity]);
if ($todayuser['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
$numbertodayonlineinvisible++;
continue;
}
if ($todayuser['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($todayuser['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$todayuser[username]</i></b>";
} else if (($mod["$userid"] or $todayuser['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$todayuser[username]</b>";
} else {
$username = $todayuser['username'];
}
if (!$todayloggedinuser) {
eval("\$todayloggedinuser = \"".gettemplate('forumhome_todayloggedinuser')."\" ;");
} else {
eval("\$todayloggedinuser .= \", ".gettemplate('forumhome_todayloggedinuser')."\";" );
}
}

$DB_site->free_result($todayusers);

if ($bbuserinfo[usergroupid] == 6) {
$todayonline = $numbertodayonline;
} else {
$todayonline = $numbertodayonline - $numbertodayonlineinvisible;
}

if ((int)$maxusers[2] <= $numbertodayonline) {
$time = time();
$maxloggedin = $maxusers[0] . " " . $maxusers[1] . " $numbertodayonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[2] = $numbertodayonline;
$maxusers[3] = $time;
}

$todayrecordusers = $maxusers[2];
$todayrecorddate = vbdate($dateformat,$maxusers[3]);

eval("\$todayloggedinusers = \"".gettemplate('forumhome_todayloggedinusers')."\ ";");
//today online hack end


And it's done :)
i hope this help you ;)

Hoffi 11-26-2003 08:26 PM

Hi,

I user vBIndex and want to show the last 5 Online Users in an Box... is it possible with this?

Nebby 11-27-2003 12:18 AM

Works great, cheers.

tHe Rk 01-16-2004 03:41 PM

Quote:

Originally Posted by Tri@de
Yes, but a little bit.
there's only a little thing in index.php

In the 2.3.3 you have

if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {

instead of

if ((int)$maxusers[0] <= $totalonline) {

so, if you whant to modify, write

// today online hack begin
if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {
$time = time();
$maxloggedin = "$totalonline " . $time . " " . $maxusers[2] . " " . $maxusers[3];
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}

And it's done :)
i hope this help you ;)

I was Having problems on the 2.3.4 and this took care of the problem! Thanks a million!

Bat21 01-28-2004 08:42 PM

I have this hack installed on my Forum 2.2.9

I have recently moved to a dedicated server which is set to Mountain Time (US)
I have compensated for the 7 hour time difference by offsetting the Forum base time, so the default time for my site is GMT (UK)

The problem is the Who's online section doesn't start counting who has been on line untill 2 pm as opposed to starting at midnight.

Is there any way I can resolve this without altering the server time.

Thax

scabs92c 02-08-2004 03:28 PM

Ok guys forgive me here I am a newbe at this.
I am trying to get this hack to work. I have Vboard ver 2.
I have loaded all the hacks but I still get the original page????
I think it is still showing the default page?
Do I have to deleate the default template or something??
Anyhelp would be appreciated..
Scabs

Emmy2 02-13-2004 02:11 PM

I'm on vB2.3.4 and am having trouble with this hack. I can get it to show up, but the data is puzzling. For example, if I log out I get "0" members online today, even though there are people on the board right now! If I log in I get a number, but it seems that the tally resets at about 6am every day (I guess something to do with my server time) and all the names are cleared. However, what I would REALLY like is for it to give the names of visitors to the site in the past 24 hours, kind of a floating window of time, since I would like to see if anyone is visiting the site at, for example, 3 am in the morning. Unless I get up before 6 am and check the board their names will disappear by the time I get online. Make sense?

Long story short.....there is a feature in the Admn CP that lists visitors in the last 24 hours. It seems ideal. Is there a way to tap into that information, or duplicate it, and display it on my forum homepage?

Rand M 02-24-2004 08:14 AM

I'm not using all of this hack, just the part that shows which members have "already visited the board today". So I dont know what affect it will have on "Number of Active Users Today:"

My forum (ver 2.2.8) is in the 'GMT' timezone but the server it is hosted on is US Eastern (-5) timezone.

After installing the hack everything worked as expected until 24hrs later when the "already visited the board today" showed 'nil' member 'names', even though members had been visiting my forum.

So I am experimenting with using 'gmmktime' instead of 'mktime' as used in the hack, which creates the Unix timestamp from the server.

I found this little snippet of information on a WWW search that provoked me to change the function.
"The timestamp returned is based upon the number of seconds from the epoch GMT, and then modified by the time zone settings on the server. Where you want time zone independence, you should use the function gmmktime"

So far so good, in that the member list now shows in "already visited the board today". This might be a solution for some others who run forums in a different timezone to the server that it is hosted on.

I've only been running with 'gmmktime' for a few hours so it is impossible to say if this will work permanently, if it still shows the 'members' 24 hours from now then it might be a solution.

The change is to the hack in index.php
Change
WHERE lastactivity > " . (mktime
To
WHERE lastactivity > " . (gmmktime

Like many others I am very new to coding in PHP so maybe an 'expert' or two might like to comment.

Bat21 02-24-2004 08:39 AM

Nice one Rand M... you've just helped sort mine out, in index.php I found

(($bbuserinfo['timezoneoffset']+7)

and changed it to

(($bbuserinfo['timezoneoffset']-7)

cheers dude.... sorted now :D


All times are GMT. The time now is 01:36 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.01702 seconds
  • Memory Usage 1,832KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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