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)

Keith 09-05-2002 08:24 PM

Using the database access, I found this in the template maxloggedin.

5 1031260119 22 1031260119

I'm assuming this is actually 2 entries, quantity and date?

Tony G 09-08-2002 03:23 AM

Quote:

Originally posted by Keith
I have same issue since day 1, resets back to 0 (zero) every day as opposed to storing and showing "most ever". I'm also using VBPortal, but dont understand how that would effect the hack. If it is interfering with the hack, there's no instructions on how to handle or fix.

Portal doesn't use the same params/variables as in the hack, unless I'm missing something. The forum index.php page generated is separate from the main portal page.

Like most of us it's the timezone problem that resets it, and still no fix.

mbcguru 09-08-2002 02:24 PM

I can't say it's a time zone problem on my forum. My "most users ever online" reflects current online. It fluctuates up and down all day. My "most ever online in a day" reflects the total that have been on that current day and resets at the beginning of the next day, then starts counting up again. The total for the day resets correctly.

Opie 09-09-2002 04:12 AM

My onlinetoday.php is blank?

Pretty sure i did it right and im using 2.2.7.

Edit--
Nevermind i didn't add a (s) on one of the templates haha

Keith 09-13-2002 01:51 AM

To all you php coding Einsteins!! :D :D Will this work?

What if we set the timezone to -5GMT, then hide this setting in the registration and profile area so members cannot change it. Also hide it from incoming members who are registering, then reset all my current members in the database to this same timezone.

Theoretically, the server time, the VBulletin time and all members would then be in the same timezone right? I have to mull this over some more, it's just a thought. Have no idea how to hide this though yet.

Keith 09-13-2002 04:37 PM

Well, that didn't work. Hiding the timezone piece in all the templates and resetting all the members to the same timezone as the vbulleting timezone did absolutely nothing. So the search for a fix continues. :(

Keith 09-13-2002 04:44 PM

Firefly, the hack appears to work fine here. Given you have members all around the world and the resulting amount of different timezones, why does it work here?

PHiXTiT 09-14-2002 03:22 AM

Great HaCK!

ThanXZ

5 STaRZ

TheEDIGuy 09-18-2002 12:51 PM

I'm running into the same problem. Glad it's not just me. Hopefully looking for a fix! Otherwise, great hack.

TheEDIguy
Fans of Reality TV
http://www.fansofrealitytv.com

TheEDIGuy 09-20-2002 10:54 AM

Ah, screw it. I'm uninstalling. This is making me look bad, resetting the Most Users Online Ever count. No one seems to be near a solution, and the people who have it working aren't talking.

Mystics 09-20-2002 11:12 AM

Most people (maybe all....) who have the reset problem have installed vBIndex....uninstall this and it will work fine.

Enjoy Marcus 09-21-2002 03:40 PM

why uninstall it? why not try and find a fix for it?

Keith 09-21-2002 09:47 PM

Hi Mystics,

Explain VBindex? I don't have VBindex.

I'm using some of the features, but not the "most users ever" because of the reset problem. Other than that annoying issue, I love the hack. Thanks for the work putting it together.

EnriqueHavoc 09-23-2002 02:42 PM

i have the same problem of fluctuating maxusers using vbhome. not using this script, but it seems like a similar problem with recordusers.

i believe it stopped working after i added a $bburl to a link somewhere(forget where and which now) to get the rest of the whosonline links to work on my index page.

not sure how to fix it, but i ~suspect a link to $maxusers or $recordusers somewhere needs to be redirected back to the /forum directory

NTLDR 09-23-2002 03:20 PM

Quote:

Originally posted by Mystics
Most people (maybe all....) who have the reset problem have installed vBIndex....uninstall this and it will work fine.
This is no longer the case with Version 2.0 upwards, total online users today and online now work 100% correctly now.

NexDog 09-23-2002 07:14 PM

Can someone email or PM the text file (instructions) as my browser screws all text files. :(

NexDog 09-23-2002 09:41 PM

All fixed. :)

Tony G 09-26-2002 08:51 AM

Quote:

Originally posted by Keith
Firefly, the hack appears to work fine here. Given you have members all around the world and the resulting amount of different timezones, why does it work here?
Pretty sure he fixed the hack himself. No shared code yet though.

Keith 09-26-2002 12:14 PM

True, or there's something else going on here. We know there are participants from all over the world on this forum, so I'm still scratching my head wondering how it is the hack works here.

NexDog 09-27-2002 12:24 PM

Definitely have issues on my board:

http://hostnexus.com/gutted.jpg

If I set my forum timezone to Central Standard Time (my timezone is in AU):

http://hostnexus.com/gutted2.jpg

Mutt 09-28-2002 10:23 AM

I know everyone is having different problems and I saw a couple people who were having the same problem as me. The record online at one time and record online in one day kept resting to however many were online at that moment.

I'm not sure why this changed anything, but it did

change this
PHP Code:

$maxusers=explode(" "gettemplate('maxloggedin',0,0)); 

to this
PHP Code:

$maxloggedintemplate=$DB_site->query_first("SELECT template FROM template WHERE title='maxloggedin' AND templatesetid='-2'");
$maxusers=explode(' ',$maxloggedintemplate['template']); 

now it works fine

great hack by the way. I have it set up on the who's online page

BlackTiger 10-14-2002 10:11 PM

Great hack! Thanks!

Ageel 10-16-2002 08:18 AM

hi there

thanx for the great hack

but I tried it and it didn't work for me :(

the hack shows the greatest active user count that have been on my site at one day, and the date

but it does not show me the users the had visited my site today and their usernames...

I have VB 2.2.6

I did all modifications as mentioned in the installation file exactly..

can anybody help me

a snapshot of my forum is attached,

the red rectangel indecates the place where user names should be,
and the green one indicates where the user count should be
and the the blue one indicates where the most active users count and the date should be (this is the only thing working)


help me

X-Fan 10-23-2002 04:02 PM

Apologies in advance if this has already been asked, but is it possible to just get the number of registered members and unregistered guests that have visited between midnight the previous day through to midnight the current day?

FleaBag 10-28-2002 11:08 PM

Working on 2.2.8.

Larry@IOG 11-06-2002 11:44 PM

How do I get the table of users to show up as a link from the text: Number of Active Users Today

Larry

desi 11-13-2002 04:47 AM

nice mod :)

works perfectly fine with 2.2.8 ;)

thanks

seangworld 11-23-2002 12:42 AM

that was very easy to do, nice job and thank you.

Warlord 11-23-2002 08:47 PM

Great Hack... seems to work on 2.2.8 too. :)

*Clicks install*

XFLBret 11-26-2002 12:16 PM

Hello...

I have a problem with this hack. It was working ok, but when I upgraded to 2.2.8 and tried to reinstall this hack, I have the same problem...

Everything works fine, except now it always says "Most users ever online on a day was 202 on 02-01-1996" Only had the forums since this last May, and we have never cracked 80 in a day. And, as I said, this worked before I upgraded to 2.2.8.

I'm not a programmer, nor a php expert, but I have double-checked the directions and my following of them at least five times now, and cannot find the problem.

my forums are at www.pcfootball.net/forums

thanks for your help.

Mystics 11-26-2002 03:56 PM

@XFLBret

Execute this Query to restart the counter:

UPDATE template SET template="27 1034132820" WHERE title="maxloggedin"

XFLBret 11-26-2002 10:12 PM

Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /usr/local/etc/httpd/htdocs/forums/admin/query.php on line 29

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/etc/httpd/htdocs/forums/admin/query.php on line 33

that's what I get when I try to run the query......

XFLBret 11-26-2002 10:13 PM

well, i loook at the board, and it appears to be working...for now

Floris 11-30-2002 12:26 PM

With 2.2.7 I didn't had any problem with this hack, now with 2.2.9 i can't seem to keep the number of the max and the number seems to be off.

I can't seem to find a fix in the thread either.

Visionray 12-05-2002 11:10 AM

This hack doesn't seem to work correctly. There are problems all over the place.

For example, it is 8am where I am right now. Now, I know that there were many users who visited the site at 4am my time. Yet they are not displayed on "number of active users today". Other people who posted at 5 am ARE displayed.

Is this based of server time or what? There seem to be too many different answers. MY server is U.S. pacific time, so its only 3 hours behind my time.

Now, anyone who posted at 4 am (my time) should be displayed on who's online. (being that it would be 1am server time)

Now if I go to log on as a user who lives in England, the number of active users is 0. If its supposed to be set on Pacific time, then there should be a lot of users displayed, but they are not.

Visionray 12-05-2002 11:13 AM

Another thing. I just installed this hack today

Date - Dec 5th, 2002

It says
"number of active users today 6

"most users ever online in a day 10 on Dec 5th!!!

How in the world is that possible? How can I have the most be ten in a day (which is today) yet it says the number of active users today was 6?

Doesn't make any sense.

Visionray 12-05-2002 11:20 AM

Quote:

Originally posted by Velocd
I'm having a weird problem with this hack. Recently I found my homepage was generating an abnormal amount of queries for the small amount of hacks consisting on it. It was creating 43 queries, and that is even after I included all the templates in the $templateused="" list.

Well I was going through the index.php code, trying to find the suspect involved and I reached this hack. I was basically commenting out all the hacks individually on my index.php till I found which one was creating the excessive queries. When I commented out the who-is-online-today hack, it reduced my queries by 20! That makes me sad though, because this is one of my favorite and most useful statistical hacks I have :(

I installed everything perfect, does anyone know why this could be happening?? PM me if you would like to see my index.php.

Regards,
Velocd

I don't know why that would happen. This hack only added one query to my page.

Visionray 12-05-2002 06:36 PM

ok im starting to realize how this hack works. I wish there was a way to base it off the user's time, but I guess that is not possible. The unfortunate thing is, since my server is in California, users from Europe will never see who was online that day unless they are browsing my forum in the middle of the night and early morning hours their time. Eh well. Its still cool, works for me! :D

eggz 12-05-2002 06:40 PM

I've just installed this hack on my site and seem to be getting the same problem as quite a few others. With 2.2.9 the 'max users online at any time' figure is just a repeat of the current number of users online, with the current time and date (eg it rises and falls where it should not). Having said that I have not seen any other problems with it so good hack!

Can anyone throw any light on the problem?

Thanks,
Oliver

Attrox 12-06-2002 11:34 PM

I havn't gotten any problems with my installation, it's worked like a charm. Great hack, Mystics, it's very well done.


All times are GMT. The time now is 09:28 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.01914 seconds
  • Memory Usage 1,825KB
  • 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
  • (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
  • (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