PDA

View Full Version : [Release] Total Users On Today


imported_Tungsten
15 Jul 2003, 19:14
AUTHOR:

Tungsten


DESCRIPTION:

This template modification allows you to display the total number of unique visitors to your site during the current day on your forum home page. It is identical to the statistic shown on the admin control panel's Quick Stats table.

This requires two template modifications: One to the phpincludes_start template and one to the forumhome template.

The modification adds one query to the generation of your forum home page. It has been tested and confirmed to work on vBulletin 3.0.0 Gamma running under PHP 4.3.2.


SUPPORT:

If you have a tweak or an optimization for this mod, please submit it to me privately via PM so that I may test it. If your idea works and is something that we could all benefit from, I will likely add it to the release and will give you credit for your idea.

All other support requests should be submitted in this thread so that others may benefit.


SCREENSHOT:

A screen shot would be pointless. This is a very simple addition to your Who's Online box on the forum home page. :)


UPDATE LOG:

I updated this modification to work with vB3 Gamma as of December 9th, 2003. :)

Dan
15 Jul 2003, 19:23
interesting add on may use it someday

Brad
16 Jul 2003, 07:52
Nice modification, :)

I see you are using the old strpos way to identify the page, now that vB 3's here we dont have to use strpos ;). Thanks to the dev's we have a much quicker way.

Try using this instead:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Just thought id share, its a little bit speeder then the old way, not that you will notice it much :).

Tony G
16 Jul 2003, 08:16
Nice mod, will have to try it out. :)

imported_BarryA
16 Jul 2003, 17:05
Works great... If some of you guys want to see what its like look at this page. I added the word Registered in front as I believe we are only counting registered users here and not guests.

www.FordPower.net/forums

imported_Tungsten
16 Jul 2003, 17:22
Works great... If some of you guys want to see what its like look at this page. I added the word Registered in front as I believe we are only counting registered users here and not guests.

www.FordPower.net/forums
Sweet! A fellow Ford enthusiast and performance board operator. :D

My toy: www.tennesspeed.net/members/tungsten/

Brad
16 Jul 2003, 20:16
Im going to check both your boards out, I get the mustang in april ;)

Zehlek
16 Jul 2003, 22:20
Thanks for sharing

Zehlek
16 Jul 2003, 23:10
It shows the number of people online today. Is there anyway to show the names of the ones online including guests?

imported_BarryA
16 Jul 2003, 23:13
It shows the number of people online today. Is there anyway to show the names of the ones online including guests?
You could list the names of the Registered user pretty easily. Worst case you just just do a select on the user table for everyone with a last login time > yesterday.

As for guests, anything you do with guests is inaccurate and probably should not be included. If an AOL user logs on he may register as 10 guests with his IP jumping all over the place. Dont forget spiders either.. :)

imported_Tungsten
17 Jul 2003, 01:28
As for guests, anything you do with guests is inaccurate and probably should not be included. If an AOL user logs on he may register as 10 guests with his IP jumping all over the place. Dont forget spiders either.. :)

Exxxxactly.

Zehlek
17 Jul 2003, 03:57
You could list the names of the Registered user pretty easily. Worst case you just just do a select on the user table for everyone with a last login time > yesterday.

As for guests, anything you do with guests is inaccurate and probably should not be included. If an AOL user logs on he may register as 10 guests with his IP jumping all over the place. Dont forget spiders either.. :)
Sorry, I dunno much about vB coding for vB3, what do I do to do this for the registered users?

imported_scottct1
17 Jul 2003, 19:38
I installed this in VB3 Beta 3 and its running fine. :)

SmartGnome
17 Jul 2003, 20:34
Installed and works perfectly.

Thanks for sharing. I did put the output in the welcome panel.

hoahongtim
19 Jul 2003, 11:04
wowo, good mod ! however, why we don't list member online today the same mod in vbb 2.30 ?? we will see the member access in our forum !

i very like that, please help me can i hack mod ? thansk a lot !

trilOByte
19 Jul 2003, 15:46
It shows the number of people online today. Is there anyway to show the names of the ones online.....?

I would very much like this too. If anyone knows how to do it, I'd be greatful.

hoahongtim
25 Jul 2003, 17:33
please help me ! hix :( thanks a lot !

higabyte
08 Sep 2003, 10:55
i added this! thank you, i have wanted this for a while...

i have one question though, is the number of users logged somewhere to keep track of users like a statistics page so you can see if your site is being used more or less each day, month, year?

thanks in advance...

imported_chuanse
26 Sep 2003, 04:27
still good for beta 6 or not?

EDIT: yep, works perfect :) thx ;)

higabyte
02 Oct 2003, 04:22
still good for beta 6 or not?

EDIT: yep, works perfect :) thx ;)

i just put it on beta 7, worked like a charm... still would like to know if & or how this could be logged for statistical purposes...

Zachery
02 Oct 2003, 06:28
probally not with out modifing the database and a few files id guess

SmartGnome
14 Oct 2003, 19:53
i just put it on beta 7, worked like a charm... still would like to know if & or how this could be logged for statistical purposes...

Same with me since beta 7 , piity ;)

imported_iKwak
19 Oct 2003, 01:16
Very neat.

Floris
19 Oct 2003, 15:04
Optimized for vbulletin.nl :) And installed there- tnx for sharing :)

imported_iKwak
20 Oct 2003, 05:37
The number of users visited, does it include new visitors or only members?

imported_iKwak
30 Oct 2003, 06:52
Can this hack be tweaked so that the number of users visited can accumulated (day after day) instead of resetting on the next day?

carlitosz
25 Nov 2003, 03:19
Installed and works perfectly.

Thanks for sharing. I did put the output in the welcome panel.

I installed it on Vb3 and is only showing 1. Is not changing =/

Jean147
25 Nov 2003, 12:13
I would very much like this too. If anyone knows how to do it, I'd be greatful.
Yepp, looking for that too. Saw that on some vb3 forums. Any hints?

imported_chuanse
25 Nov 2003, 12:31
Mates, just put a hitcounter on your site if ya want no resets?
free ones enough

imported_Tungsten
09 Dec 2003, 15:31
I have updated this modification to work with the Gamma release of vB3. It should work fine for subsequent releases as well since Jelsoft has stated that templates likely won't change much now.

Visit the first post in this thread to download the updated mod.

gmarik
10 Dec 2003, 12:32
An interesting function would be hosts per hours ...

imported_psyblast
11 Dec 2003, 04:54
so how can we get this to log which members log in, not just a general number of members.

trackpads
14 Dec 2003, 04:20
Nice! Installed it today!!

Rico
16 Dec 2003, 15:01
Where are the files phpincludes_start and forumhome located? I dont see them anywhere.

Zachery
16 Dec 2003, 15:52
there not files silly there templates :)

go into the ACP and open the style manager ;D

idwf
16 Dec 2003, 17:11
what he said.

imported_Tungsten
16 Dec 2003, 18:30
so how can we get this to log which members log in, not just a general number of members.
I've played around with this somewhat and it will require hacking rather than template changes.

A new php file will need to be created (most likely) and at least one new template will need to be added and a modification to the forumhome template will be required.

None of this is too difficult but it is beyond the scope of what is permitted here on vbtemplates and will likely be posted over on vb.org if I decide to take it on as another project.

imported_94DROPTOPZ
04 Jan 2004, 18:55
Will this work on 3.0 Beta7?

bahamut0
25 Feb 2004, 06:11
very nice simple and convenient thanks.:)

dreck
07 Nov 2005, 14:22
GUess this doesnt work with 3.5 considering there is no PHPINCLUDES_START template. :(