Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (57-Vette, Chosen), 43 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 03/24/10
Posts: 8
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#231181 - 11/19/09 08:14 PM # of Users active over X days
Carte Blanche Offline
journeyman
Registered: 07/30/06
Posts: 85
Loc: New Zealand
Hi all,

I posted this Mod suggestion over at UBBDev here.

Thought I would mention it here because there at least seems to be more activity here than there.

I'm guessing due to the request from Rick for mod/hacks to be done there, replies, solutions should be done there smile

Quote:
I'm thinking about a mod to display in a portal island, or better yet, as part of forum statistics portal, the # of users that have been active over some configurable period of time. Even better would be to have it display possibly 3 periods of time, for instance, the # of active users over the past day, week, month.

To define active user, I'm thinking ostensibly of those who've logged in in that time period. Another variant or a modification to this theme would be # who've posted over those time frames.

To wrap that up with a nice bow, even to have an option of expressing that # as a percentage of your total user base. Also, some ability to possibly display right in your face (rather than have to do the math yourself) the percentage of active posters against the overall logging in base on those same time periods.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#231193 - 11/20/09 08:56 AM Re: # of Users active over X days [Re: Carte Blanche]
driv Offline

Pooh-Bah
Registered: 01/10/04
Posts: 2377
Here's the query....

Sql Query:
SELECT Count( * ) AS UserPosts, POST_POSTER_NAME
FROM ubbt_POSTS
WHERE POST_POSTED_TIME > UNIX_TIMESTAMP( CURRENT_DATE ) -86400 *30
GROUP BY POST_POSTER_NAME
ORDER BY UserPosts DESC
LIMIT 60


replace 30 with the number of days
...and 60 with the total number wanted on the list.

I think Rick provided me with this code smile
_________________________
Using version :: 7.5.6
Top
#231220 - 11/21/09 08:28 PM Re: # of Users active over X days [Re: driv]
Carte Blanche Offline
journeyman
Registered: 07/30/06
Posts: 85
Loc: New Zealand
Nah, that's not quite what I'm after. That's a listing of top posters.

What I'm really trying to get to is 1) How many of my users are logging in within the time frame. 2) out of that set, how many of them are actually even making a post. I don't care WHO they are, just the number of users who've logged in that are making posts.

While the number of users making posts is probably the true sense of "active", I'm curious as well to how much of my userbase is at least coming by for a read, even if they're not commenting, and I'm just wanting raw numbers so it's easy to get a feel of it as a percentage of my overall total base.

So, I've got just under 2000 registered users. I kind of want to know, at a easily viewed place, how many of those 2000 are logging in over the past day, week, month. Let's say it's only 300. Then I know that rougly only 1/7th of my total user base is logging in regularly.

Next to that then, if I'm seeing 300 logging in over x period....hmmm...how many are actually posting, let's say I've only got 100 actually posting.

Anyway, that's what I'm looking for.
Top
#231237 - 11/22/09 01:00 PM Re: # of Users active over X days [Re: Carte Blanche]
driv Offline

Pooh-Bah
Registered: 01/10/04
Posts: 2377
Originally Posted By: Carte Blanche
That's a listing of top posters.

Not so.
It is a list of 'active' posters - which is a part of what you are looking for.

But, whatever...
_________________________
Using version :: 7.5.6
Top
#231243 - 11/22/09 03:49 PM Re: # of Users active over X days [Re: driv]
Carte Blanche Offline
journeyman
Registered: 07/30/06
Posts: 85
Loc: New Zealand
You are correct, my mistake.
Top
#231603 - 12/05/09 05:56 AM Re: # of Users active over X days [Re: Carte Blanche]
wanted Offline
stranger
Registered: 01/07/09
Posts: 22
Where would I put this code? I'm interested in it.

Thanks
Top
#231658 - 12/05/09 12:50 PM Re: # of Users active over X days [Re: wanted]
JAISP Offline
old hand
Registered: 02/10/07
Posts: 1144
Code didn't work for me
Top
#231676 - 12/05/09 03:14 PM Re: # of Users active over X days [Re: JAISP]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
have you tried creating a search based one hose parameters and saving it?
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#231708 - 12/05/09 05:28 PM Re: # of Users active over X days [Re: Bad Frog]
JAISP Offline
old hand
Registered: 02/10/07
Posts: 1144
I saved it to a thing in the message board.
Top
#231717 - 12/05/09 06:23 PM Re: # of Users active over X days [Re: driv]
Yarp™ Offline
Registered: 08/30/06
Posts: 1513
Loc: Breda, NL
Originally Posted By: driv
Here's the query....


There is a an easier query without grouping for this:

Sql Query:
select count(*) from ubbt_USER_DATA where
USER_LAST_POST_TIME > UNIX_TIMESTAMP( CURRENT_DATE ) -86400 *30


for posting activity in the last 30 days

Replace USER_LAST_POST_TIME with USER_LAST_VISIT_TIME if "active" for you is also a user that logged in.

Small job to add this to the stats island.


Edited by Yarp™ (12/05/09 06:25 PM)
_________________________
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image