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 |
#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!!
|
#172
|
|||
|
|||
I installed this and now when I try to bring up a member profile all I get is a white page of nothing. The hack seems to be working though. What could I have screwed up?
|
#173
|
|||
|
|||
Chances are there is either a templated screwed up (or missing from an alternative style) or there is a space or newline after the closing "?>" in one of the edited php-files.
|
#174
|
|||
|
|||
ahh found it, was missing a ;
|
#175
|
||||
|
||||
Quote:
I made the change there and it's working on my boards. |
#176
|
|||
|
|||
i made the modifications in functions_showtread but i'm getting less than 1 second
|
#177
|
||||
|
||||
Have had this installed for a while on two different boards. It's been fine on my first board, but my second board I have noticed some member's time is lower that it used to be..
Is there any possible way time can go down? It's somehow happening and I would LOVE to get suggestions. Any ideas? Please and thank you! ~006 |
#178
|
|||
|
|||
OK I don't want to add it to the postbit, but I want to show it on Profile pages. Is the only way to do this to add to the postbit? Or what?
|
#179
|
|||
|
|||
can sb explain me what it doesnt work on VB 3.0.5?Or is there anybody with 3.0.5 forum that has it and it actually works?
|
#180
|
||||
|
||||
i'm running vb ver 3.0.3 i cant find this code in functions_showthread.php
################################################## ###################### # Code modifications in includes/functions_showthread.php ################################################## ###################### --------------------------------------------------- Find this code: --------------------------------------------------- // ###################### Start getreputationimage ####################### is there any chance of somebody re-doing all the instructions to suit 3.0.3 for a dummy like me,i find it much easier if everything is in order,i would really love this addition on my forum,help appreciated |
#181
|
||||
|
||||
can someone help please??
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|