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)

Mr. Brian 03-17-2004 04:39 PM

Broken link? :ermm:

"Invalid Attachment specified. If you followed a valid link, please notify the sososo"


Quote:

Originally Posted by Gary W
Download these instructions, let me know if they work :)

https://vborg.vbsupport.ru/attachmen...chmentid=17349


Gary King 03-17-2004 04:40 PM

Quote:

Originally Posted by Matthew Lam
Broken link? :ermm:

"Invalid Attachment specified. If you followed a valid link, please notify the sososo"

Because I updated attachments. Download the latest instructions for this hack :)

Mr. Brian 03-17-2004 06:18 PM

Quote:

Originally Posted by Gary W
Because I updated attachments. Download the latest instructions for this hack :)

Hi, thanks for that but what I actually want is to have guest to be included aswell. So does the updated zip file have this funtion?

thanks

Gary King 03-17-2004 11:13 PM

Quote:

Originally Posted by Matthew Lam
Hi, thanks for that but what I actually want is to have guest to be included aswell. So does the updated zip file have this funtion?

thanks

Nope it doesn't have that feature, and I'm not sure if I will be including it because I can forsee the many problems that it shall cause :)

DaPro 03-20-2004 10:59 AM

I tried to install onto vB3 Gold, works fine for me.

Roody 03-20-2004 06:55 PM

Is there a way to make this hack reflective of actual numbers? Here is what I mean. Under "Currently Active Users" on my site it says there was 55 members in Nov. 2003. Under "Number of Active Users Today" it says 34. That seems a bit incorrect. Is there a way to resolve this?

bah never mind stupid me. I just realized one doesnt equate guests and the other one does.

blakkboy 03-22-2004 04:31 AM

Quote:

******************************
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

where does that bit of code go...... i dont understand the CREATE THE FOLLOWING PHRASES thing

SnowBot 03-22-2004 05:18 AM

Quote:

Originally Posted by blakkboy
where does that bit of code go...... i dont understand the CREATE THE FOLLOWING PHRASES thing

Goto Admincp > Languages & Phrases and choose ADD new phrase.

blakkboy 03-22-2004 05:27 AM

thanx plenty

SnowBot 03-22-2004 05:30 AM

Anytime. :)

blakkboy 03-22-2004 05:39 AM

sory i figured it out....

thanx again

SnowBot 03-22-2004 05:47 AM

cool, glad you got it sorted :)

idwf 03-24-2004 06:09 AM

Can anyone get this working on VB3 GOLD?

I cant find anything in the form home that looks like 'todaymaxonline'???

joeychgo 03-24-2004 06:57 AM

worked fine when i upgraded to gold.

idwf 03-24-2004 10:31 AM

Quote:

Originally Posted by joeychgo
worked fine when i upgraded to gold.

urm...I'll try again when i get home, but...This is a fresh copy of VB Gold, urm...in my index.php, i cant find where to insert the code. Can you help me atall?

I've made the database, but..am stuch now. I got it working on RC1,2,3,4.:ermm:

Gary King 03-24-2004 06:59 PM

Quote:

Originally Posted by idwf
urm...I'll try again when i get home, but...This is a fresh copy of VB Gold, urm...in my index.php, i cant find where to insert the code. Can you help me atall?

I've made the database, but..am stuch now. I got it working on RC1,2,3,4.:ermm:

That's strange because I find the code just fine in vB3 Gold :)

idwf 03-24-2004 07:02 PM

Quote:

Originally Posted by Gary W
That's strange because I find the code just fine in vB3 Gold :)

I'll redownload it, its probably me :P


EDIT : I done it! It turns out, i was using the wrong index.php. :nervous:

MooMan65 03-25-2004 12:48 AM

Hrm. I'm having a problem which is probably just because I'm doing something silly on my part, but it's worth a shot.

I've never been able to get this hack to work, I've run the query, edited the index.php file, added and modified the templates and added in the phrases and yet, while it displays all phrases and template-based things correctly, it refuses to parse the PHP code. At least I think it is, as I'm never getting any Usernames in the list or numbers in the stats. I've tried multiple times but with no success either way.

I'm trying to do an install from scratch on vB3 Gold btw.

Any help would be greatly appreciated! It does sound like I'm doing something wrong in the php file mods, or maybe the query, but I'm not too sure.

Nj?rd Eriksson 03-25-2004 10:17 AM

First, let me state that this is an awesome hack, and that I would like to keep it. Thanks to the author and all coders for their work, fixes and improvements.

"Most members ever online on a day" works now. Invisible users are suppressed what is great. The formatting of special users (such as moderators, administrators, &c.) in bold, italics, &c. works, too. The layout is great.

There is, however, still a problem related to time zones. It doesn't matter to what one sets the Default Time Zone Offset in the Admin CP: there are always problems. For demonstration purposes, I set it to GMT:

https://vborg.vbsupport.ru/attachmen...id=17505&stc=1

Every member has now the possibility to define his own Time Zone in the User CP under Edit Options. If I set it to GMT, this is what I get:

https://vborg.vbsupport.ru/attachmen...id=17506&stc=1

If I set it to GMT-9, this is the result:

https://vborg.vbsupport.ru/attachmen...id=17507&stc=1

And worst, and that's the real problem, if I set it to GMT+9, this is the result:

https://vborg.vbsupport.ru/attachmen...id=17508&stc=1

The results obviously depend on the time of the day, but there are always Time Zones for which 0 members are displayed (and this state can last for hours), albeit there are even members online and active at the moment, regardless to what one sets the Default Time Zone Offset in the Admin CP.

Can some advanced coder maybe fix this for all of us who love this hack, please? :)

(Automatic and static DST offsets in the Admin CP and User CP would have to be considered as well, I assume, but I'm no coder.)

Actually, if possible, best would be if the hack would be totally dynamic, i. e. if it displayed the users of the last 24 hours for everyone, regardless of his time zone.

Thanks for all your efforts. Much appreciated. ;)

dillon 03-25-2004 07:31 PM

It seems like I've got my working. However, the Admin/Mods aren't showing up in bold/italics. Any suggestions? I replaced my existing code in index.php as suggested earlier in this thread, but that didn't work.
Thanks.

Yuber 03-27-2004 01:11 PM

Quote:

Originally Posted by Gary W
PLEASE CLICK THE INSTALL BUTTON IF INSTALLED! :)

What does this hack do?

It shows the users who visited your forums in the last 24 hours (or today). This hack works similiarly like the one released for vBulletin 2.

NOTE: If you want to show 'Who was online today' on a separate page from forumhome, then download instructions-newpage.txt and onlinetoday.php instead of instructions-regular.txt

Modifications
  • 1 file modification
  • 3 template modifications
  • 0 queries to run

Features
  • supports and uses phrases
  • usernames are formatted properly
  • invisible users only show to people who are supposed to see them (admins and whoever else you allowed)
  • integrated (makes it so that the Who Was Online bar is now collapseable :)

Screenshots
Look below :)

Credits: Thanks goes to Mystics, where this hack is based on his :)

Thanks for the hack. Will this work with vB 3.0.0 Gold?

sabret00the 03-27-2004 04:11 PM

anyway managed to get this to work on the WOL / online.php yet :(

Gary King 03-27-2004 05:21 PM

Quote:

Originally Posted by sabret00the
anyway managed to get this to work on the WOL / online.php yet :(

Managed, or not managed? lol

sabret00the 03-27-2004 09:40 PM

Quote:

Originally Posted by Gary W
Managed, or not managed? lol

managed i want the who was online today to sit on the bottom of my online.php rather than on the bottom of the Currently Active Users table (forumhome)

Gary King 03-28-2004 01:02 AM

Quote:

Originally Posted by sabret00the
managed i want the who was online today to sit on the bottom of my online.php rather than on the bottom of the Currently Active Users table (forumhome)

Ah, your original post should have had 'anyway' be 'anyone' you mean, right?

BlackxRam 03-28-2004 08:37 AM

Ok... can someone please either upload correct DIRECTIONS for this hack or is there a better one out there? Im not sure if theres 15 pages of errors to be fixed... whats the deal with this hack.... shouldnt this be in BETA?!?!

joeychgo 03-28-2004 08:39 AM

it works fine for gold as is.

Gary King 03-28-2004 02:08 PM

Quote:

Originally Posted by BlackxRam
Ok... can someone please either upload correct DIRECTIONS for this hack or is there a better one out there? Im not sure if theres 15 pages of errors to be fixed... whats the deal with this hack.... shouldnt this be in BETA?!?!

What bugs..?

Ocean 03-29-2004 12:39 AM

This is a nice hack!


But, out of curiosity, what needs to be done in order to make it so that this hack is only visible by Admins or certain User Groups?

Gary King 03-29-2004 01:33 AM

Quote:

Originally Posted by Ocean
This is a nice hack!


But, out of curiosity, what needs to be done in order to make it so that this hack is only visible by Admins or certain User Groups?

In the template, put around the code:

HTML Code:

<if condition="is_member_of($bbuserinfo,6) OR is_member_of($bbuserinfo,X)"><!-- code goes here --></if>
That's for admins and 1 extra usergroup, replace X with the usergroup ID besides 6.

Ocean 03-29-2004 02:35 AM

That did the job perfectly.


Thanks, and thanks for a great hack! :)

sabret00the 03-29-2004 06:37 AM

Quote:

Originally Posted by Gary W
Ah, your original post should have had 'anyway' be 'anyone' you mean, right?

yup my mind was elsewhere :o

vhoang 03-29-2004 06:48 AM

How come i downloaded the hack on 3/28 and installed it successfully but it resets at midnite? From what i have read in this thread, Gary should have fixed the problem.

Whats wrong with me? Did i get the un-updated instruction?

vhoang 03-29-2004 07:02 AM

I have another problem, that is, when i change time-zone, for some timezones it doesnt show any active users (it said 0 and list noone) while there r definitely many users that logged in.

Anyone knows what's going on?

KarateKid 03-29-2004 09:52 AM

Quote:

Originally Posted by vhoang
I have another problem, that is, when i change time-zone, for some timezones it doesnt show any active users (it said 0 and list noone) while there r definitely many users that logged in.

Anyone knows what's going on?

Hi Gary,

thanks for this nice hack. But I have a problem. Every day 0:00 the saved number of visitors refreshs to 0. The entries aren't saved correctly. Did I make a mistake somwhere during installing this hack?

Best Regards

Sebastian

Ocean 03-29-2004 10:31 AM

Well, Karatekid - for what it's worth, I prefer it that way.


After all, this hack is Who Was Online Today, not Who Was Online in the Last 24 Hours.

So, for me, I actually *do* want it to reset at midnight. But that's just my own opinion. :)

KarateKid 03-29-2004 11:31 AM

Quote:

Originally Posted by Ocean
Well, Karatekid - for what it's worth, I prefer it that way.


After all, this hack is Who Was Online Today, not Who Was Online in the Last 24 Hours.

So, for me, I actually *do* want it to reset at midnight. But that's just my own opinion. :)

oh I'm sorry. I meant the record is reset every day.

Tri@de 03-29-2004 11:52 AM

Great!
Installed! :)

Ocean 03-29-2004 12:04 PM

Quote:

Originally Posted by KarateKid
oh I'm sorry. I meant the record is reset every day.

Ah! Now, I understand. :)

Well, for what it's worth - I installed this yesterday, and today it's still showing yesterday for the Record of Most Users Ever Online in a Day. So, if there is still a glitch - it doesn't appear to be affecting all installations.

trafix 03-29-2004 12:30 PM

i just installed ... but

it shows this..

Number of Active Users Today: 0

Most users ever online on a day was 12 on Yesterday. | The following members have already visited the forums today:

But no names are being displayed ... is this dynamic?


All times are GMT. The time now is 07:22 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.01660 seconds
  • Memory Usage 1,836KB
  • 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_html_printable
  • (19)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