vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [VB3 RC3] Board Spent Time (https://vborg.vbsupport.ru/showthread.php?t=60488)

Kentaurus 01-21-2004 06:10 PM

Quote:

Originally Posted by mharmon
kentaurus ---

thanks for ther quick reply. I did that query and it didn't give me an error -- although now it still says <1 for both entries on the site.

any suggestions?

That query resets both the average time and the total time. The average time is not stored, it is calculated.

Maybe I should explain how I the average time works, as the < 1 sec might not be a problem at all. The average time is calculated by

time spent on board / days since you registered

that is, if you have been on the board for 50 minutes and you registered 2 days ago the average time would be 25 minutes. If you don't login for two days your average time drops to 12 minutes since you have 4 days registered.

In that case since this hack is new you may have very small total time spent, maybe your user has 10-20 minutes. If you registered a year ago that is 10 minutes / 365 days.. that is a very low number and maybe less than 1.

This is also how the average post count in the forum works, it makes a total posts / days since you registered

mharmon 01-21-2004 06:13 PM

kentaurus :

how often does it update the "time spent in foruns" field?

Zeitgeist 01-21-2004 06:17 PM

Quote:

Originally Posted by mharmon
kentaurus :

how often does it update the "time spent in foruns" field?

Everytime you click on a link in the forum.

GamerzWorld 01-21-2004 06:49 PM

It wont work for Rc3 for me

mharmon 01-21-2004 11:33 PM

Same here...

I actually got mine to say "2" instead of <1 but it never goes above that.. any suggestions guys?? I have to get this hack working! :)

eXtremeTim 01-22-2004 12:05 AM

Quote:

Originally Posted by kentaurus
Actually it's a good idea.

I would like to know if you want it into the memberlist (you see an extra "time spent" column in memberlist and can sort by it) or as a separate page.

Second page would be better. There enough stuff on the member list as it is.

Kentaurus 01-22-2004 08:52 AM

Quote:

Originally Posted by GamerzWorld
It wont work for Rc3 for me

Did you re-made all the file changes for RC3? It's working in my RC3 board.

mharmon, could you give me the registered date and total spent time for the user that appears with "2"?

mharmon 01-22-2004 02:13 PM

There comes a time in every man's life that he must admit he is a dumb ass.

I was changing the wrong line in sessions.php . . . It works great when you change the right one.

Thanks for this great hack! :)

Oblivion Knight 01-23-2004 07:17 PM

Working great for me on RC3, thanks kentaurus.! :)

Kentaurus 01-25-2004 04:55 AM

An update for this one. Some extra modifications that will let you add the board spent time (total and average) to the memberlist. You can also sort by it to see who is the user with most board spent time.


All times are GMT. The time now is 09:16 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.01138 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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