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: Sep 2019 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (27 votes - 4.63 average) Installs: 286
Released: 13 Mar 2010 Last Update: 13 Jun 2011 Downloads: 1815
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:	1676
Size:	6.7 KB
ID:	114090   Click image for larger version

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

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

Name:	profile_mini_stats.png
Views:	1957
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
Statistics Modifications IWT - Time Spent Online Ideal Web Tech vBulletin 3.7 Add-ons 72 11 Mar 2010 15:29

  #121  
Old 23 Mar 2011, 17:54
BaanFarsang's Avatar
BaanFarsang BaanFarsang is offline
 
Join Date: Jan 2010
Error on VB4.1.2


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #122  
Old 06 Apr 2011, 18:04
SpeedyHire SpeedyHire is offline
 
Join Date: May 2005
Real name: Phil
installed on 4.1.2 all fine here.
had to make a few small edits to the post bit to line it all up.
Reply With Quote
  #123  
Old 06 Apr 2011, 18:27
Staxed's Avatar
Staxed Staxed is offline
 
Join Date: Jun 2006
Location: Fayetteville, NC
Real name: Daniel
Just an idea of something i thought would be nice to have for a forum, a stats section that shows the total combined times/average times for all users.
__________________

I'm available for custom graphics, styles, mod installs, forum transfers and other services. Send me a PM to inquire
Reply With Quote
  #124  
Old 07 Apr 2011, 01:12
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Is it possible to enable for some users to hide results from this mod?

I'd like to create user profile field, and depending on their answer (yes/no) the online time for them is shown or isn't. Default would be of course yes. And that goes only for showing online time, time is tracked and if user chooses so he could show it again.
Reply With Quote
  #125  
Old 07 Apr 2011, 08:43
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Ok, I managed to to enable disable showing online time in postbit.

In short, you need to create new user profile field, choose that it is single selection menu, and option set default should be set to None. In options you set only one: Off (or whatever you want to call it, it doesn't matter).

In postbit legacy (or postbit) you need to find:

{vb:raw template_hook.postbit_userinfo_right_after_posts}

After this add:

<vb:if condition="!$post['field8']">
{vb:raw template_hook.postbit_userinfo_right_after_posts2}
</vb:if>

If you don't add template hook with 2 at the end, you'll turn of all additional postbit info if you use it (and usually you do).

After this, you need to change hook that plugin "Postbit: Fetch Total & Average Time Online" uses (find it under Product : IWT - Time Spent Online)

At the very end just add to the hook plugin calls:

$template_hook['postbit_userinfo_right_after_posts2'] .= $templater->render();

That's it. Users now can disable online time in their postbits. But not in profile, or leaderboard.

-----------------------------------

Also, I found minor bug. If users online time is full hour (seconds doesn't matter), there's N/A after hours (mining, there's no minutes to be shown). It's if you use Use Micro Phrases (Postbit Only!) option. And maybe with other options, but I didn't test it. You need to have user who's time online is a round hour to see it.
Reply With Quote
  #126  
Old 11 Apr 2011, 13:38
mrbigandwonderf mrbigandwonderf is offline
 
Join Date: Feb 2010
I have had this running for a few days now and love it.

I am not sure if this is a bug or a lack of understanding but I am a bit confused.
In the postbit the Avg. Time Online is just showing Seconds and they are usually no more than 10 secs for all my user
s.

In post bit:
Here are my stats:
Time Online 6 Hrs 47 Mins 1 Sec
Avg. Time Online1 Secs

In my profile and leader board:
Time Online 6 Hrs 52 Mins 39 Secs
Avg. Time Online 1 Hr 47 Mins 27 Secs

In the settings the only thing that is ticked no is "Use Micro Phrases (Postbit Only!)"

Also is there anywhere on the board if a user leaves the board open on their screen it keeps logging time?
I have a couple users that their stats are huge and talking to them they are not active all of that time. My time out is set to 15min of no activity

thank you in advance for any help. I am just trying to get a better understanding
Reply With Quote
  #127  
Old 13 Apr 2011, 20:19
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
I too saw this difference between postbit and profile. Not sure why, but there it is...
Reply With Quote
  #128  
Old 15 May 2011, 18:13
ExcelFox ExcelFox is offline
 
Join Date: Apr 2011
A great mod, and I am already liking its use very much, and am thankful for developers like yourselves taking out time and effort, to provide us with such free modifications and add-ons.

With due respect, there is a small bug fix that would be nice (which should be a stroll in the park for coders like you). The issue is in the postbit, when this mod is used with Abe1's Post Thank You Hack. So what happens is that the time online is displayed along with the X Thanks in X Posts line which makes reading confusing. If this is not clear, I have posted an image. You could have a look. Thanks again for your time.

For the time being, I have disabled showing the Thank You, but I would really love to have this working.
Attached Images
File Type: png Time Online Vs Post Thanks Post Bit Bug.PNG (2.7 KB, 2 views)
Reply With Quote
  #129  
Old 17 May 2011, 04:04
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
This is bug in Abe's mod, not in this one. As Abe stopped supporting his, you can forget about updates from him.

But, there's always hope. You could use DragonByte's pro version. Pro version enables importing data. Or wait for someone to make mod that uses information from Abe's.
Reply With Quote
  #130  
Old 14 Jun 2011, 18:48
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Just wanted to let you all know if you didn't notice, we updated the plugin to fix the one Average Time issue in the postbit.

Also, thanks for give support to the others Alan_SP.
__________________
Ideal Web Technologies
Reply With Quote
  #131  
Old 15 Jun 2011, 05:53
kontagio.us kontagio.us is offline
 
Join Date: Aug 2009
I have a question. If I update will it force me to show in postbit or can i make it in profile only? If it's only an update for postbit I won't even use it since my site only shows in profile.
Reply With Quote
  #132  
Old 15 Jun 2011, 10:23
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Originally Posted by kontagio.us View Post
I have a question. If I update will it force me to show in postbit or can i make it in profile only? If it's only an update for postbit I won't even use it since my site only shows in profile.
The bug only affected the postbit, so if you don't use it, then there is no need for you to update at the moment.

If you do update tho, you will still have all the same options to tell it where to show, and if it does happen to turn on show in postbit, you would simple have to go turn that setting back off.
__________________
Ideal Web Technologies
Reply With Quote
  #133  
Old 15 Jun 2011, 10:31
kontagio.us kontagio.us is offline
 
Join Date: Aug 2009
Thank you for the response.
Reply With Quote
  #134  
Old 15 Jun 2011, 14:03
BaanFarsang's Avatar
BaanFarsang BaanFarsang is offline
 
Join Date: Jan 2010
Errors when cick on Leader Board - Navbar Link !

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/xxx/domains/xxx.com/public_html/includes/class_core.php(4464) : eval()'d code on line 75

Parse error: syntax error, unexpected '<' in /home/xxx/domains/xxx.com/public_html/includes/class_core.php(4464) : eval()'d code on line 76
Reply With Quote
  #135  
Old 15 Jun 2011, 14:09
mrbigandwonderf mrbigandwonderf is offline
 
Join Date: Feb 2010
Huge update.... I have been waiting for this fix.... thank you
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:10.

Layout Options | Width: Wide Color: