![]() |
Time Spent On Board
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. |
Installed! Thanks. :)
|
Installed! Thanks. This time is zero time.
|
This may be a stupid question but does it include time prior to installing the hack?
|
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.
|
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 |
/me trys the install now
|
I just installed it, seems to be working fine.
But.... If you were to uninstall it does it leave some querys or tables behind? |
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 |
Installed and running. Thanks
|
This mod never liked me. It doesn't break down the time. Only gives a long number.
|
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 :) |
tahanks... ;)
Installed.... |
Quote:
I think you might have had the same problem as me :) |
Quote:
same here how can we resolve this???? |
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 |
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. |
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.
|
Got it working. Looks like it was conflicting with another code.
|
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 |
installed and running thanks
|
Quote:
It only occurs when you attempt to look at the profile of a member. :tired: |
Thank for this hack! Cool!
|
Bump For A Fix.........
Quote:
Quote:
I completely uninstalled this, and reinstalled it again. Still an issue. :confused: :confused: :confused: :confused: :confused: :confused: |
Great Hack, can we have a top users list?
|
Using it but it shows information in english like day, hour etc. Is there any way to show the info in french?
|
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 |
Quote:
The time starts when you install it |
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? |
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" |
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
|
perfect on 3.6.4 - THANKS !
|
Is this going to work just fine on 3.6.4? No problems at all?
|
Quote:
|
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?
|
simple phrase change, it'll take u 30 seconds or less to do it yourself.
|
All times are GMT. The time now is 06:34 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:
|