Version: 1.00, by Kentaurus
Developer Last Online: Jul 2014
Version: 3.0.0
Rating:
Released: 01-19-2004
Last Update: Never
Installs: 108
No support by the author.
This hack keeps track of how much time a user has been online at the
forums and adds it to the information in any of his posts, then any
other user can see if you have been 1 hour, 5 hours, 1 day or even up
to years online at the forum.
Also this hack calculates an "average time online" in a very similar way to
how the average posts works.
Thanks to the people that suggested this hack in the request forum, it is
a really nice one and a very fun one too!
Keep in mind this hack will only start tracking the time that you are online once you install it, it has no way of knowing how much time you had been on the forums before.
Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Was waiting for this one. Does this track the total time on site or just when in forums since your text says time in forums.
If your site uses the forum engine (it includes global.php to make queries and such) then it will track the total time on site. Otherwise if the rest of the site is just static html or any other news/articles program it has no way of tracking time spent.
Hey can you make this say second minutes and hours ect instead of just one of them?
that's what it does already. My screenshot only shows minutes but that is only an example. It goes seconds-minutes-hours-days-weeks-months and up to years, although I have yet to see someone that spent a complete year of his life in a forum.
or something along thoose lines like this hack for vb2 did.
Seems like I am not getting your questions I should read more carefully.
Yes, it can be done. That's a little too specific for my needs but should be a simple change. I really didn't check on the hack for vb2 so I only went with what people were asking for in the request forum. I'll look into it.
Thanks man i would really love to have it like that.
.txt updated and added one screenshot. It was a small change in effect
Quote:
How would you exempt the moderators and admins from this?
There are two ways to do it: you can either disable logging for the moderators and adminstrators (it would require further hacking), or just don't display it. If your administrator usergroup is 6 and your moderator's is 5 you can add a template conditional:
<if condition="$post[usergroupid] != 6 AND $post[usergroupid] != 5">
Your code here for printing the board spent time, $post[timespent]
</if>
Then you would only display the time spent in the board for non-moderators and administrators.
Quote:
How often is the timer supposed to update?
It keeps updating as long as you are browsing the board. Whenever you click on a hyperlink and browse another page it updates the time spent in the forum. If you don't have any activity in the forum in the same time setting that you have for your cookie expire options in the admin control panel then it stop recording the board spent time and whenever you log in/open the forum again it starts adding to the time again.
Wicked dude. Any chance you can make an online leaderboard? Kinda like memberlist but shows user name posts and time online and is sorted by greatest time online?