vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   End-User Options - Time Spent On Board (https://vborg.vbsupport.ru/showthread.php?t=133059)

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

Quote:

Originally Posted by daPLAYBOY (Post 1130649)
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

Quote:

Originally Posted by lifesourcerec (Post 1130634)
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


All times are GMT. The time now is 11: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
  • Page Generation 0.01111 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete