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-25-2004 04:17 PM

Quote:

Originally Posted by mharmon
kentaurus --

it's working great for me now -- is there anyway to take out the "seconds" though on the display in the forums?

To get rid of the "seconds" part:

In the hack:

Code:

if ($time <= 1)
  {
  return $ignoredefault ? "" : $vbphrase['less_than_1_second'];
  }
  else if ($time < 60) // 60 is not still a minute
  {
  return $time." ".$vbphrase['seconds'];
  }

change it to

Code:

  if ($time < 60)
  {
  return $ignoredefault ? "" : "< 1 min";
  }


eXtremeTim 01-25-2004 04:21 PM

Quote:

Originally Posted by kentaurus
Works in my forum. You remembered to go to ACP and check that Board Spent Time checkboxes, right? :)

I had fixed it already :).

Kentaurus 01-25-2004 05:18 PM

Quote:

Originally Posted by eXtremeTim
I had fixed it already :).

Care to share what was it? ;)

AutomatikStudio 01-25-2004 07:09 PM

This is rather odd. I had a someone just join and in their profile it says

Time spent in forums: 1 Minute 32 Seconds
Average time: 11 Hours 2 Minutes 24 Seconds

Now...maybe I missed something...but how does only being in the forums for a total of 1 min. and 32 seconds make a total average of over 11 hours?

mharmon 01-26-2004 03:10 AM

kentaurus -- taking the seconds out worked fantastic -- thanks. :)

eXtremeTim 01-26-2004 03:23 AM

Quote:

Originally Posted by kentaurus
Care to share what was it? ;)

ftp client locked up

eXtremeTim 01-26-2004 03:24 AM

Quote:

Originally Posted by mharmon
kentaurus -- taking the seconds out worked fantastic -- thanks. :)

Its becuase they have not been registered a day. So they out of say maybe the hour they have been registered that much time on would give a much higher avg time.

Codeman05 01-26-2004 11:07 PM

Ok well I installed this and all the querys...both fields still say <1 :(
Any ideas? I did edit the right line btw in sessions.php ;)

btw were are these boxes you speak of:
Quote:

Originally Posted by kentaurus
Works in my forum. You remembered to go to ACP and check that Board Spent Time checkboxes, right? :)


Codeman05 01-27-2004 01:06 AM

lmao wow I'm an idiot...upgraded from RC2 -> RC3 and it works fine :)

GREAT hack works perfect :D

mharmon 01-27-2004 07:35 PM

Any update on why in private messages it shows a long number instead of the Days, etc...?


All times are GMT. The time now is 05:57 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.02400 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
  • (2)bbcode_code_printable
  • (6)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