Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Time Spent On Board Details »
Time Spent On Board
Mod Version: 1.00, by tnguy3n (Member) tnguy3n is offline
Developer Last Online: Sep 2010 I like it Show Printable Version Email this Page

This thread is in the Modification Graveyard.
vB Version: 3.6.4 Rating: (7 votes - 4.86 average) Installs: 84
Released: 02 Dec 2006 Last Update: Never Downloads: 197
Not Supported  

Total Time Spent On Board (for vB 3.6.x)
Author: tnguy3n
Live Demo: http://www.++++++.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.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[VB3 RC3] Board Spent Time Kentaurus vBulletin 3.0 Full Releases 215 27 Oct 2007 18:04

  #16  
Old 03 Dec 2006, 17:01
JuGgOlOw22 JuGgOlOw22 is offline
 
Join Date: Aug 2006
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
Reply With Quote
  #17  
Old 03 Dec 2006, 17:09
MrPHD's Avatar
MrPHD MrPHD is offline
 
Join Date: Feb 2006
Real name: Helder Moreira
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.
__________________
InforPHotoviDeo ..:: SITESPHD.COM - WEB HOSTING Help Madeira Island DONATE
Reply With Quote
  #18  
Old 03 Dec 2006, 19:41
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Real name: Nguyễn
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.
Reply With Quote
  #19  
Old 04 Dec 2006, 00:12
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Got it working. Looks like it was conflicting with another code.
Reply With Quote
  #20  
Old 08 Dec 2006, 08:03
underESTIMATED's Avatar
underESTIMATED underESTIMATED is offline
 
Join Date: Feb 2005
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
Reply With Quote
  #21  
Old 08 Dec 2006, 08:56
trd167 trd167 is offline
 
Join Date: Dec 2006
installed and running thanks
Reply With Quote
  #22  
Old 09 Dec 2006, 03:41
underESTIMATED's Avatar
underESTIMATED underESTIMATED is offline
 
Join Date: Feb 2005
Originally Posted by underESTIMATED View Post
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:
Reply With Quote
  #23  
Old 09 Dec 2006, 20:00
yingzhou's Avatar
yingzhou yingzhou is offline
 
Join Date: Oct 2006
Real name: Anh Châu
Thank for this hack! Cool!
__________________
Vietnamese 3.7.x Language - pass: soft4vn
Reply With Quote
  #24  
Old 12 Dec 2006, 02:34
underESTIMATED's Avatar
underESTIMATED underESTIMATED is offline
 
Join Date: Feb 2005
Lightbulb

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.
Reply With Quote
  #25  
Old 12 Dec 2006, 05:05
loonytune15's Avatar
loonytune15 loonytune15 is offline
 
Join Date: Mar 2003
Great Hack, can we have a top users list?
__________________
Website -
Reply With Quote
  #26  
Old 24 Dec 2006, 05:59
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Using it but it shows information in english like day, hour etc. Is there any way to show the info in french?
Reply With Quote
  #27  
Old 27 Dec 2006, 23:10
adonfun adonfun is offline
 
Join Date: Aug 2006
Thank you, installed it
Reply With Quote
  #28  
Old 29 Dec 2006, 01:06
IrPr IrPr is offline
 
Join Date: Mar 2005
Real name: MoOZ
Thanks tnguy3n, Upgrading now
Reply With Quote
  #29  
Old 29 Dec 2006, 18:26
GNDI's Avatar
GNDI GNDI is offline
 
Join Date: Jun 2005
It keeps saying I have used 0 seconds on my board

Spent Time On Board: 0 sec
__________________
BSD

VIB-host
Reply With Quote
  #30  
Old 29 Dec 2006, 18:33
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Real name: Shawn
Originally Posted by GNDI View Post
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:36.

Layout Options | Width: Wide Color: