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-19-2004 10:00 PM

[VB3 RC3] Board Spent Time
 
This hack keeps track of how much time a user has been online at the
forums and adds it to the information in any of his posts, then any
other user can see if you have been 1 hour, 5 hours, 1 day or even up
to years online at the forum.

Also this hack calculates an "average time online" in a very similar way to
how the average posts works.

Thanks to the people that suggested this hack in the request forum, it is
a really nice one and a very fun one too!

Keep in mind this hack will only start tracking the time that you are online once you install it, it has no way of knowing how much time you had been on the forums before.


*Update*: You can show the board spent time in your memberlist, then you can use your memberlist as a leaderboard. For this modification see this post: https://vborg.vbsupport.ru/showpost....6&postcount=50


Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

eXtremeTim 01-19-2004 11:32 PM

Was waiting for this one. Does this track the total time on site or just when in forums since your text says time in forums.

Kentaurus 01-19-2004 11:35 PM

Quote:

Originally Posted by eXtremeTim
Was waiting for this one. Does this track the total time on site or just when in forums since your text says time in forums.

If your site uses the forum engine (it includes global.php to make queries and such) then it will track the total time on site. Otherwise if the rest of the site is just static html or any other news/articles program it has no way of tracking time spent.

eXtremeTim 01-19-2004 11:40 PM

by site i ment the whole of the board ;)

Kentaurus 01-19-2004 11:41 PM

Quote:

Originally Posted by eXtremeTim
by site i ment the whole of the board ;)

Oh. Yes, it keeps track of everywhere. Forums, Threads, Usercp, private messages... actually everything.

eXtremeTim 01-19-2004 11:50 PM

Hey can you make this say second minutes and hours ect instead of just one of them?

Kentaurus 01-19-2004 11:57 PM

Quote:

Originally Posted by eXtremeTim
Hey can you make this say second minutes and hours ect instead of just one of them?

that's what it does already. My screenshot only shows minutes but that is only an example. It goes seconds-minutes-hours-days-weeks-months and up to years, although I have yet to see someone that spent a complete year of his life in a forum.

eXtremeTim 01-19-2004 11:59 PM

No i mean like

Time online: 1 minute, 34 seconds

or 3 weeks, 4 days, 2 hours, 1 minute, 23 seconds

or something along thoose lines like this hack for vb2 did.

Kentaurus 01-20-2004 12:02 AM

Quote:

Originally Posted by eXtremeTim
No i mean like

Time online: 1 minute, 34 seconds

or 3 weeks, 4 days, 2 hours, 1 minute, 23 seconds

or something along thoose lines like this hack for vb2 did.

Seems like I am not getting your questions :) I should read more carefully.

Yes, it can be done. That's a little too specific for my needs but should be a simple change. I really didn't check on the hack for vb2 so I only went with what people were asking for in the request forum. I'll look into it.

eXtremeTim 01-20-2004 12:06 AM

Thanks man i would really love to have it like that.


All times are GMT. The time now is 12:30 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.01203 seconds
  • Memory Usage 1,738KB
  • 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
  • (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