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)

obiwan8472 05-25-2003 10:43 PM

Me too! This needs updating as its awesome! :D

DJ_aroms 05-26-2003 05:58 PM

Quote:

08-30-02 at 01:31 AM g-force2k2 said this in Post #71
aight... for all the ppl that feel cheated... here's a code i devised for ya...no the counter isn't buggy because it uses the joindate :p but here's a little code i whipped up for ppl like you that feel cheated :p regards...

open timeonline.php

find:

PHP Code:

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

replace with:

PHP Code:

        // Time Online Hack Addon (fair time per day?) g-force2k2
        
$fairtime 1030505285;
        if(
$joindate $fairtime) {
          
$daysregs floor((time() - $fairtime) /86400);
            } else {
            
$daysregs floor((time() - $lead[2]) / 86400); 
            } 
        
// Time Online Hack Addon (fair time per day?) g-force2k2 

should really change those values up for ya now ;) regards...

g-force2k2

This nor the other $fairtime value work for me. The Online per day is still counted from the register date.

Any ideas? Thanks. Great Hack (if i can just get this working!!)

obiwan8472 05-27-2003 10:57 PM

how much server load does this hack generate?
if its counting each member all the time it makes me wonder.
thanx

maxxxxxx 07-31-2003 02:17 PM

Hello,

i have found the error in the code here is the correct working file
PHP Code:

            while($lead $DB_site->fetch_array($leadtime)) {
       
$userid $lead[0]; $username $lead[1]; $joindate vbdate($dateformat,$lead[2]); $timeonline dotimeonline($lead[3]); $posts $lead[4];
       
$daysregs floor((time() - $lead[2]) / 86400);
    if(
$daysregs == 0) { // checking to see if not registered for more then a day to prevent division by zero
            
$daysreg 1;
          } else {
            
$daysreg $daysregs;
          }
        
$dotimeperday floor($lead[3] / $daysreg);
        
$timeperday dotimeonline($dotimeperday);
          eval(
"\$time_leader.= \"".gettemplate("time_leader")."\";");
          } 

These are the rows 38 - 49

you can test it under www.phonecity.de/forum/timeonline.php

Regards
Thomas

legendarysk8er 09-03-2003 01:42 AM

Does this hack start counting AFTER you've installed it or does it accumulate it all together from the past too?

wolfe 09-11-2003 12:25 AM

i have converted this hack to vB 3.0.0 but i will not release untill i have permission off g-force2k2 and vB.org i have added a few extras such as Total To Show where you can pick how many you want to display on the page. also i have added sort by were you can pick what you want to sort it by eg username, timeonline etc. i have also removed the old page navs and intergrated it with the new and proper perpage nav

preview in the attachment...

legendarysk8er 09-19-2003 08:42 PM

Quote:

Originally Posted by legendarysk8er
Does this hack start counting AFTER you've installed it or does it accumulate it all together from the past too?


Can someone answer my question and does this work for vB 2.3.2?

Marzas 09-19-2003 10:26 PM

cool hack, installed perfectly

legendarysk8er 09-22-2003 12:14 AM

*BUMP*

Can someone get back to me on my question?

legendarysk8er 09-27-2003 11:59 AM

*bump*

What the hell g-force, stop being so lazy and answer my question..


All times are GMT. The time now is 08:31 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.01480 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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