vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Total Time Spent On Forums (https://vborg.vbsupport.ru/showthread.php?t=97830)

puertoblack2003 11-19-2005 12:24 AM

great Hack *******INSTALLED**** no problems

board.trash 11-25-2005 02:21 PM

another nice hack from my friend tnguy3n :)

Thx ( clicks install )

MissKalunji 11-26-2005 12:50 AM

nuthing showing for me......

tnguy3n 11-26-2005 01:44 AM

@ board.trash: thanks, mate.

@ MissKalunji: try to add modify both postbit and postbit_legacy templates.

MissKalunji 11-26-2005 02:06 AM

Quote:

Originally Posted by tnguy3n
@ board.trash: thanks, mate.

@ MissKalunji: try to add modify both postbit and postbit_legacy templates.


im trying on the member info page....

tnguy3n 11-26-2005 02:10 AM

Quote:

Originally Posted by MissKalunji
im trying on the member info page....

It was meant to be an add-on for the Total Time Spent On Forums; however, if you want to install it as a stand-alone, you have to run the following query:
PHP Code:

ALTER TABLE `userADD `timeonboardINT10 NOT NULL AFTER `lastactivity`; 


MissKalunji 11-26-2005 02:53 AM

Quote:

Originally Posted by tnguy3n
It was meant to be an add-on for the Total Time Spent On Forums; however, if you want to install it as a stand-alone, you have to run the following query:
PHP Code:

ALTER TABLE `userADD `timeonboardINT10 NOT NULL AFTER `lastactivity`; 



not working thanks anyway

ImportPassion 11-29-2005 02:54 AM

couldn't this be put in a plugin and called on init_startup?

PHP Code:

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 timeonboard = timeonboard + 
$newtime
        WHERE userid = " 
$this->userinfo['userid'].""); 

or am i way off base?

Chris M 12-01-2005 06:41 AM

Moved to correct forum :)

Chris

nintendo 12-03-2005 09:05 PM

If you get..

Quote:

You have to choose at least one Column to display
in phpMyAdmin, go to 'user' then use the 'Run SQL query/queries on database' form there, at the bottom


All times are GMT. The time now is 12:37 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.01195 seconds
  • Memory Usage 1,742KB
  • 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
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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