Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[VB3 RC3] Board Spent Time Details »»
[VB3 RC3] Board Spent Time
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-19-2004 Last Update: Never Installs: 108
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #162  
Old 01-08-2005, 03:45 AM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boots
Just a simple php file that does a calculation based on the timespent column which this mod adds to the database. It just dumps it to a template. Maybe I'll do up some instructions and post it up.
Installed on a heavily hacked 3.03 board without any problems. Works great.

One question: I've added the "time spent" calls to my FORUMHOME template, to show this information for each individual person in a welcome message. However, the time is not being shown. What do I have to add where, to make it work? I tried putting the "showthread" hack stuff into forumdisplay, but, that didn't do it.

Anyone have any ideas?
Reply With Quote
  #163  
Old 01-08-2005, 03:43 PM
royals's Avatar
royals royals is offline
 
Join Date: Jul 2004
Location: kansas city
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I remove seconds? People are getting into months for time spent and its too much even after I shortened the phrases.
Reply With Quote
  #164  
Old 01-12-2005, 02:10 PM
nautiqeman nautiqeman is offline
 
Join Date: Jan 2003
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not really positive on this, so I'm just throwing it out there. I noticed that a user signed up some time during the day and I noticed that she already had over a day on her time spent already -- has anyone else seen this or maybe fixed it if they had
Reply With Quote
  #165  
Old 01-23-2005, 07:09 PM
Elfo King Elfo King is offline
 
Join Date: Apr 2003
Location: Pisa-Italy
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This work on 3.0.3 ???
The istruction file, for 3.0.3 is bad....first on functions_shohtread....
Have correct version for 3.0.3 ?
Reply With Quote
  #166  
Old 01-26-2005, 01:08 AM
nintendo's Avatar
nintendo nintendo is offline
 
Join Date: Dec 2001
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boots
here's what happens when I get bored and have too much time on my hands hahaha

http://forums.reality-check.ca/timewasters.php
Nice! Can you please post that! I got users that have made close to 10,000 posts. I think they would 'love' to see how much money there losing by living at the boards instead of having a 'real' job!!!
Reply With Quote
  #167  
Old 01-30-2005, 01:42 PM
DeadGaze DeadGaze is offline
 
Join Date: Apr 2003
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok dude here is the fix for 3.0.3 hehe

just goto includes/functions_showthread.php
remove the following code from it
Code:
 // Hack: get the timespent and avgtimespent 
$post['avgtimespent'] = explain_time(floor($post['timespent']/((TIMENOW-$post['joindate'])/86400))); 
$post['timespent'] = explain_time($post['timespent']);
now goto root/showthread
and find >
Code:
$postbits .= construct_postbit($post, $template);

		if (!empty($parsed_postcache['text']) AND !$stopsaveparsed)
Add above
Code:
 // Hack: get the timespent and avgtimespent 
$post['avgtimespent'] = explain_time(floor($post['timespent']/((TIMENOW-$post['joindate'])/86400))); 
$post['timespent'] = explain_time($post['timespent']);
now find >
Code:
$DB_site->free_result($listposts);

	// hooks child posts up to new parent if actual parent has been deleted
add above
Code:
 // Hack: get the timespent and avgtimespent 
$post['avgtimespent'] = explain_time(floor($post['timespent']/((TIMENOW-$post['joindate'])/86400))); 
$post['timespent'] = explain_time($post['timespent']);
Now you are done
have fun
Reply With Quote
  #168  
Old 02-04-2005, 08:52 AM
reteep reteep is offline
 
Join Date: Mar 2004
Location: Germany
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

sorry DeadGaze, doesn't work on vb 3.0.6 here.. still call to undefined function in showthread..

Anyone got a fix?
Reply With Quote
  #169  
Old 02-15-2005, 07:45 PM
Hideo Kojima Hideo Kojima is offline
 
Join Date: Jan 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stormblast
Hi there,

sorry DeadGaze, doesn't work on vb 3.0.6 here.. still call to undefined function in showthread..

Anyone got a fix?
up
Reply With Quote
  #170  
Old 02-21-2005, 04:25 PM
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I have a small problem...

One of my members complains his board spent time doesn't increase. After further investigation, I realized this is true. He's the only one this happens to, so I can't understand it...

Any thoughts?

(Other than that, great hack)
Reply With Quote
  #171  
Old 03-06-2005, 04:10 AM
AmpSul AmpSul is offline
 
Join Date: Feb 2005
Location: SillyCon Valley
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works on my 3.0.7. Nice one!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:55 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.04936 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete