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)

Nj?rd Eriksson 04-25-2004 10:23 AM

Quote:

Originally Posted by good2laugh
Hi guys - bit of newbie here.. following the instructions for normal text - but am a bit lost on the creating phase part - it says
NOW CREATE THE FOLLOWING PHRASES:
******************************
last_online_at_x / Last online at {1}
******************************
active_users_today / Number of Active Users Today
******************************
most_users_ever / Most users ever online on a day was {1} on {2}.
******************************
already_visited_today / The following members have already visited the forums today

I'm sure that is straightforward to you guys, but not to me -can someone help me


in the cp it says VAR NAME and text - and I'm NOT clear what I do

text is the part above? ie last_online_at_x / Last online at {1} ?? but what is VARNAME


PLEASE help a newbie :)

VARNAME: last_online_at_x
Text: Last online at {1}

Add the others accordingly.

DWard 04-25-2004 05:04 PM

Kool, bin lookin for one of these for ages

FleaBag 04-25-2004 11:32 PM

Quote:

Originally Posted by Onkel_Tom
but the most users online still resets every day....

Mine is doing this too. :(

KarateKid 04-26-2004 05:47 PM

Quote:

Originally Posted by FleaBag
Mine is doing this too. :(

I have still the problem with the "newpage"-version, that the record resetts daily! :mad: :(

No solution available?

Blade-uk 04-26-2004 09:55 PM

Admin-Bold
Super Mods-Bold

But for some reason, we all show up fine in bold, but theres a user who is a normal registered user but he comes up in bold too.

any ideas ?

thanx

Chris|vB 04-30-2004 01:41 AM

Installed.

q8square 04-30-2004 06:24 AM

I've installed the hack, and it worked perfectly ..

But already_visited_today are not being shown except for the GUEST ..

as soon as I sign in, this info is reset !!

That sounds very strange, how can I solve it ?

MindTrix 04-30-2004 11:14 AM

Can we get a screenshot of the Who Was Online Today when its on its own page? Also on the front you say theres no querys to run but there is :p

Nj?rd Eriksson 04-30-2004 08:03 PM

Quote:

Originally Posted by q8square
I've installed the hack, and it worked perfectly ..

But already_visited_today are not being shown except for the GUEST ..

as soon as I sign in, this info is reset !!

That sounds very strange, how can I solve it ?

This might simply be this time zone problem I already described.

It is impossible to display a "Who was online today?" list correctly for all members regardless which time zone they use on each and every board regardless which default time zone the board uses if one doesn't keep a list of members that logged in within the last 48 hours (instead of only 24 hours).

Best (and probably easiest to code) would be to make the list fully dynamic (i. e. "Who was online in the last 24 hours?"

I know that there is a dynamic "Who was online in the last 24 hours?" hack already (which works fine) but this "Who was online today?" also keeps the "Most users ever online on a day was ..." top score which I don't want to miss.

Ironically enough, this "Most users ever online on a day was ..." function is done fully dynamically (and doesn't rely on the vBulletin "Registered visitors today" stats which are not dynamic but based on the default time zone) which is absolutely awesome.

Since the author apparently doesn't support this hack anymore and because so many people have installed this hack already (all of whom have this time zone problem I described, regardless if they are aware of it or not), I wonder if some coder could convert the "Who was online today?" routines to fully dynamic "Who was online in the last 24 hours?" routines (or fix it by keeping the login entries for 48 hours and considering the member's time zone as offset from the default time zone which is, however, probably somewhat more complicated?)

Either solution would be absolutely elite and elysian, and I would make such a coder my hero of the month. ;)

elmore 04-30-2004 10:46 PM

I'd like to just say hello to everyone real quick. I'm brand new to the vBulletin community so I'm fairly ignorant on how the entire systems works. Anyways I just installed this hack on 3.0.1 and it seems to pull information though it's not formatted correctly. I assume this is of course something stupid that I have done but not knowing the system any better than I do at this point I'm a bit clueless. :o

Anyways I'd love it if someone could give me a gentle shove in the right direction and lemme know what I should look at, attached is a screenshot of the error I get. Thanks.

*edit*

Ummm nevermind I got it fixed cut off a tag in a cut and paste. Knew it would be something stupid like that. Anyways:

I had

Code:

ref="member.php?$session[sessionurl]u=$userid" title="<phrase
I clipped the

Code:

<a

Wifey 05-02-2004 06:08 PM

I'm having problems with this hack. I have NO clue when it rolls over and I'm not sure wh it's so screwy. I've been putting off fixing it, but I really need to take care of it. at 10 am my time I see that the last time someone was online was at 6pm (meaning, the night before). What's wrong? I've done everything.

Sirius Black 05-03-2004 12:55 AM

Great hack man !! Installed with no problems !!

Flow Fusion 05-03-2004 01:29 AM

Can I please get some help with this?I can't get into my admincp? I keep getting this error message?

Invalid SQL:
INSERT INTO session
(sessionhash, userid, host, idhash, lastactivity, styleid, loggedin, bypass, useragent)
VALUES
('8e2bbc346a4fbfade4d1d6edff6ed4b6', 687, '66.65.121.38', '4b84f6b2f3e3352850e0f539b66878cb', 1083460415, 0, 1, 0, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)')

mysql error: The table 'session' is full

How do I remove this hack? I also want it out of my database? What file is causing this that I need to replace?

Wifey 05-03-2004 06:17 AM

You need to do a couple of things to get it out of your database. You can probably just go back through the steps you took to insert it, then just change them. You should have the original files for your boards from your original download - compare the modified php files to those if absolutely necessary.

After that you should be able to get into your admincp so you can make the template modifications.

Hopefully. If that doesn't fix it you may have to do some work in php myadmin from your database.

Flow Fusion 05-03-2004 01:04 PM

Quote:

Originally Posted by ashkarita

Hopefully. If that doesn't fix it you may have to do some work in php myadmin from your database.

Nope I was wondering two thing? One what if I delete this table?

And two does this look right?

http://flowfusion.biz/sigs/online.jpg

Wifey 05-03-2004 05:51 PM

Don't delete that. That's totally separate from your hack I'm pretty sure.

Flow Fusion 05-04-2004 12:31 AM

So do you have any suggsetions on what file it could be that''s causing this problem?

Wifey 05-04-2004 02:45 AM

No but I really wish I could help you.

Quote:

Originally Posted by Blackjack
Not quite, you need to replace in the instructions.
Code:

INSERT INTO datastore (title, data)...
with
Code:

INSERT INTO vb3_datastore (title, data)...


Have you seen that and did you try it? I'm pretty sure that's part of the original query you run, though not entirely sure about that.

I think I would just uninstall the hack. Just follow the directions you used to install it and uninstall. Then maybe try reinstalling? Try running the query again. It won't let you duplicate the query, so if it's already run correctly you'll get an error.

I really wish I knew more so I could help you!

edit: Okay, this worked for me to get the fix I needed. I uploaded the onlinetoday.php file to my admincp folder in my database and then ran it in my browser. You get a blank page but now the damn thing is finally working properly.

Oleks 05-06-2004 03:48 AM

Hi,
Where I can download the latest version of Who Was Online Today for vB 3.0.1?
Thank you.

xQuEeNzNaZcHox 05-06-2004 11:02 PM

<a href="http://www.nymfans.com/" target="_blank">http://www.nymfans.com/</a>

Look at mine, some of it looks screwed up.

nintendo 05-07-2004 06:38 AM

When you try to run the query from phpMyAdmin it says...
Code:

Error

SQL-query :  [Edit]

INSERT INTO datastore (title, data) VALUES ('todaymaxonline', 'a:2:{s:14:\"todaymaxonline\";i:1;s:18:\"todaymaxonlinedate\";i:1070000000;}')

MySQL said:

Duplicate entry 'todaymaxonline' for key 1

it's also messed up when it comes to the record number. On the first day it got over 200, but right now it says....

onlinetoday.php

Number of Active Users Today: 116
Most users ever online on a day was 116 on Today.

All times are GMT -7. The time now is 12:18 AM.

Index page says

Number of Active Users Today: 9
Most users ever online on a day was 9 on Today.

And has any one figure out how to make both of them use the same time zone?

Some one should move this over to beta until it actually works!!!!

JaNa 05-07-2004 04:12 PM

Useful hack. Thanks :)

[high]* JaNa Clicks Install[/high]

lifesourcerec 05-10-2004 07:26 AM

This script doesn't like me. It works until I login and then it doesn't work.

Flow Fusion 05-12-2004 12:49 PM

I seem to be getting members names twice? I don't know why but sometimes three times all they have to do is refresh the page?

http://giftedsouls.com

Gnappy 05-12-2004 05:55 PM

Quote:

Originally Posted by nintendo
When you try to run the query from phpMyAdmin it says...
Code:

Error

SQL-query :  [Edit]

INSERT INTO datastore (title, data) VALUES ('todaymaxonline', 'a:2:{s:14:\"todaymaxonline\";i:1;s:18:\"todaymaxonlinedate\";i:1070000000;}')

MySQL said:

Duplicate entry 'todaymaxonline' for key 1

it's also messed up when it comes to the record number. On the first day it got over 200, but right now it says....

onlinetoday.php

Number of Active Users Today: 116
Most users ever online on a day was 116 on Today.

All times are GMT -7. The time now is 12:18 AM.

Index page says

Number of Active Users Today: 9
Most users ever online on a day was 9 on Today.

And has any one figure out how to make both of them use the same time zone?

Some one should move this over to beta until it actually works!!!!


empy ur datastore from db

bigreefer 05-13-2004 08:13 PM

Hmm sorry but i have a problem with this hack.

There are different numbers of member Today Online.

It say: Member Today Online : 289 and most member ever Online: Today with 357

What the problem ?

Bix ThX and sorry for bad english.

nydk 05-14-2004 08:55 PM

Nm...

Spencer F. 05-14-2004 10:05 PM

Does this work for 3.0.1 yet?

Gnappy 05-16-2004 09:17 PM

it works, but u need to clean ur datastore from db before install it...

im my case...

good2laugh 05-17-2004 07:52 AM

I don't know what I'm doing, and I've just probably done something wrong :rolleyes: .. but should I have all those asterisks, isn't it possible to just have user1, user2, user3, user4, (where user is their screen name)

I've (I hope) attached a screen grab.

I really would appreciate if someone can give me an "idiot type" guide to how to fix this... I really AM code stupid. Thanks if anyone will help.

good2laugh 05-17-2004 07:58 AM

Quote:

Originally Posted by good2laugh
I don't know what I'm doing, and I've just probably done something wrong :rolleyes: .. but should I have all those asterisks, isn't it possible to just have user1, user2, user3, user4, (where user is their screen name)

I've (I hope) attached a screen grab.

I really would appreciate if someone can give me an "idiot type" guide to how to fix this... I really AM code stupid. Thanks if anyone will help.

it's not letting me attach for some reason... so here's kinda what it looks like - except it's spanning two coloumns and there are many more names than this, just added a few to demonstrate.

Most users ever online on a day was 278 on May 9th, 2004. | The following members have already visited the forums today:
1Gilly1 ****************************** , 1seasnbehind* ****************************** , a.fo ****************************** , a1lien1 ****************************** , acanthis* ****************************** , ajax ****************************** , akiraamk ****************************** , almiroty ****************************** , AmyMeara ****************************** , Angin17 ****************************** , Annie ****************************** , aquarius ****************************** , babyalz ****************************** , becc* ****************************** , Bertha ****************************** , Bev* ****************************** , bobbyg ****************************** , BodieM* ****************************** , Bren* ****************************** , Brenda ****************************** , breza25* ****************************** , cancankate ****************************** , caramgui ****************************** , carix ****************************** , Casper Hauser ****************************** , Catheeka ****************************** , cherryxf ****************************** , Cici814* ****************************** , cjxphile* ****************************** , colette* ****************************** , Colin_s ****************************** , Cuits ****************************** , D Gordon* ****************************** , daanii ****************************** , danafan ****************************** , Dannie ****************************** , dasku ****************************** , dcsmick ****************************** , debw* ****************************** , Diane ****************************** , dreamcatcher ****************************** , EllaK ****************************** , emmbright* ****************************** , En Ami ****************************** , estrellazul ****************************** , Eszcd30 ****************************** , EWirth ****************************** , flo73* ****************************** , FlyingCarpet* ****************************** , Foxmulder ****************************** , gadd1960 ****************************** , gadksfan* ****************************** , gillyfan2002 ****************************** , gillyfan2003 ****************************** , Gillytams ****************************** , gillywoz ****************************** , Goldberg ****************************** , grovesa16 ****************************** , Hansie ******************************

jcbklyny 05-17-2004 09:54 PM

I'm using VB 3.01 and everything installed fine. All looked good... until I realized that the Number of Active Users Today being displayed doesn't match up when you use IE and Mozilla... you get 2 different totals.

It seems like when the Number of Active Users Today resets itself at the end of the day IE takes a few hours to start counting again... while Mozilla works fine.

If you view the onlinetoday.php file in either browser there isn't a problem... it only happens when displaying on the forumhome in IE.

Any Ideas? If this was answered in a previous post, please... point me in the right direction.

I had to uninstall this until I get a fix.

Thanks
John

derb 05-17-2004 11:33 PM

nice hack !
could someone please tell me how to get the invisible users count into the totals ?
At the moment only the admin sees the correct one.

derb 05-24-2004 11:57 AM

Quote:

Originally Posted by derb
nice hack !
could someone please tell me how to get the invisible users count into the totals ?
At the moment only the admin sees the correct one.

anyone ???

Battle_Ring 05-24-2004 09:32 PM

how come

Number of Active Users Today: 43
Most users ever online on a day was 43 on 05-24-2004.

that above liek reset every day anyone know how i can fix this
but then

Most users ever online was 135, 05-01-2004 at 12:58 AM.

ctsolutions 05-25-2004 02:28 AM

works near perfectly except that on my site, the usernames are NOT formatted properly. That means all the user are "plain text" no color, nu bold.

Can somebody help ?

Thanks
CtSolutions

Banana 05-29-2004 11:35 PM

Well, just downloaded and installed and it resets at midnight :(

Also, how does one update this with "old" world-records from the previous incarnation of this hack? I can update the datastore table appropriately BUT the current data is cached so the database update is ignored.........

Banana 06-01-2004 01:49 PM

Also (in addition to the above). My install also 'resets' each day at midnight. I've followed the instructions very carefully and re-checked. Does anyone have any clues as to why this might happen that I can investigate?

nickels376 06-01-2004 01:53 PM

It's a per-day reading, so it would reset at 12:00 midnight. Users based on that 24hr period.

-Dom

Banana 06-01-2004 01:57 PM

Sorry, obviously not clear, I mean it doesn't 'save' the most online in a day. So for instance if 100 visited yesterday and then (so far) 50 today - it says "The most users online ever on one day is 50 on Today." rather than "The most users online ever on one day is 100 on Yesterday".


All times are GMT. The time now is 07:22 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.01662 seconds
  • Memory Usage 1,844KB
  • 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
  • (6)bbcode_code_printable
  • (9)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