vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - IWT - Time Spent Online (https://vborg.vbsupport.ru/showthread.php?t=243221)

Ideal Web Tech 05-23-2010 10:00 PM

IWT - Time Spent Online
 
1 Attachment(s)
Notice
There are two versions of this modification. This is the vBulletin 3.8 version, you can find the vBulletin 4.x version here: https://vborg.vbsupport.ru/showthread.php?t=238154

Current Stable Version
Version 1.2.5

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.
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)
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.

Floris 05-25-2010 02:59 PM

Excellent, very cool addon :D

I wish I had this since the day I started my first forum :D

Megatr0n 05-25-2010 04:25 PM

Question: if someone has been online for only day or a single month will it display "day/month" instead of "days/months"?

Ideal Web Tech 05-25-2010 05:43 PM

Quote:

Originally Posted by Megatr0n (Post 2043237)
Question: if someone has been online for only day or a single month will it display "day/month" instead of "days/months"?

Yes.

Megatr0n 05-26-2010 04:26 PM

Thank you.

What does Display Cumulative Time Online mean?

Ideal Web Tech 05-26-2010 05:20 PM

Quote:

Originally Posted by Megatr0n (Post 2043703)
Thank you.

What does Display Cumulative Time Online mean?

It will display "the sum of all member's time online" on the forumhome and/or leaderboard.

funmasti 05-30-2010 09:50 AM

Thanks.. Installed!

mimi123 07-05-2010 12:11 PM

what about an addon where it shows real time of login time say a user logs in today since 6 pm and still is on while the time is 7:30pm and it will say on his profile user is online 1 hour 30 min 20 sec

i dont want a mod that guesses the average time online spent perday i want a mod that tells me about an online user of how long have they been online for today once they log off the time is 0..

any mod like this?

imedic 07-06-2010 05:12 PM

Suggestions:
1. I think you miss in template: iwt_timespentonline_leaderboard the footer: $footer
Works much better with this addition.
In rest is working great, just as it was said before I wish I have it 3 years ago :)

2. I have also modified phrase Cumulative User Time Online from July 2010 as the calculation begins when you install it.

3. You could add a math script and approximate form user posts an average previous time (before installation of this mod) because it is obvious that many have already forums and users for some time.
Like posts X 2 min or also evaluate form total number of posts (if many) to add additional time as more posts are more you need to read. Just an approximation but can be something.
Good job :)

4. I don't know if this hides the statistical data of being online if the users is hidden? I suggest to have it hidden (all information) as is obvious that a hidden user don't want other to know how much and when he is online.

Hellmaster 07-06-2010 05:41 PM

Installed, wait a few days to see how does it work... I hope stadistics are exact.

Cool mod.


All times are GMT. The time now is 07:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01153 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete