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)

tnguy3n 10-06-2005 10:00 PM

Total Time Spent On Forums
 
Total Time Spent On Board
Author: tnguy3n
Live Demo: http://12.226.255.221/vb35

This hack shows total time that users spent on the board.

To show all time units including seconds, minutes, hours, etc, uncomment lines for thoese variables in "Total Spent Time On Board" plugin.

Query: 1
File modification: 1
Plugins: 2
Template mod: 2

Update: 10/12/05
Add option to show user's total spent time on forums in the profile.
If you want to run the User's Total Spent Time In Profile as an stand-alone hack, you have to run run following query:
PHP Code:

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


TTG 10-07-2005 10:29 PM

Instructions = "Open includes/class_score.php"

Guess that should be "Open includes/class_core.php" ?

Get this error when trying to add template edit !

Quote:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/home/techguys/public_html/forum/includes/adminfunctions_template.php(3519) : eval()'d code on line 91

glorify 10-07-2005 10:34 PM

Second anyway :)

Daniel 10-07-2005 10:38 PM

Will install once someone confirms it works for them ;)

TTG 10-07-2005 10:47 PM

Ok found the error in the template edit :-

Quote:

<div>
<strong>Time spent on board:</strong><br /> $post['timeonboard']
</div>
should be :-

Quote:

<div>
<strong>Time spent on board:</strong><br /> $post[timeonboard]
</div>
Clicked install

Daniel 10-07-2005 11:08 PM

Anyway to install without running a query?

evenmonkeys 10-07-2005 11:14 PM

This is not an Extention as it requires editing of the source code. Good'n though.

FleaBag 10-07-2005 11:42 PM

How does it calculate the time?

tnguy3n 10-08-2005 12:11 AM

Quote:

Originally Posted by FleaBag
How does it calculate the time?

It tracks the time when a user start to login 'til (s)he logout (or timeout), then add up to total & store in database.

and yes, it should be in Code Modification forum instead. I was confused by vB 3.5 release forums. :ermm:

Daniel 10-08-2005 12:20 AM

Okay, if there is no way to use this without a query, how would I do it in phpMyAdmin? But when I submit the query I get "You have to choose at least one column to display"


All times are GMT. The time now is 07:51 PM.

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.01218 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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