PDA

View Full Version : [Release] Total Users On Today


imported_Tungsten
07-14-2003, 10:00 PM
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
07-15-2003, 05:23 PM
interesting add on may use it someday

Brad
07-16-2003, 05:52 AM
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:

if (THIS_SCRIPT == 'index')
{
// your script here
}

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

Tony G
07-16-2003, 06:16 AM
Nice mod, will have to try it out. :)

imported_BarryA
07-16-2003, 03:05 PM
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
07-16-2003, 03:22 PM
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
07-16-2003, 06:16 PM
Im going to check both your boards out, I get the mustang in april ;)

Zehlek
07-16-2003, 08:20 PM
Thanks for sharing

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

imported_BarryA
07-16-2003, 09:13 PM
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
07-16-2003, 11:28 PM
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
07-17-2003, 01:57 AM
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
07-17-2003, 05:38 PM
I installed this in VB3 Beta 3 and its running fine. :)

SmartGnome
07-17-2003, 06:34 PM
Installed and works perfectly.

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

hoahongtim
07-19-2003, 09:04 AM
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
07-19-2003, 01:46 PM
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
07-25-2003, 03:33 PM
please help me ! hix :( thanks a lot !

higabyte
09-08-2003, 08:55 AM
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
09-26-2003, 02:27 AM
still good for beta 6 or not?

EDIT: yep, works perfect :) thx ;)

higabyte
10-02-2003, 02:22 AM
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
10-02-2003, 04:28 AM
probally not with out modifing the database and a few files id guess

SmartGnome
10-14-2003, 05:53 PM
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
10-18-2003, 11:16 PM
Very neat.

Floris
10-19-2003, 01:04 PM
Optimized for vbulletin.nl :) And installed there- tnx for sharing :)

imported_iKwak
10-20-2003, 03:37 AM
The number of users visited, does it include new visitors or only members?

imported_iKwak
10-30-2003, 04:52 AM
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
11-25-2003, 01:19 AM
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
11-25-2003, 10:13 AM
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
11-25-2003, 10:31 AM
Mates, just put a hitcounter on your site if ya want no resets?
free ones enough

imported_Tungsten
12-09-2003, 01:31 PM
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
12-10-2003, 10:32 AM
An interesting function would be hosts per hours ...

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

trackpads
12-14-2003, 02:20 AM
Nice! Installed it today!!

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

Zachery
12-16-2003, 01:52 PM
there not files silly there templates :)

go into the ACP and open the style manager ;D

idwf
12-16-2003, 03:11 PM
what he said.

imported_Tungsten
12-16-2003, 04:30 PM
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
01-04-2004, 04:55 PM
Will this work on 3.0 Beta7?

bahamut0
02-25-2004, 04:11 AM
very nice simple and convenient thanks.:)

dreck
11-07-2005, 12:22 PM
GUess this doesnt work with 3.5 considering there is no PHPINCLUDES_START template. :(