Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
IWT - Time Spent Online Details »»
IWT - Time Spent Online
Mod Version: 1.2.6, by Ideal Web Tech (Coder) Ideal Web Tech is offline
Developer Last Online: May 2013 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (39 votes - 4.38 average) Installs: 268
Released: 13 Mar 2010 Last Update: 13 Jun 2011 Downloads: 1480
Not Supported DB Changes Uses Plugins Additional Files  

Notice
There are two versions of this modification. This is the vBulletin 4.x version, you can find the vBulletin 3.8 version here: http://www.vbulletin.org/forum/showthread.php?t=243221

Current Stable Version
Version 1.2.6

What is it?
This modification will add a counter to your forums that will record/track how much time your users have spent online. And output it in various sections of the site (EX: Time Online: 5 Months 2 Weeks 1 Day 15 Hours 44 Minutes 33 Seconds).

Features
  • Total Time Online in Postbit & Ministats block in the profile
  • Average Time Online (Per Day) in Postbit & Ministats block in the profile
  • Leader Board Displaying Time Online & Average Time Online (Per Day) for all the sites members
  • Cumulative Time Online on Leader Board & Stats box of FORUMHOME

Demo
You can see this product in action here.

Settings
Admin Control Panel Options to Toggle:
  • Entire System
  • Show Total Time in Postbit/Profile
  • Show Average Time Per Day in Postbit/Profile
  • Use Short Phrases (Ex. "1 Min 5 Secs" instead of "1 Minute 5 Seconds")
  • Use Micro Phrases in Postbit (Ex. "32d 12h 44m")
  • Display Cumulative Time Online on Leader Board/Forumhome
  • Leader Board/Navbar Link Enabled

Installation/Upgrade
See included file.

Release Notes
Version 1.1.1
  • Added the average time per day function
  • Added 4 settings used for controlling display of the Time Online and Avg. Time Online for both profile and postbit.
  • A few optimizations for memory/performance
Version 1.2.0
  • Added Leader Board Displaying Time Online & Average Time Online (Per Day) for all the sites members
  • Added Cumulative Time Online on Leader Board
  • Added Cumulative Time Online on Stats box of FORUMHOME
  • Added Numerous new settings for controlling the system
Version 1.2.1
  • Fixed a Bug resulting in the timestamp for date installed not setting correctly.
Version 1.2.2
  • Updated postbit template code.
Version 1.2.3
  • Added Postbit Micro Phrases
  • Added Template Group
Version 1.2.4
  • Moved functions to a file.
  • Added Time Spent Online to the Who's Online.
  • vBulletin 3.8 Version Released
Version 1.2.5
  • Fixed a timestamp flaw in the average time spent online function.
Version 1.2.6
  • Fixed a Bug causing the postbit to show invalid average online times in vB 4.1.x.
Known Bugs
  • Currently none.
Resolved Bugs
  • Function definition problem causing scripts that utilized the postbit factory without the vbulletin global file being initialized, such as the vBcms commenting engine, to display errors. (version 1.2.0)
  • Bug resulting in the timestamp for date installed not setting correctly. (version 1.2.1)
  • Bug causing the postbit to show invalid average online times in vB 4.1.x. (version 1.2.6)
Planned additions
We currently are talking about making an average time per day (similiar to the posts per day) (Added in version 1.1.1)
We also have plans to make a leaderboard for so people can see who spends the most time floating around the site. (Added in version 1.2.0)
We are planning to add in more settings at some point to give quite a bit more control over the system.
(Added in version 1.2.0)

Support
This modification is released for free and as such we don't officially support it, but as time permits we will try to offer support on it. You are more likely to get a response over at our site as we wont be checking this thread frequently.

This modification brought to you by Ideal Web Technologies.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	forumhome_stats_block.png
Views:	1347
Size:	6.7 KB
ID:	114090Click image for larger version

Name:	leader_board.png
Views:	1104
Size:	21.7 KB
ID:	114091Click image for larger version

Name:	postbit.png
Views:	1746
Size:	18.5 KB
ID:	114092Click image for larger version

Name:	profile_mini_stats.png
Views:	1567
Size:	14.1 KB
ID:	114093

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
IWT - Time Spent Online Ideal Web Tech vBulletin 3.7 Add-ons 72 11 Mar 2010 14:29

  #46  
Old 16 Mar 2010, 16:19
War.Frog's Avatar
War.Frog War.Frog is offline
 
Join Date: Aug 2009
My only problem with this mod is the "Average Time Online Per Day" statistic. It appears that it uses either the member's registration date or date forums came online as the numerator.

Unfortunately, for long-standing boards this makes for nearly useless information. For instance, my online time since installation two days ago is a whopping 26+ hours, yet my average time online is 8 minutes.

Can we please have an option to change that numerator to install date? This would normalize that number and make it always right. Alternatively, if there a place in the code I can go to change it?
Reply With Quote
  #47  
Old 16 Mar 2010, 18:10
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Originally Posted by War.Frog View Post
My only problem with this mod is the "Average Time Online Per Day" statistic. It appears that it uses either the member's registration date or date forums came online as the numerator.

Unfortunately, for long-standing boards this makes for nearly useless information. For instance, my online time since installation two days ago is a whopping 26+ hours, yet my average time online is 8 minutes.

Can we please have an option to change that numerator to install date? This would normalize that number and make it always right. Alternatively, if there a place in the code I can go to change it?
War.Frog, it does the Average Time Online calculation based on the following:
  1. The timestamp of when the script was installed
  2. The timestamp of when the user registered if they registered after the script was installed

Now I did look though the code again, and as far as I can tell it's working just fine. If you are positive its not working still, maybe try un-installing and re-installing, but be warned doing that will clear the total time for all your users.

If anyone else believes they are having this problem please let me know and I'll see about having our Lead Developer look over the code again.
Reply With Quote
  #48  
Old 16 Mar 2010, 18:25
War.Frog's Avatar
War.Frog War.Frog is offline
 
Join Date: Aug 2009
Originally Posted by Ideal Web Tech View Post
War.Frog, it does the Average Time Online calculation based on the following:
  1. The timestamp of when the script was installed
  2. The timestamp of when the user registered if they registered after the script was installed

Now I did look though the code again, and as far as I can tell it's working just fine. If you are positive its not working still, maybe try un-installing and re-installing, but be warned doing that will clear the total time for all your users.

If anyone else believes they are having this problem please let me know and I'll see about having our Lead Developer look over the code again.
Yes sorry I didn't mean to suggest it wasn't working - it's a great mod and working as designed. I just wanted the option of changing the numerator from registration date to installation date.

By using installation date and registration date, it's looking at two very different variables for calculating average time spent online. If user XYZ has been registered for two years it will take weeks before his average time online begins to look remotely correct or informational.

For me, I'd rather the formula calculate the average time online starting at install time (not registration date)...or both if that's preferable or easier. That way users won't be writing me saying, "c'mon that's ridiculous...I spend way more than 8 seconds a day on here!".
Reply With Quote
  #49  
Old 16 Mar 2010, 18:29
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Originally Posted by War.Frog View Post
Yes sorry I didn't mean to suggest it wasn't working - it's a great mod and working as designed. I just wanted the option of changing the numerator from registration date to installation date.

By using installation date and registration date, it's looking at two very different variables for calculating average time spent online. If user XYZ has been registered for two years it will take weeks before his average time online begins to look remotely correct or informational.

For me, I'd rather the formula calculate the average time online starting at install time (not registration date)...or both if that's preferable or easier. That way users won't be writing me saying, "c'mon that's ridiculous...I spend way more than 8 seconds a day on here!".
No its supposed to use which ever of the 2 checks is newer so for people who registered before it installed it should be using the installed timestamp (why we had to clear the stats because of a bug this creates with time existing before install) and if they registered after then it should use their registration date. It was done like this to try and be as accurate as possible in the calculations.
Reply With Quote
  #50  
Old 16 Mar 2010, 18:35
War.Frog's Avatar
War.Frog War.Frog is offline
 
Join Date: Aug 2009
Oh!!! Thank you for that. Hmm...ok, then something got funky in my upgrade. I'll uninstall and reinstall.
Reply With Quote
  #51  
Old 16 Mar 2010, 18:47
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Originally Posted by War.Frog View Post
Oh!!! Thank you for that. Hmm...ok, then something got funky in my upgrade. I'll uninstall and reinstall.
If you still continue to notice funny statistics please let me know. I know this mod is not officially supported, but we would still like to make sure its working as best we can in our free time.
Reply With Quote
  #52  
Old 16 Mar 2010, 19:46
War.Frog's Avatar
War.Frog War.Frog is offline
 
Join Date: Aug 2009
Originally Posted by Ideal Web Tech View Post
If you still continue to notice funny statistics please let me know. I know this mod is not officially supported, but we would still like to make sure its working as best we can in our free time.
Thanks so much. I uninstalled and reinstalled at 2:40 today and got this board stat at the one hour mark so far:



It looks like it's still using the registration date of approx 200 days. Any way I can correct this?
Reply With Quote
  #53  
Old 16 Mar 2010, 19:55
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Originally Posted by War.Frog View Post
Thanks so much. I uninstalled and reinstalled at 2:40 today and got this board stat at the one hour mark so far:



It looks like it's still using the registration date of approx 200 days. Any way I can correct this?
Hmm... I will see about having our lead developer look into it if he has the time to.
Reply With Quote
  #54  
Old 17 Mar 2010, 02:02
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Okay, we have found the problem and have uploaded a new version that will fix the problem. If anyone notices this problem after this date please let me know. Now for the bad news, you will once again have to purge all your user's current total times online. Sorry but hopefully this will be the last time that is needed to be done, although it was caught quickly so you wont lose too much hopefully.
Reply With Quote
  #55  
Old 17 Mar 2010, 02:18
War.Frog's Avatar
War.Frog War.Frog is offline
 
Join Date: Aug 2009
Awesome. I just installed it and it's working! Thanks so much for your help!
Reply With Quote
  #56  
Old 17 Mar 2010, 16:23
gsmlover4u gsmlover4u is offline
 
Join Date: Jan 2007
installed and working fine
Reply With Quote
  #57  
Old 17 Mar 2010, 17:52
aaronrand aaronrand is offline
 
Join Date: Jan 2010
got a bit of a spacing issue on 4.0.1 , as shown below, on both "Use Short Phrases", yes and no. same error occurs.
seems to be missing a <br> or something when installed
with the post thanks hack.
Attached Images
File Type: png 2010-03-17_1051.png (16.8 KB, 17 views)
Reply With Quote
  #58  
Old 18 Mar 2010, 04:44
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Originally Posted by aaronrand View Post
got a bit of a spacing issue on 4.0.1 , as shown below, on both "Use Short Phrases", yes and no. same error occurs.
seems to be missing a <br> or something when installed
with the post thanks hack.
A fix to that issue is included in the new version posted.
Reply With Quote
  #59  
Old 18 Mar 2010, 05:50
sulasno sulasno is offline
 
Join Date: Feb 2010
not sure whether this is a bug
but the Average Time Online (Per Day) exceeds the total Time Online
Reply With Quote
  #60  
Old 18 Mar 2010, 13:35
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Originally Posted by sulasno View Post
not sure whether this is a bug
but the Average Time Online (Per Day) exceeds the total Time Online
Its basic math, for the first 24 hours it will be more, because you have time/days, were days would be less than 1.

In other words if you spend 2 hours online and the script has only been installed for 4 hours you would get the following:

2 hrs / ( 4 hrs / 24 hrs ) = 12 hrs
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 01:40.

Layout Options | Width: Wide Color: