The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Time Spent On Board Details »» | |||||||||||||||||||||||||
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. Show Your Support
|
Comments |
#12
|
||||
|
||||
This mod never liked me. It doesn't break down the time. Only gives a long number.
|
#13
|
|||
|
|||
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 |
#14
|
||||
|
||||
tahanks...
Installed.... |
#15
|
||||
|
||||
Quote:
I think you might have had the same problem as me |
#16
|
||||
|
||||
Quote:
same here how can we resolve this???? |
#17
|
|||
|
|||
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 |
#18
|
||||
|
||||
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. |
#19
|
||||
|
||||
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.
|
#20
|
||||
|
||||
Got it working. Looks like it was conflicting with another code.
|
#21
|
|||
|
|||
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 |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|