vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Total Time Online Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=42864)

NTLDR 08-29-2002 03:33 PM

Quote:

Originally posted by Okiewan
Time online per day is out of whack for everyone but users who register after the hack is installed...
I attempted to do this but failed badly :p

The way I wanted to do it was if you registed before the date the hack was installed it calculated the time online since then per day, otherwise it did it since you registred, but I didn't get anywhere :cry:

scottct1 08-29-2002 03:44 PM

Ok I clicked install. :) Any way to add a days column. :) Some of us spend way to much time in front of their computer!

wolfe 08-29-2002 04:05 PM

i get this error on the time online leader page

Fatal error: Call to undefined function: dotimeonline() in /usr/local/psa/home/vhosts/mysite/httpdocs/forums/timeonline.php on line 39

wolfe 08-29-2002 04:23 PM

not working properly on VBB 2.2.4

grog6 08-29-2002 04:27 PM

Waouhouh, thx a lot G-force2k2 !

It's a very fabullous hack, thanks for this work, it works perfectly :)

NTLDR 08-29-2002 04:52 PM

Quote:

Originally posted by wolfe
not working properly on VBB 2.2.4
It works fine on vB 2.2.4, go through the instructions, I expect you have made a mistake ;)

g-force2k2 08-29-2002 08:09 PM

wolfe did you make the changes to the admin/functions.php? regards...

g-force2k2

PsYc 08-29-2002 09:26 PM

Quote:

Originally posted by Okiewan
Cool hack, but a problem?

Time online per day is out of whack for everyone but users who register after the hack is installed... any way to change it to start averaging from 0 rather than looking at how long the user has been registered? IMHO, that calc as it is now isn't very useful. I for example have been registered for nearly 3 years, was online 3 hours after installing the hack. Shows my online time as 3 hours, but my per day average as 8 seconds :)


yes same problem here too...

the counter seems a bit buggy

can you have a look at it g-force2k2?

Souly 08-29-2002 11:18 PM

I have do the follow to calculate a correct "Time Online Per Day".

First you need the Timestamp (LINUX) before you start to install my changes! ! !

in timeonline.php find:
PHP Code:

        $daysregs floor((time() - $lead[2]) / 86400); 

change it to: [installtimestamp=yourtimestampyou must change it manually]
PHP Code:

          $daysregs floor((time() - installtimestamp) / 86400); 

I have Start the Tool now, an now is Linuxtime=1030666140 - also my Code is
PHP Code:

          $daysregs floor((time() - 1030666140) / 86400); 

And don?t look on my bad english - first learn german :lick:

Boofo 08-29-2002 11:24 PM

What does this mean? :) Isn't that on the server already?

Quote:

First you need the Timestamp (LINUX) before you start to install my changes! ! !


All times are GMT. The time now is 03:14 PM.

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.01387 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_php_printable
  • (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