vb.org Archive

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

Ideal Web Tech 03-12-2010 10:00 PM

IWT - Time Spent Online
 
1 Attachment(s)
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.

merk_aus 03-13-2010 08:37 AM

great mod dude have downloaded and installed

Welshy2008 03-13-2010 08:54 AM

Good Mod,

But I think it may scare some members offline when they realise how long they actually spend on there.

:D

TBH, I don't install mods that aren't supported either. Mod added Today and "Not Supported".

Thanks, and I am sure a lot would go for this. ;)

sulasno 03-13-2010 08:57 AM

instructions for installation please

Kolbi 03-13-2010 10:47 AM

Only import the product :)

e36freak 03-13-2010 11:20 AM

Great, thank you!

SwollenCranium 03-13-2010 11:46 AM

EX: 5 Months 2 Weeks 1 Day 15 Hours 44 Minutes 33 Seconds
EX: 12 Minutes N/A



Having the time populate to the POSTBIT like either of these looks like ass.

You say:

Quote:

We currently are talking about making an average time per day (similar to the posts per day)

I like the mod but will wait till ^^ that is accomplished.

BlackJacket 03-13-2010 03:20 PM

Thanks! I have been waiting for a product similar to this where it displays TOTAL time the user has spent online.

The Death [LK] 03-13-2010 03:45 PM

]thank u ! nice mod :)

AzzidReign 03-13-2010 04:11 PM

Thank you!

Diablotic 03-13-2010 05:26 PM

Tagged for future use when leaderboard done

Charlie98902 03-13-2010 06:52 PM

Can you just disable the postbit part and still use the rest?

Ideal Web Tech 03-13-2010 09:13 PM

We have finished work on version 1.1.1 and have released it on our site (www.idealwebtech.com), but we have already started work on version 1.2.0 which will contain another major feature we would like to get implemented and ideally released later today.

Release Notes (Version 1.1.1)
To upgrade simple install the new product. Warning installing this version will reset your current time online counters! The counters must be reset for the new average time online feature to function properly.
  • 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
The main reason this version is not being released on vBulletin.org is that we plan to be releasing the next major upgrade (version 1.2.0) on vBulletin.org very soon.

New features to come in version 1.2.0:
  • Leader Board showing members with the largest total & average times online
  • Ability to toggle between short & long time unit names (ex. Secs instead of Seconds)
Please Note: This feature list may change at any time and/or some features may be pushed to a later version release.

If you have any more suggestions for what you would like added, please submit them at http://www.idealwebtech.com/threads/...-Online-v1.1.0, and we will look into adding them.

Thank you,

Brian Yarbrough
Developer
Ideal Web Technologies

archet1337 03-13-2010 09:21 PM

Quote:

Originally Posted by Charlie98902 (Post 2002987)
Can you just disable the postbit part and still use the rest?

In iwt_timespentonline_postbit

Replace
Code:

<div class="smallfont">{vb:rawphrase iwt_timespentonline}: {vb:raw post.timespentonline_formatted}</div>
With
Code:

<!-- <div class="smallfont">{vb:rawphrase iwt_timespentonline}: {vb:raw post.timespentonline_formatted}</div> -->

Ideal Web Tech 03-13-2010 09:25 PM

Quote:

Originally Posted by archet1337 (Post 2003068)
In iwt_timespentonline_postbit

Replace
Code:

<div class="smallfont">{vb:rawphrase iwt_timespentonline}: {vb:raw post.timespentonline_formatted}</div>
With
Code:

<!-- <div class="smallfont">{vb:rawphrase iwt_timespentonline}: {vb:raw post.timespentonline_formatted}</div> -->

Actually, that's not needed anymore, there is now a setting to disable the postbit values in version 1.1.1.

Simply upgrade your script and set it to not show in your vBulletin settings. Version 1.1.1 of the script can be downloaded from http://www.idealwebtech.com/threads/...-Online-v1.1.0, or you can wait for us to post version 1.2.0 on vBulletin.org within the next couple hours.

-Brian

War.Frog 03-13-2010 11:05 PM

When you say installing this product resets time online counters - do you mean from the first release version to the next, or somewhere in native vBulletin?

Ideal Web Tech 03-13-2010 11:15 PM

Quote:

Originally Posted by War.Frog (Post 2003129)
When you say installing this product resets time online counters - do you mean from the first release version to the next, or somewhere in native vBulletin?

When you install version any version 1.1.1 or higher when you currently had 1.1.0 installed. To repeat this will only effect people upgrading from 1.1.0.

Ideal Web Tech 03-13-2010 11:31 PM

Update on 1.2.0

We are currently have a basic leader board working, but are still working to improve its functionality and looks. We should have this released later tonight.

Dr.osamA 03-14-2010 01:52 AM

Quote:

Originally Posted by Ideal Web Tech (Post 2003145)
Update on 1.2.0

We are currently have a basic leader board working, but are still working to improve its functionality and looks. We should have this released later tonight.


Waiting . . . . . . . . . .
________
GLASS WEED PIPE

Ideal Web Tech 03-14-2010 02:12 AM

For those interested we have decided to start showing off the leader board as we work on finishing its development. The demo leader board can be found here.

War.Frog 03-14-2010 02:15 AM

This looks awesome. Any way to make a TOTAL time online?

Ideal Web Tech 03-14-2010 02:26 AM

Actually that's a good idea. I will talk with our developer and see if we cant get that added into this upcoming release.

Ideal Web Tech 03-14-2010 06:03 AM

Version 1.2.0 Uploaded!

Please enjoy the new version, and feel free to inform us of any bugs at http://www.idealwebtech.com/threads/...e-Spent-Online.

-Brian

betts02 03-14-2010 07:13 AM

This was a great little addition, And what a 100% improvement from the first release to the next version, This just made this mod a great addition

Many thanks

icemann 03-14-2010 08:36 AM

Thank you, installed. :cool:

Dr.osamA 03-14-2010 09:42 AM

Finely

i waited for it long time

tahnxx mate

can you give me permissin to translet it to Arabic plzzz if yes i well add it her and you cn add it to first post (orignal thread)

installed + 5 stars + nominated
________
VERMONT MEDICAL MARIJUANA DISPENSARIES

War.Frog 03-14-2010 11:18 AM

Awesome! Thanks for this - working great!! It would be great to see TOTAL TIME for each user on the Leader Board (in addition to overall) and Time Online options available for inclusion on the Member List too. :)

Edit: What is this mod using to calculate time online? I just installed this and there is another member on the board with me. While I was posting here, it appears he gained 3 minutes on his time but I hadn't logged out. Is it looking at active page refreshes or something?

Also, what is the average based on? A 24-hour period? (I just anticipate questions from users and want to know answers) :D Thanks!

sulasno 03-14-2010 01:39 PM

The requested URL /forum/tsoleaderboard.php was not found on this server.

wrong instructions provided

archet1337 03-14-2010 01:41 PM

Quote:

Originally Posted by sulasno (Post 2003409)
The requested URL /forum/tsoleaderboard.php was not found on this server.

wrong instructions provided

Did you upload the file?

sulasno 03-14-2010 01:54 PM

I got 1.2 from your site;
in the instructions I was requested to upload the folder "uploads" to the root

I just tested your Mod and couldn't find tsoleaderboard.php
I moved it to the root and it's working

great Mod

Ideal Web Tech 03-14-2010 03:11 PM

Quote:

Originally Posted by sulasno (Post 2003421)
I got 1.2 from your site;
in the instructions I was requested to upload the folder "uploads" to the root

I just tested your Mod and couldn't find tsoleaderboard.php
I moved it to the root and it's working

great Mod

I'm sorry, the instructions were suppose to say "upload the contents of the uploads...", the included instructions have been updated to be correct now.

kevius 03-14-2010 03:54 PM

well done, tks a lot !

relaxiha 03-14-2010 04:23 PM

Time Online: N/A
Avg. Time Online: N/A

Ideal Web Tech 03-14-2010 04:24 PM

Quote:

Originally Posted by relaxiha (Post 2003495)
Time Online: N/A
Avg. Time Online: N/A

It will say that for members that haven't been online since the system was installed as they have no time to calculate.

SwollenCranium 03-14-2010 04:30 PM

Quote:

Originally Posted by Ideal Web Tech (Post 2003496)
It will say that for members that haven't been online since the system was installed as they have no time to calculate.



Where does this mod gather stats from?

I've been logged into my site for well into 6 hours so far today yet the counter only shows me @ 1 hr 9 minutes.

Ideal Web Tech 03-14-2010 04:45 PM

Quote:

Originally Posted by SwollenCranium (Post 2003502)
Where does this mod gather stats from?

I've been logged into my site for well into 6 hours so far today yet the counter only shows me @ 1 hr 9 minutes.

The stats calculations are a bit complex to explain but work as follows. First you have your cookie timeout which vbulletin uses to determine weather you are online or offline. We use that timeout and a page reload we verify your last known activity time (current timestamp - last known active timestamp) and if its within the allowed cookie timeout then we will update your time online as you haven't lapsed in being online. If the time difference is greater then the allowed cookie timeout the last active timestamp updates and the next page will start the time online updating again. When we update the time online we use the difference between the two timestamps.

SwollenCranium 03-14-2010 06:29 PM

Quote:

Originally Posted by Ideal Web Tech (Post 2003512)
The stats calculations are a bit complex to explain but work as follows. First you have your cookie timeout which vbulletin uses to determine weather you are online or offline. We use that timeout and a page reload we verify your last known activity time (current timestamp - last known active timestamp) and if its within the allowed cookie timeout then we will update your time online as you haven't lapsed in being online. If the time difference is greater then the allowed cookie timeout the last active timestamp updates and the next page will start the time online updating again. When we update the time online we use the difference between the two timestamps.


Ok, thanks for the explanation.

This is good to know as I have a fairly modest Session timeout set on my site.

Ideal Web Tech 03-14-2010 11:26 PM

Well glad we could clarify that for you.

RedHacker 03-15-2010 09:18 AM

It is very nice mod but good to work with continuous flow

Ocean-Wonders 03-15-2010 09:39 AM

Great mod, my members are competing already :D

Just hope it doesn't scare them in a few months time when they realise how long they have spent on the forum :D


All times are GMT. The time now is 06:13 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.01368 seconds
  • Memory Usage 1,832KB
  • 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
  • (4)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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