![]() |
[VB3 RC3] Board Spent Time
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. *Update*: You can show the board spent time in your memberlist, then you can use your memberlist as a leaderboard. For this modification see this post: https://vborg.vbsupport.ru/showpost....6&postcount=50 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. |
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.
|
Quote:
|
by site i ment the whole of the board ;)
|
Quote:
|
Hey can you make this say second minutes and hours ect instead of just one of them?
|
Quote:
|
No i mean like
Time online: 1 minute, 34 seconds or 3 weeks, 4 days, 2 hours, 1 minute, 23 seconds or something along thoose lines like this hack for vb2 did. |
Quote:
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.
|
How would you exempt the moderators and admins from this?
|
How often is the timer supposed to update?
|
Quote:
Quote:
<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:
|
I meant the post bit. on my forums, the timer has yet to update, everyone's timer says "< 1 sec"
|
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?
|
Quote:
Code:
alter table user add timespent int not null; |
nice hack! I used the one for vB2, ill use this for vB3 as well ;)
[high]* MGM clicks Install [/high] MGM out |
What if i just want to put this in the memberinfo template and nowhere else. Do I still need to addd all of the code?
|
A leader board would be great, i would love a leader board.!
|
Quote:
|
Im getting same. I just checked in phpmyadmin and it said i did have the collumn added so not that
|
I am also having the same issue. Doesn't seem to be updating. I ran the query. I even removed the entry and ran it again. Same thing. I double checked all the edits for the files and templates the phrases are there as well. But still no go! :(
|
Has any body actually got this working ... lol
|
thanks nice hack good work :)
|
Does it count from the day the hack was build in or will this hack display the online time from the opening of the board till now?
|
Quote:
In sessions.php this query: Code:
$DB_site->shutdown_query(" Code:
$timespent = TIMENOW - $session['lastactivity']; Gio Takahashi, did you do anything special besides the instructions? It seems to be working on your board. |
Is it possible you could upload your session.php id change it to match my arcade hack but itd eliminate that...
|
Quote:
|
Fixed and to answer your question Nase it starts when you install the hqack
|
Thanks I download and install now
|
Very nice hack, should give my users something to talk about.
|
Leader Board not a good idea?
|
Actually it's a good idea.
I would like to know if you want it into the memberlist (you see an extra "time spent" column in memberlist and can sort by it) or as a separate page. |
It would be great if it were accessable in the members list and then you could be able to sort by it.
|
The Average time didnt work when i installed vb 3 Cand 3
|
Quote:
|
I also had trouble with this hack on my VB3 RC2 board. It shows Average Time <1 Sec.
How would I go about deleting the time spent entry in my database and then trying again? What query would I run to do this? |
Quote:
Code:
UPDATE user SET timespent=0 |
Spent all the time in the world :) thanks
|
kentaurus ---
thanks for ther quick reply. I did that query and it didn't give me an error -- although now it still says <1 for both entries on the site. any suggestions? |
All times are GMT. The time now is 04:50 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|