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
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.
I still get the same issue after the new version.
Well, the spacing changed a bit , but still not accurate
I wasn't positive the update we did would fix it for you, but the code we updated could have in a few cases caused that.
As far as your one goes, I'm going to have to assume its a problem with the other script. If you would like to post a link to your board, I will look into it more when I get the time.
<dt>Thanks</dt><dd>12</dd><dd style="white-space: nowrap; display: inline; float: left;">Thanked 6 Times in 6 Posts</dd><dt>Time Online</dt><dd>19 Mins 36 Secs</dd><dt>Avg. Time Online</dt><dd>16 Mins 49 Secs</dd>
The code above is taken from your postbit, and if you notice, one of the <dd> tags for the Thanked Hack has "display: inline; float: left;" within it, that is what is causing the problem.
That block of code should look like this:
HTML Code:
<dt>Thanks</dt><dd>12</dd><dd style="white-space: nowrap;">Thanked 6 Times in 6 Posts</dd><dt>Time Online</dt><dd>19 Mins 36 Secs</dd><dt>Avg. Time Online</dt><dd>16 Mins 49 Secs</dd>
ok, stupid question time, where do i find that code from postbit to change?
Personally I don't know exactly where it would be, I'm not using that product, however it should be in one of these places:
A template made by the product (Would most likely have the name of the of the product in the template name)
The plugin code for the product
If worst case, which I highly doubt, the code could be in the postbit/postbit_legacy template
I would think it would be in the first location, but without looking at the code or the product I can't be sure. If you can't find it, I may be able to make the time to do it myself if you send me a login.