The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[VB3 RC3] Board Spent Time Details »» | |||||||||||||||||||||||||
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. Show Your Support
|
Comments |
#162
|
||||
|
||||
Quote:
One question: I've added the "time spent" calls to my FORUMHOME template, to show this information for each individual person in a welcome message. However, the time is not being shown. What do I have to add where, to make it work? I tried putting the "showthread" hack stuff into forumdisplay, but, that didn't do it. Anyone have any ideas? |
#163
|
||||
|
||||
How do I remove seconds? People are getting into months for time spent and its too much even after I shortened the phrases.
|
#164
|
|||
|
|||
I'm not really positive on this, so I'm just throwing it out there. I noticed that a user signed up some time during the day and I noticed that she already had over a day on her time spent already -- has anyone else seen this or maybe fixed it if they had
|
#165
|
|||
|
|||
This work on 3.0.3 ???
The istruction file, for 3.0.3 is bad....first on functions_shohtread.... Have correct version for 3.0.3 ? |
#166
|
||||
|
||||
Quote:
|
#167
|
|||
|
|||
ok dude here is the fix for 3.0.3 hehe
just goto includes/functions_showthread.php remove the following code from it Code:
// Hack: get the timespent and avgtimespent $post['avgtimespent'] = explain_time(floor($post['timespent']/((TIMENOW-$post['joindate'])/86400))); $post['timespent'] = explain_time($post['timespent']); and find > Code:
$postbits .= construct_postbit($post, $template); if (!empty($parsed_postcache['text']) AND !$stopsaveparsed) Code:
// Hack: get the timespent and avgtimespent $post['avgtimespent'] = explain_time(floor($post['timespent']/((TIMENOW-$post['joindate'])/86400))); $post['timespent'] = explain_time($post['timespent']); Code:
$DB_site->free_result($listposts); // hooks child posts up to new parent if actual parent has been deleted Code:
// Hack: get the timespent and avgtimespent $post['avgtimespent'] = explain_time(floor($post['timespent']/((TIMENOW-$post['joindate'])/86400))); $post['timespent'] = explain_time($post['timespent']); have fun |
#168
|
|||
|
|||
Hi there,
sorry DeadGaze, doesn't work on vb 3.0.6 here.. still call to undefined function in showthread.. Anyone got a fix? |
#169
|
|||
|
|||
Quote:
|
#170
|
||||
|
||||
Ok, I have a small problem...
One of my members complains his board spent time doesn't increase. After further investigation, I realized this is true. He's the only one this happens to, so I can't understand it... Any thoughts? (Other than that, great hack) |
#171
|
|||
|
|||
Works on my 3.0.7. Nice one!!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|