![]() |
Quote:
Maybe I should explain how I the average time works, as the < 1 sec might not be a problem at all. The average time is calculated by time spent on board / days since you registered that is, if you have been on the board for 50 minutes and you registered 2 days ago the average time would be 25 minutes. If you don't login for two days your average time drops to 12 minutes since you have 4 days registered. In that case since this hack is new you may have very small total time spent, maybe your user has 10-20 minutes. If you registered a year ago that is 10 minutes / 365 days.. that is a very low number and maybe less than 1. This is also how the average post count in the forum works, it makes a total posts / days since you registered |
kentaurus :
how often does it update the "time spent in foruns" field? |
Quote:
|
It wont work for Rc3 for me
|
Same here...
I actually got mine to say "2" instead of <1 but it never goes above that.. any suggestions guys?? I have to get this hack working! :) |
Quote:
|
Quote:
mharmon, could you give me the registered date and total spent time for the user that appears with "2"? |
There comes a time in every man's life that he must admit he is a dumb ass.
I was changing the wrong line in sessions.php . . . It works great when you change the right one. Thanks for this great hack! :) |
Working great for me on RC3, thanks kentaurus.! :)
|
An update for this one. Some extra modifications that will let you add the board spent time (total and average) to the memberlist. You can also sort by it to see who is the user with most board spent time.
|
kentaurus --
it's working great for me now -- is there anyway to take out the "seconds" though on the display in the forums? |
[quoute]test[/quote]
|
Quote:
|
It uh... doesn't work for me :(
I've got it installed on my forums (www.theapostleofgod.com/forums). I'm using RC3. I followed the instructions, made the postbit changes, updated the sql db, updated all the files, uploaded them all. I just can't figure out what I'm doing wrong. I dont' get anny errors, but I don't see the time online :( --Sadly, I have to take this hack out, it has affected new user registration :( |
Is there a way to remove this from being shown for administrators?
|
Quote:
I don't see how it could break new user registration. It doesn't modify the register.php at all. |
Quote:
Code:
Time in board: $post[timespent] Code:
<if condition="$post[usergroupid]!=6"> |
lets try </if> instead of /if>
|
Quote:
|
Quote:
|
Quote:
In the hack: Code:
if ($time <= 1) Code:
if ($time < 60) |
Quote:
|
Quote:
|
This is rather odd. I had a someone just join and in their profile it says
Time spent in forums: 1 Minute 32 Seconds Average time: 11 Hours 2 Minutes 24 Seconds Now...maybe I missed something...but how does only being in the forums for a total of 1 min. and 32 seconds make a total average of over 11 hours? |
kentaurus -- taking the seconds out worked fantastic -- thanks. :)
|
Quote:
|
Quote:
|
Ok well I installed this and all the querys...both fields still say <1 :(
Any ideas? I did edit the right line btw in sessions.php ;) btw were are these boxes you speak of: Quote:
|
lmao wow I'm an idiot...upgraded from RC2 -> RC3 and it works fine :)
GREAT hack works perfect :D |
Any update on why in private messages it shows a long number instead of the Days, etc...?
|
Quote:
find: Code:
// format posts number Code:
// Hack: get the timespent and avgtimespent |
worked great. thanks for kentaurus
|
Actually this didn't work. It fixed the private message problem -- but it then made all the time counts in the threads say <1
|
Quote:
Code:
$post['avgtimespent'] = explain_time(floor($post['timespent']/((TIMENOW-$post['joindate'])/86400))); |
Kentaurus --
That fixed it.. sorry for being such a pest on this -- it's just such a cool addition. :) |
I found another small bug. If someone has been on the forums 2 Days and 15 minutes for example, it says:
2 Day 15 Minutes It leaves off the "s" for Days |
Quote:
In the includes/functions_showthread.php find PHP Code:
PHP Code:
The txt is already updated |
kentaurus -- i'm glad i could help you get this hack working 100% :)
sorry I was such a pest. :) |
BTW -- What will this do to server load?
|
Quote:
|
All times are GMT. The time now is 04:19 AM. |
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:
|