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)

docvader 01-08-2005 03:45 AM

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?

royals 01-08-2005 03:43 PM

How do I remove seconds? People are getting into months for time spent and its too much even after I shortened the phrases.

nautiqeman 01-12-2005 02:10 PM

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

Elfo King 01-23-2005 07:09 PM

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 ?

nintendo 01-26-2005 01:08 AM

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!!!

DeadGaze 01-30-2005 01:42 PM

ok dude here is the fix for 3.0.3 hehe :p

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

reteep 02-04-2005 08:52 AM

Hi there,

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

Anyone got a fix?

Hideo Kojima 02-15-2005 07:45 PM

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 :(

Megareus Rex 02-21-2005 04:25 PM

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)

AmpSul 03-06-2005 04:10 AM

Works on my 3.0.7. Nice one!!


All times are GMT. The time now is 09: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.01245 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_code_printable
  • (3)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