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)

-=dm=- 04-23-2002 10:55 AM

Quote:

Originally posted by xiphoid
Hey there :)

I have applied this hack, but didn't quite stick to your installation instructions :) Sorry! I have applied it by altering the forumhome_loggedinuser(s) template and now I have it split up next to the WOL !! Actually looks pretty cool :)

Thank you for the code!! Very easy to apply and when its time to goto vB3 I can just put index.php back and upgrade, and re-apply this simple hack! Way cool

Hi xiphoid
Your "online users" looks great, how did you split it that way, can you please explain, I like it very much looks much better this way :)
thanx

mashby 04-29-2002 03:33 AM

Just installed the hack and it was a piece of cake! Great work and thanks for making such a wonderful hack.

Now just to figure out how to list the names on a separate page like they do on this forum. :) Back to reviewing the thread to find out!

Angelus1753 04-29-2002 10:09 AM

Hi, love this hack :)

One question,

I'd like to know if there was a way to hide it from guests and put an option in the user cp to ask if they want to show up on 'online today' but still show up on the normal who's online.

If the user selects 'no, I don't want to show up on 'online today'' than they become invisible (just for the 'online today') but the admin can see them.

That make sense?

|-Last-Spirit-| 04-30-2002 03:29 PM

Hi,
I installed the hack on my board, but when I edit my index.php I have the following line on top of my forum :

tr id="cat"

..... I didn't do anything wrong so what can I do to squash this bug ?

Mystics 04-30-2002 03:32 PM

@|-Last-Spirit-|
Maybe you edited a template in the wrong way or you added one template not correct.

|-Last-Spirit-| 04-30-2002 03:45 PM

Quote:

Originally posted by Mystics
@|-Last-Spirit-|
Maybe you edited a template in the wrong way or you added one template not correct.

I wish but I don't think that's possible, all that has to be done is adding 2 new templates (can't see how my ctrl+v button screwed up) and replacing some text in the index.php....

When I restore my old index.php the prob is gone but also the hack ofcourse....

Dark Odin 04-30-2002 07:47 PM

How many queries does this add?

Mystics 04-30-2002 08:33 PM

Quote:

Originally posted by Dark Odin
How many queries does this add?
It adds one Query in index.php, and a second one only when there is a new record.

Mental Stamina 05-02-2002 10:31 PM

i attempted to install this
but my onlinetoday.php page shows no names
i need the whosonline_legend template

Mystics 05-03-2002 11:44 AM

Quote:

Originally posted by Mental Stamina
i attempted to install this
but my onlinetoday.php page shows no names

Please check the instructions to see what you have done wrong....you have forgotten one or more templates (I think "whowasonline_todayloggedinuser")
Quote:

Originally posted by Mental Stamina
i need the whosonline_legend template
whosonline_legend is a standard Template in vBulletin since 2.2.x
Code:

<br>
<!-- Legend -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
        <td bgcolor="{firstaltcolor}"><smallfont>
        Names in <b>Bold</b> are forum Moderators. Names in <b><i>Bold & Italics</i></b> are forum Administrators.
        </smallfont></td>
</tr>
</table>
</td></tr></table>
<!-- /Legend -->


mashby 05-03-2002 02:58 PM

The hack is working perfectly and makes a great addition to my board! I just have one question.

Is there any way to create a history of how many people have logged on each day for say a week, or a month? I'd like to see just how the days are averaging, etc.

Renegade 05-04-2002 02:53 PM

Very cool hack, now I can easily see who visited the board in a day!

thx

morrow 05-07-2002 07:02 PM

Nice hack, but I seem to have a minor issue.

"The following members have already visited the Board today:"

is always blank.

any ideas?

see for yourself,

http://www.njflyfishing.com

Mystics 05-07-2002 08:44 PM

Quote:

Originally posted by morrow
Nice hack, but I seem to have a minor issue.

"The following members have already visited the Board today:"

is always blank.

Recheck your changes in index.php and your Templates.

Maybe your have forgotten the Template forumhome_todayloggedinuser

morrow 05-08-2002 02:42 PM

I misunderstood the instructions for the last part, but once I created that template, it worked out just fine.

Very nice hack!

Thanks for everything.

:classic:

Boofo 05-12-2002 12:05 AM

I'm having a probelm with it showing the right amount of users now. Here's what it says:

Number of active users today: 2
Most users ever online on a day was 5 on Today.

And it only lists 2 names when I know for sure there were 5 users on line today.

Anybody have any ideas? I have checked and re-checked everything and even re-stalled the templates and checked to make sure the code was right where is needed to be.

BTW: The reason the number of users is so small is because I am still setting the board up :) )

Anybody have any ideas as to why this is happening now? It worked great yesterday when I installed it but now it is showing wrong.

Mystics 05-12-2002 12:07 AM

@Boofo

"Who is online" includes Guests, "Who was online" doesn't include Guests, maybe that's the reason.

Boofo 05-12-2002 12:15 AM

I thoght of that, but the other 3 users that are missing on the listing were actually on there today. :)

Mystics 05-12-2002 12:20 AM

Which version of the Hack have you installed (extra Page/Non extra Page)?

Have you applied the "Time-Fixes" which are posted somewhere in this Thread?

Boofo 05-12-2002 12:43 AM

I installed the extra page version and as far as the time fix thing, I either missed that or didn't understand it. Do I need to apply it becuase it was fine yesterday and after midnight it must have gone wrong, is that it?

Mystics 05-12-2002 12:47 AM

You maybe need to do this:

Open onlinetoday.php and search:
PHP Code:

WHERE lastactivity " . mktime(0,0,0,date("m"),date("d"),date("Y")) . " 

Replace it with:
PHP Code:

WHERE lastactivity " . (mktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-$timeoffset)*3600)) . " 

Mystics

Boofo 05-12-2002 12:54 AM

It worked, thank you very much. It says Number of avtive users today is 4 and the most ever online in a day is 5 on Today (which would mean a guest was on, right?) That is where the extra number comes up? Is there any way not to make it count guests?

Mystics 05-12-2002 01:06 AM

The Hack does not count Guests.

The fact that the record today is higher than the number today is a bug which you cannot avoid.

Because the number of today users is generated dynamically based on each users local time and the record number of online users can be set by any user and is stored fixed in the database.

So a user in an other timezone can set an higher record than an other user in an other timezone actually will get.

Hm, I hope you understand, what I'm trying to say :)

Boofo 05-12-2002 01:36 AM

I'm really lost on this one. take a look at waht I mean and maybe it will make more sense to me. Also, notice that on the main page at the bottom the Number of Avtive users today is different than it is on the page it links to. Why is that?

My Site

Let me know what you think. I doubled checked everything and I must have missed something.

Mystics 05-12-2002 01:41 AM

You can't do anything against your first Problem as I wrote in my last Posting.

>>Also, notice that on the main page at the bottom the Number of Avtive users today is different than it is on the page it links to

I have updated the instructions of the Hack.
To fix this, you also have to change the line in index.php (same changes you have done in onlinetoday.php)

Boofo 05-12-2002 02:02 AM

Thank you (again). Everything seems to be in working order now. I guess I still don't quite fully understand the difference in most users ever line being different, but if you say that is normal and how it works, then I will leave it at that and not hurt myself trying to figure it out anymore. :) One last question, is there way to color the names like in Currently active Users for the Admin, Mod and Super Mod? I tried the one that was posted in this thread a ways up, but that was for the same page version and I couldn't get it to work.

Thanks again for a great hack and sorry about all of the problems. :)

HappyPike 06-05-2002 06:57 AM

hey Mystic, I just installed the extra page version. The weird thing is it says "Number of Active Users Today: 0
Most users ever online on a day was 169 on Jun 05, 2002." It shows up correctly for some people (i.e. not zero). Do you know what's wrong?

My forum

Mystics 06-05-2002 05:16 PM

Quote:

Originally posted by HappyPike
hey Mystic, I just installed the extra page version. The weird thing is it says "Number of Active Users Today: 0
Most users ever online on a day was 169 on Jun 05, 2002." It shows up correctly for some people (i.e. not zero). Do you know what's wrong?

It it shown correct for me, maybe it depends on the user's time zone (as I wrote, it only works 100% correct, if each User is in the same time zone as the Server :))

And maybe it needs some time to show a value>0 for each user.

Mystics

HappyPike 06-05-2002 07:49 PM

It's working for me now also (although not 100% correct).

Now it says: "Number of Active Users Today: 750
Most users ever online on a day was 811 on Today. "

Thanks for the cool hack. :)

Mystics 06-05-2002 07:56 PM

To explain the difference between the two numbers:

"Number of Active Users Today" is generated dynamically according to your time zone.

"Most users ever online on a day" is a static value saved in the database; each user can update this value, and according to the time zone of each user, User #1 maybe can have more people online on his "Today" as User #2 (because they are in different time zones)

I hope anybody could understand this ;)

Mystics

CRego3D 06-06-2002 03:39 AM

Excellent Hack

just a question, is there a way to merge online.php and onlinetoday.php so the users that have been on today show below those who are on now ?

Mystics 06-06-2002 05:33 PM

Quote:

Originally posted by CRego3D
just a question, is there a way to merge online.php and onlinetoday.php so the users that have been on today show below those who are on now ?
Here ya go :)

CRego3D 06-07-2002 06:25 AM

Great .. it works 99.99%

I was gettign this error

Fatal error: Call to undefined function: getusercolor() in /home/yaxay/public_html/yack/online.php on line 1829

line 1829 was

$usercolor=getusercolor($todayuser['usergroupid'],$mod["$userid"],$highlightadmin,$userid);

so I commented it out, but now the admins and mods do not show in bold or italic :( .. any way we can fix this ? :)

Mystics 06-07-2002 07:11 AM

Quote:

Originally posted by CRego3D
I was gettign this error

Fatal error: Call to undefined function: getusercolor() in /home/yaxay/public_html/yack/online.php on line 1829

Sorry for that, I have copied the wrong code (I adjusted the Hack in my Forum a little bit).

Please download the attachment again and redo the changes in online.php.

Mystics

CRego3D 06-07-2002 10:36 PM

Ok, small problem

Most ever online: 57 on Today at 07:26 PM (on MAIN page)

that number was 73 ,, and it keeps changing .. I am not using this hack on the main page, but in combination on online.php

Any ideas

CRego3D 06-07-2002 10:40 PM

actually, it's as if every x minutes it resets itself to whathever number users is on

Mystics 06-07-2002 11:14 PM

ok, updated again.

CRego3D 06-08-2002 01:48 AM

I am not sure I undersatand what was updated .. on my instructions I see version 1.0.3 .. that's what I already had

CRego3D 06-08-2002 01:53 AM

it sems it's thje $recordusers variable that is getting messed up :p

CRego3D 06-08-2002 01:57 AM

Quote:

Originally posted by SgtSling
| Most users ever online was 43 on 01-12-2002 at 05:38 PM.

Why does my record for online users keep changing to the number that is currently online?

is something not gettig updated?

$recordusers seems t just point to whatever number I currently have online now.
how can I fix this .
I posted my code for loggedinusers on page 2
Sarge

that is my problem .. lookign thru the thread .. see if anybody foudn how to fix it


All times are GMT. The time now is 03:04 AM.

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.01767 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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