Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
IWT - Time Spent Online Details »»
IWT - Time Spent Online
Version: 1.2.6, by Ideal Web Tech Ideal Web Tech is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 03-12-2010 Last Update: 06-12-2011 Installs: 287
DB Changes Uses Plugins
Additional Files  
No support by the author.

Notice
There are two versions of this modification. This is the vBulletin 4.x version, you can find the vBulletin 3.8 version here: https://vborg.vbsupport.ru/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

File Type: zip IWT - Time Spent Online (v1.2.2).zip (89.5 KB, 299 views)
File Type: zip IWT - Time Spent Online (v1.2.3).zip (92.0 KB, 68 views)
File Type: zip IWT - Time Spent Online (v1.2.4).zip (94.1 KB, 44 views)
File Type: zip IWT - Time Spent Online (v1.2.5).zip (94.1 KB, 667 views)
File Type: zip IWT - Time Spent Online (v1.2.6).zip (94.1 KB, 1195 views)

Screenshots

File Type: png forumhome_stats_block.png (6.7 KB, 0 views)
File Type: png leader_board.png (21.7 KB, 0 views)
File Type: png postbit.png (18.5 KB, 0 views)
File Type: png profile_mini_stats.png (14.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Teascu Dorin

Comments
  #122  
Old 03-23-2011, 03:54 PM
BaanFarsang's Avatar
BaanFarsang BaanFarsang is offline
 
Join Date: Jan 2010
Location: Thailand
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Error on VB4.1.2

PHP Code:
WarningUnexpected character in input''' (ASCII=39) state=1 in /home/baanfars/domains/baanfarsang.com/public_html/includes/class_core.php(4430) : eval()'d code on line 75

Parse error
syntax errorunexpected '<' in /home/baanfars/domains/baanfarsang.com/public_html/includes/class_core.php(4430) : eval()'d code on line 76 
Reply With Quote
  #123  
Old 04-06-2011, 04:04 PM
SpeedyHire SpeedyHire is offline
 
Join Date: Apr 2005
Location: wales
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #124  
Old 04-06-2011, 04:27 PM
Staxed's Avatar
Staxed Staxed is offline
 
Join Date: Jun 2006
Location: Fayetteville, NC
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #125  
Old 04-06-2011, 11:12 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #126  
Old 04-07-2011, 06:43 AM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #127  
Old 04-11-2011, 11:38 AM
mrbigandwonderf mrbigandwonderf is offline
 
Join Date: Feb 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #128  
Old 04-13-2011, 06:19 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I too saw this difference between postbit and profile. Not sure why, but there it is...
Reply With Quote
  #129  
Old 05-15-2011, 04:13 PM
ExcelFox ExcelFox is offline
 
Join Date: Apr 2011
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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, 0 views)
Reply With Quote
  #130  
Old 05-17-2011, 02:04 AM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #131  
Old 06-14-2011, 04:48 PM
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:43 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10282 seconds
  • Memory Usage 2,359KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete