View Full Version : End-User Options - Time Spent On Board
tnguy3n
12-01-2006, 10:00 PM
Total Time Spent On Board (for vB 3.6.x)
Author: tnguy3n
Live Demo: http://www.vbviet.org/forums/member.php?u=1
This hack displays total time that users spent on the board in postbit and member info page.
To show all time units including seconds, minutes, hours, etc, uncomment some line codes in "Total Spent Time On Board" plugin.
Query: 1
File mod: 1
Template mod: 1
######################################
INSTALLATION:
1. Import product-totaltime.xml in Product Manager
2. Modify file & make changes in templates as instructed in install.txt file
---------------------------
Upgrade from v.1.0 (for vB 3.5.x)?
Just simply select the overwrite option upon importing the product xml file.
projectego
12-02-2006, 09:17 PM
Installed! Thanks. :)
ogameclub
12-02-2006, 09:48 PM
Installed! Thanks. This time is zero time.
FleaBag
12-02-2006, 10:51 PM
This may be a stupid question but does it include time prior to installing the hack?
tnguy3n
12-02-2006, 11:03 PM
no, and there's no way to know how much time they spent on your forums previously. AFAIK, vBulletin does not keep record on this stuff.
MorrisMcD
12-03-2006, 12:15 AM
this is a cool hack.. I would implement it, but several users leave themselves on whos online including myself when away since we are on and off all day.. It would depress me to actually say I was on for 24 hours a day pretty much.. :)
Cool hack tho
Shazz
12-03-2006, 12:34 AM
/me trys the install now
Shazz
12-03-2006, 01:51 AM
I just installed it, seems to be working fine.
But....
If you were to uninstall it does it leave some querys or tables behind?
Shazz
12-03-2006, 05:39 AM
I swear this isen't right
My newest member has like 3 days spent time on it and he just joined =?
And Ive been on my board longer then 3 hours and thats all I have...
Im lost
MrPHD
12-03-2006, 08:54 AM
Installed and running. Thanks
lifesourcerec
12-03-2006, 09:48 AM
This mod never liked me. It doesn't break down the time. Only gives a long number.
LordDB
12-03-2006, 10:18 AM
tnguy3n, great hack, but, your screenshot shows you as been on your forum for:
1 week, 3 days, 23 hours
why doesn't mine show such lengths of time, as I can't believe you've been connected online at your forum that duration of time.
It only shows mine as:
38 mins, 20 secs
Do enlighten us as to what I've done wrong, or how to adjust such info.
Thx n regards
:)
farukcan
12-03-2006, 02:16 PM
tahanks... ;)
Installed....
Shazz
12-03-2006, 03:18 PM
tnguy3n, great hack, but, your screenshot shows you as been on your forum for:
1 week, 3 days, 23 hours
why doesn't mine show such lengths of time, as I can't believe you've been connected online at your forum that duration of time.
It only shows mine as:
38 mins, 20 secs
Do enlighten us as to what I've done wrong, or how to adjust such info.
Thx n regards
:)
I think you might have had the same problem as me :)
aveon
12-03-2006, 03:35 PM
This mod never liked me. It doesn't break down the time. Only gives a long number.
same here how can we resolve this????
JuGgOlOw22
12-03-2006, 04:01 PM
any one know how to fix this i cant get it back
Parse error: syntax error, unexpected '*' in /home/nexte3/public_html/includes/class_core.php on line 2892
MrPHD
12-03-2006, 04:09 PM
It seens you wrong edit the file, you can see ", 'lastvisit');
$this->userinfo['lastvisit'] = $this->userinfo['lastactivity'];
}
else
{
This is the line you tell an error, you can fix that unistall the hack and edit classcore.php again. Regards
Open includes/class_core.php, (1 change)
FIND:
// on this to be updated in real time.
$this->registry->db->shutdown_query("
UPDATE " . TABLE_PREFIX . "user
SET lastactivity = " . TIMENOW . "
WHERE userid = " . $this->userinfo['userid'] . "
", 'lastvisit');
REPLACE WITH:
// on this to be updated in real time.
/* $this->registry->db->shutdown_query("
UPDATE " . TABLE_PREFIX . "user
SET lastactivity = " . TIMENOW . "
WHERE userid = " . $this->userinfo['userid'] . "
", 'lastvisit');
*/
if(TIMENOW - $this->userinfo['lastactivity'] > $this->registry->options['cookietimeout'])
{
$newtime = '0';
}
else
{
$newtime = TIMENOW - $this->userinfo['lastactivity'];
}
$this->registry->db->shutdown_query("
UPDATE " . TABLE_PREFIX . "user
SET lastactivity = " . TIMENOW . ",
timeonboard = timeonboard + $newtime
WHERE userid = " . $this->userinfo['userid'] . "
", 'lastvisit');
if you donĀ“t know use php well, i advice backup the original file allways, and you can backup renamed like class_core.phpold and put edited file and chmod 777.
tnguy3n
12-03-2006, 06:41 PM
that's the total time I've spent on my board, and my board has been open for 1 1/2 years now. Note that your total time counts only at the point your install this hack.
lifesourcerec
12-03-2006, 11:12 PM
Got it working. Looks like it was conflicting with another code.
underESTIMATED
12-08-2006, 07:03 AM
Fatal error: Cannot redeclare timeonboard() (previously declared in /home/ohiosci/public_html/forum/global.php(356) : eval()'d code:4) in /home/ohiosci/public_html/forum/member.php(825) : eval()'d code on line 4
Help!?
:(
Happens when I click on a members name to see their profile, otherwise it's fine.
I missed this hack when I upgraded versions, nice to see that somewhere in all my previous coding it kept my times too! I pissed alot of people off. lol
trd167
12-08-2006, 07:56 AM
installed and running thanks
underESTIMATED
12-09-2006, 02:41 AM
Fatal error: Cannot redeclare timeonboard() (previously declared in /home/ohiosci/public_html/forum/global.php(356) : eval()'d code:4) in /home/ohiosci/public_html/forum/member.php(825) : eval()'d code on line 4
Anyone able to help diagnose my issue?
It only occurs when you attempt to look at the profile of a member. :tired:
yingzhou
12-09-2006, 07:00 PM
Thank for this hack! Cool!
underESTIMATED
12-12-2006, 01:34 AM
Bump For A Fix.........
($hook = vBulletinHook::fetch_hook('member_complete')) ? eval($hook) : false;
That's the line it's referring to in my member.php file
($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;
That's the line it's referring to in my global.php file
I completely uninstalled this, and reinstalled it again. Still an issue.
:confused: :confused: :confused: :confused: :confused: :confused:
loonytune15
12-12-2006, 04:05 AM
Great Hack, can we have a top users list?
Cybershaolin
12-24-2006, 04:59 AM
Using it but it shows information in english like day, hour etc. Is there any way to show the info in french?
adonfun
12-27-2006, 10:10 PM
Thank you, installed it :)
Thanks tnguy3n, Upgrading now
It keeps saying I have used 0 seconds on my board
Spent Time On Board: 0 sec
Shazz
12-29-2006, 05:33 PM
It keeps saying I have used 0 seconds on my board
Spent Time On Board: 0 sec
Did you just barely install it?
The time starts when you install it
Marc118
12-29-2006, 07:19 PM
Hey sweet hack.
I have it installed but I have one problem. It is showing in the user profile but not in the postbit? I edited the postbit with the codes you have in the install.txt
Thanks.
I installed it yesterday, and yes, i know it won't from before this was installed.
I'm thinking is it necessary to delete cookie before it start counting?
Invalid ID
12-30-2006, 11:46 PM
It's working great, but in PM it says "Spent Time On Board: 4566"
In posts the same user timing says "Spent Time On Board: 1 h 16 min 6 sec"
Shazz
12-30-2006, 11:48 PM
Same goes for when your click on the post number in the right hand corner
i'll think I just have to uninstall this one
Raptor
01-19-2007, 05:33 AM
perfect on 3.6.4 - THANKS !
Snake
01-21-2007, 01:47 AM
Is this going to work just fine on 3.6.4? No problems at all?
Shazz
01-21-2007, 02:24 AM
Is this going to work just fine on 3.6.4? No problems at all?
Few bugs... that are known if you view some pages back
Snake
01-21-2007, 09:53 AM
Alright I'll install this but I think it should say "3 days 20 hours 37 mins" instead of "3 day 20 hour 37 min". Any fix for this?
maranello
01-21-2007, 10:25 AM
simple phrase change, it'll take u 30 seconds or less to do it yourself.
maranello
01-21-2007, 10:27 AM
More important problem is, it displays a long value in postbit when you are reading PMs. Instead of saying 3 days 5 hours etc, it shows 11245. Where is the author in all this? Will he release a fixed version?
Snake
01-21-2007, 10:35 AM
I don't think we'll ever see him again because his last activity on the forum was around December so yeah. But why not send him a mail? He might be able to respond back to you.
Anyway, I don't really care much about the postbit as long as it works just fine in the profile page.
Shazz
01-21-2007, 02:36 PM
More important problem is, it displays a long value in postbit when you are reading PMs. Instead of saying 3 days 5 hours etc, it shows 11245. Where is the author in all this? Will he release a fixed version?
Same with clicking on the post number
Hellraider
01-21-2007, 04:38 PM
Using it but it shows information in english like day, hour etc. Is there any way to show the info in french?
Translate the corresponding parts of the hack ;)
Boots
01-21-2007, 05:08 PM
if this didn't have a file mod I'd be all over it.
Snake
01-23-2007, 09:09 AM
Alright I'll install this but I think it should say "3 days 20 hours 37 mins" instead of "3 day 20 hour 37 min". Any fix for this?
Can anyone help me with that please? I'm not sure if this is made as phrases cause I couldn't find them.
davis31b
01-26-2007, 03:43 PM
Is there anyway to put a break after Spent Time On Board:?? That way it doesn't have a single number sitting out to the side & it would show everything directly underneath the phrase. Theirs no issues with it now, but it would make it look more professional. Thanks.
Awesome hack. But is there a way that I can make it so only the admin can see this feature?
:confused: :confused:
hsv z clubbie
01-28-2007, 01:09 AM
Thanks, just installed on http://www.eastcoastutes.com appears all ok atm....
Thanks
Glenn
tutusinghsohi
01-28-2007, 03:42 AM
man...thanks a lot dude..
this hack rocks...
Snake
01-28-2007, 09:26 AM
Can anyone help me with that please? I'm not sure if this is made as phrases cause I couldn't find them.
Bump!
davis31b
01-28-2007, 07:16 PM
Disregard
airborneCAL
03-04-2007, 03:32 PM
Ok, everything was working fine but now the time does not change - it appears frozen. I do not know why this would have happened. The only change that has been made recently was upgrading to 3.6.5 - help please.
airborneCAL
03-05-2007, 03:31 AM
Ok, everything was working fine but now the time does not change - it appears frozen. I do not know why this would have happened. The only change that has been made recently was upgrading to 3.6.5 - help please.
And for clarification - by frozen I meant that the time has stopped counting. It still displays as normal, but the time doesn't advance. Thanks for any help.
clr_75
03-06-2007, 01:41 PM
Can anyone help me with that please? I'm not sure if this is made as phrases cause I couldn't find them.
I'm not sure if you figured this out or not but if you goto your Manage Plugins then edit your "Time Spent on Board"... all the values are hard coded for day, min, hour etc, just search for these words and update accordingly. These values are wrapped between single quotes, some of the have a single quote space. Don't mess with anything with a $ in front of it :up:
airborneCAL
03-07-2007, 03:11 AM
I guess I'll just have to uninstall this hack since noboby seems to know why it stopped counting time. Oh well....
Snake
03-07-2007, 04:18 PM
Try re-installing the hack. It might work, you know.
airborneCAL
03-08-2007, 03:59 AM
Try re-installing the hack. It might work, you know.
I tried re-installing it with no luck so I thought about my upgrade to 3.6.5 and found out that the class_core.php file needed to be re-coded. I guess I'll have to edit that file every time I update. No biggie.
clr_75
03-09-2007, 05:21 AM
I tried re-installing it with no luck so I thought about my upgrade to 3.6.5 and found out that the class_core.php file needed to be re-coded. I guess I'll have to edit that file every time I update. No biggie.
Did you install anything recently that may have updated your core_class.php file (I think that is the file)??
airborneCAL
03-10-2007, 03:48 AM
Did you install anything recently that may have updated your core_class.php file (I think that is the file)??
Nope, the only change was updating to 3.6.5
deezelpope
03-11-2007, 09:00 PM
Installed! Thank you!!:up: :D
SnapOff Racing
03-15-2007, 08:15 AM
some users it says 0 days, minutes, etc...and others it accumulates day by day.
i have no idea what's wrong with it.
3.6.5
i uninstalled and reinstalled the hack, no such luck :(
www.snapoffracing.com/forums
deezelpope
03-15-2007, 10:33 AM
I noticed in PMs and usernotes, the time is marked by seconds, assuming of course, cuz it doesn't say seconds, only...a big, long number...LOL. Fix for this?
4x4 Mecca
03-15-2007, 10:59 AM
I noticed in PMs and usernotes, the time is marked by seconds, assuming of course, cuz it doesn't say seconds, only...a big, long number...LOL. Fix for this?
me too
alfaowner
04-07-2007, 12:38 AM
Any ideas where I can download this from? There is no file showing attached to this modification? I am looking to find out what goes into the class_core.php as my clock has stopped ticking also since my upgrade.
Thanks in advance.
jaymullah
04-10-2007, 04:07 PM
is this no longer available? Under download all I see is "no files uploaded" ?
alfaowner
04-10-2007, 04:14 PM
is this no longer available? Under download all I see is "no files uploaded" ?
Hence my post 65!!??
deezelpope
04-10-2007, 09:36 PM
Hm, I installed this just a month ago...shows the author has been here this month...must've removed it.:confused: :erm:
alfaowner
04-10-2007, 10:09 PM
Hm, I installed this just a month ago...shows the author has been here this month...must've removed it.:confused: :erm:
PM me, if you can give me a copy or at least the core class - thanks im a desperate for it!
Martin-TMGRS
05-04-2007, 09:13 AM
Doe's anyone know how to remove the hack, it has stopped working for me. When I installed it I deleted the install notes after on how to do the template mods.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.