vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Most ever Visitors, Posters & Chatters (Add-on) (https://vborg.vbsupport.ru/showthread.php?t=98887)

mkdevo 01-06-2006 01:57 PM

hey paul, here's a question - any chance of ever doing a 'most ever arcade players' to go along with this:

https://vborg.vbsupport.ru/showthread.php?t=101880

?

MGSteve 01-12-2006 12:16 AM

Any reason why the most online seems to stick at 999?

We had over 1,000 online today, but it didn't update the stats...

forums.mg-rover.org if you want to check...

Paul M 01-12-2006 03:37 AM

I can't see any reason for it to stop at 999, there is nothing to limit it in the code.

lifesourcerec 01-12-2006 02:30 PM

Just what I've been looking for... Paul, you da man!

Canelo_Kid 01-14-2006 02:21 PM

I get the same problem where it doesn't register over 999.

http://www.sim-outhouse.com/sohforums/index.php?

vBulletin 3.5.3
FlashChat Integration 2.56
Members who are using flashchat 4.12
Members who have posted on the forum 4.12
Members who have visited the forum 4.12
Most Ever Visitors, Users or Chatters 2.03
Users Who Registered Today 1.0
v3 Arcade 1.0.2

FYI: Turned off all my other plug-ins and tested, still won't exceed 999

Paul M 01-14-2006 06:09 PM

Quote:

Originally Posted by MGSteve
Any reason why the most online seems to stick at 999?

We had over 1,000 online today, but it didn't update the stats...

forums.mg-rover.org if you want to check...

Quote:

Originally Posted by Canelo_Kid
I get the same problem where it doesn't register over 999.

http://www.sim-outhouse.com/sohforums/index.php?

vBulletin 3.5.3
FlashChat Integration 2.56
Members who are using flashchat 4.12
Members who have posted on the forum 4.12
Members who have visited the forum 4.12
Most Ever Visitors, Users or Chatters 2.03
Users Who Registered Today 1.0
v3 Arcade 1.0.2

FYI: Turned off all my other plug-ins and tested, still won't exceed 999

This can be fixed by upgrading your main "Members who have visited the forum" to v4.13 (main thread)

MGSteve - as you run your own modified version, you may have to manually update it, PM me for details.

eXtremeTim 01-14-2006 06:27 PM

Feel free to incorporate my users reg today if you wish.

Canelo_Kid 01-14-2006 09:01 PM

I updated that

Quote:

vBulletin 3.5.3
FlashChat Integration 2.56
Members who are using flashchat 4.12
Members who have posted on the forum 4.12
Members who have visited the forum 4.13
Most Ever Visitors, Users or Chatters 2.03
Thanks for helping!

Canelo_Kid 01-14-2006 09:08 PM

It works now, dumb me I missed updating that plugin...

Thanks again eXtremeTim, I love your additions to vBulletin!

Paul M 01-14-2006 11:00 PM

Quote:

Originally Posted by eXtremeTim
Feel free to incorporate my users reg today if you wish.

That code looks very familiar :)

I'll look at adding it to this when I next have time to update it. :D

Quote:

Originally Posted by Canelo_Kid
Thanks again eXtremeTim, I love your additions to vBulletin!

:confused:

Canelo_Kid 01-15-2006 09:48 AM

oops want to thank 'Paul M' for the additions, was excited I got the routines to work and messed up. I do want to thank eXtremeTim for helping.

Wild Bronco 01-18-2006 05:39 PM

Is the at phrase translateable?

I am having a hard time finding it in VB cp

Paul M 01-18-2006 06:04 PM

Yes, it's the phrase called "at_2".

Wild Bronco 01-18-2006 06:58 PM

Found it :)

Gripemaster 01-19-2006 11:37 AM

*Installed*

Thank you!

Totti 01-23-2006 01:05 PM

look at the posts from #44 to #48

Paul M 01-23-2006 04:33 PM

Quote:

Originally Posted by Totti
look at the posts from #44 to #48

What about them ?

Totti 01-23-2006 05:13 PM

i could swear there asked somebody about this 999er bug ... :D

m_k 02-23-2006 09:47 PM

<clicks install>

thanks :-)

JakeS 02-26-2006 09:32 AM

Installed Working a-o-k :)

MorrisMcD 03-09-2006 02:20 AM

What table/field is the most located... I migrated to a new server from 3.0 and that info I didnt end up moving over.. I still have the old board up but out of productuion, so I can see what date had the most visitors and how many.. But can I change it on the new one to reflect that old 'record'

Paul M 03-09-2006 03:59 AM

Not really - at least not without editing the database, not an easy thing to do.

MorrisMcD 03-09-2006 04:02 AM

Quote:

Originally Posted by Paul M
Not really - at least not without editing the database, not an easy thing to do.

No big deal.. Our busy times start again in the summer and sometime this year we will break all those records anyway as this is our 3rd year.. Thanks for responding

microzott 03-10-2006 04:47 PM

hi paul

i have notice a problem with this product, mybe i am not understanding correctly,
but could you explane me how it is possible that the total members that have visited the forum today are 83
and
the most members online in one day was 84, today?

i have tested several times the product in both the to ways (Set to 'yes' for a rolling 24 hour display, leave as 'no' to reset the count at each members midnight.), but the result is the same.

MorrisMcD 03-10-2006 06:13 PM

Quote:

Originally Posted by microzott
hi paul

i have notice a problem with this product, mybe i am not understanding correctly,
but could you explane me how it is possible that the total members that have visited the forum today are 83
and
the most members online in one day was 84, today?

i have tested several times the product in both the to ways (Set to 'yes' for a rolling 24 hour display, leave as 'no' to reset the count at each members midnight.), but the result is the same.

It may have something to do with invisible users... That is kinda odd though

:confused:

Paul M 03-10-2006 06:33 PM

Actually, this has been covered in the past - it's a side effect of users in different timezones. You have (at least) one user who is in a timezone ahead of you (i.e. when it's 8pm for you, it's 11pm for them). Because of this, they have seen more people than you (i.e. 84, compared to your current 83) because the "most" count is server wide, it gets updated to 84. The other count (83) is unique to you, and will catchup with the other count as the day progresses.

kazido 03-25-2006 11:51 AM

Maybe a stupid question but how am I supposed to get this to work in CMPS 2.1.0? thx

Paul M 03-25-2006 04:38 PM

No idea, I don't use it. I suggest you ask in the VBA forums.

kennn 04-26-2006 03:23 PM

I've been running this hack along with who has visited and who has posted for a week or so now. I just noticed that the "most" stats do not seem to hold. I have a very small private family forum and earlier this week we had 8 visitors in one day - the "most" stat reflected that for several days. Today, we had 6 visitors and the "most" stat has changed to show 6 as the most ever visitors when it should still be showing 8. Same applies for posters...most should be 6 (and was 6 for a while) but now is showing 4 as the most ever posters.

Any ideas? Thanks.

Paul M 04-26-2006 04:24 PM

The only way that could happen is if something corrupted your datastore and reset the counts to zero, otherwise it's not possible without manual intevention, since the stored count is only updated if the current count is larger.

kennn 04-26-2006 06:05 PM

Hmmm...well it definitely happened and I see no signs of database corruption. Guess I'll just have to keep an eye on it and see how it goes. Thanks for the response.

kennn 04-26-2006 08:40 PM

This really has me curious and I happened to do a MySQL dump yesterday to back up my database, so I decided to do another one today and compare files.

From 04/25/2006:

Code:

INSERT INTO `vb_datastore` VALUES ('maxloggedin', 'a:6:{s:9:"maxonline";i:5;s:13:"maxonlinedate";i:1144430493;s:11:"maxvisitors";i:8;s:15:"maxvisitorsdate";i:1145928403;s:10:"maxposters";i:6;s:14:"maxpostersdate";i:1145918246;}');
From 04/26/2006:

Code:

INSERT INTO `vb_datastore` VALUES ('maxloggedin', 'a:6:{s:9:"maxonline";i:5;s:13:"maxonlinedate";i:1146065294;s:10:"maxposters";i:5;s:14:"maxpostersdate";i:1146067830;s:11:"maxvisitors";i:6;s:15:"maxvisitorsdate";i:1146065007;}');
As you can see, yesterday the maxvisitors was 8 and maxposters was 6 and today they are 6 and 5.

I did a file comparison between both database dumps and there is nothing out of the ordinary - just the usual changes from new posts, events, cron jobs running, etc. No sign of hacking or any corruption that I can see.

I would love to know how these records got changed. All other stats and information are spot on as they should be, even the "most online at once" which VB itself maintains is still correct.

Paul M 04-26-2006 09:24 PM

Well something is resetting the counts - possibly you have something that is rewriting the maxloggedin record without the maxposters & maxvisitors data.

kennn 04-26-2006 10:37 PM

These are the hacks I've got installed:

Number of Threads in User Profile
Show An Avatar On Who's Online
Mood Hack 3.5
bbSpoiler
Timezone Image In Profile
Members Who Have Posted Today
Who Has Read A Thread
Borgs BBCode Pack
Forum Skin In Profile
Join Days
Simple Breadcrumb Below Last Post
Separate Sticky & Normal Threads
Members Who Have Visited Today
Most Ever Visitors, Posters, Chatters

I've gone through the code of each and none of them make any reference to the maxloggedin datastore (except of course for "most ever visitors, posters, chatters").

I am also running vbAdvanced CMPS which does have a "who's online" module which makes references to maxloggedin. Do you think it could be the culprit? Thanks.

kennn 04-26-2006 10:43 PM

I think this is the salient portion of the onlineusers module for CMPS:

Code:

        $maxusers['maxonline'] = $vbulletin->maxloggedin['maxonline'];

        if ($vbulletin->maxloggedin['maxonline'] <= $totalonline)
        {
                $maxusers['maxonline'] = $totalonline;
                $maxusers['maxonlinedate'] = TIMENOW;
                $db->query_write("UPDATE " . TABLE_PREFIX . "datastore SET data='" . addslashes(serialize($maxusers)) . "' WHERE title = 'maxloggedin'");
        }

        $recordusers = $maxusers['maxonline'];
        $recorddate = vbdate($vbulletin->options['dateformat'], $vbulletin->maxloggedin['maxonlinedate'], 1);
        $recordtime = vbdate($vbulletin->options['timeformat'], $vbulletin->maxloggedin['maxonlinedate']);

If you think this might be the culprit, do you have any suggestions on changes I could make to the CMPS module to keep its functionality but prevent it from overwriting your plugin's data (if that is what it is doing)?

I guess I could always turn off that module but I would like to keep it if possible. Thanks!

Paul M 04-27-2006 07:27 AM

Ouch, yes, that is the culprit - it's using an sql query to directly write the maxloggedin record, erasing the maxposters and visitors data, that's very bad of whoever wrote it, the correct way is to use the build_datastore() function;

Try changing this line ;

PHP Code:

$db->query_write("UPDATE " TABLE_PREFIX "datastore SET data='" addslashes(serialize($maxusers)) . "' WHERE title = 'maxloggedin'"); 

to this

PHP Code:

build_datastore('maxloggedin'serialize($vbulletin->maxloggedin)); 


kennn 04-27-2006 03:01 PM

Much thanks, Paul!

I've added your code change to my CMPS onlineusers module and will see how it goes. Hard to believe I'm the first to encounter this. I assume a lot of people are using vBAdvanced CMPS and your plugin. If this change stops the CMPS onlineusers module from stepping on the "most" plugin's toes, I'll call it to their attention over at vbadvanced.com. Thanks again! :)

MorrisMcD 05-06-2006 12:41 AM

Quote:

Originally Posted by kennn
Much thanks, Paul!

I've added your code change to my CMPS onlineusers module and will see how it goes. Hard to believe I'm the first to encounter this. I assume a lot of people are using vBAdvanced CMPS and your plugin. If this change stops the CMPS onlineusers module from stepping on the "most" plugin's toes, I'll call it to their attention over at vbadvanced.com. Thanks again! :)

Wow.. That is some bull.. Anyway.. I disabled that plugin.. That sucks.. It happened to me so I came in search of answers, and I guess I ran into the same problem.. Its the first time its ever happened though which is weird. Also what is weird is it now says the most guests even online was 266 last night at 2am.. I highly doubt this.. My site usually has no more than 30 members/guests online.. Before the stats were reset I think we managed to have like 100 on a one time.. But never 266 guests!

any idea why?

Paul M 05-06-2006 02:20 AM

You obviously had 266 guests - probably a load of spiders.

MorrisMcD 05-06-2006 03:32 PM

Quote:

Originally Posted by Paul M
You obviously had 266 guests - probably a load of spiders.


You think so?? I will check the logs.. I just thought it was odd.. I disabled guest access all last week due to the NFL Draft because I run a Bengals site.. Maybe they were queued up just waiting for it lol


All times are GMT. The time now is 10:09 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.01377 seconds
  • Memory Usage 1,835KB
  • 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
  • (3)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
  • (2)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