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

corn 10-18-2003 01:50 PM

I've got a weird problem.

I've installed this hack yesterday @2.2.7, works fine.

but, only one user has got a very fast clock ;)
every second, his online time changes 3 or 4 hours :D

what can it be ?

bada_bing 02-18-2004 04:09 PM

Will this work with VB 2.3.4 running vportal 3.0b?

Marzas 03-13-2004 10:09 PM

hey i need help fast.

Whenever my users get to about 15 hours online, the timeonline leaderboard puts them onto the last page and changes their time online to about -4 days and so.

How can this be fixed? I have other hacks installed but i checked, and its not interfearing with anything.

Marzas 03-16-2004 04:52 AM

i need help on this? Where are you G-force?

John Diver 03-17-2004 03:00 PM

Is anyone having a problem with the hack not counting members as online at a certain time?
I think its up to around 10am GMT that the hack doesnt count anyone as online.
For example before 10am I saw 4 members online, but the number of active users today was showing as 0
I have seen this a good few times now, I think it happens everyday from a certain time until around 10am

Marzas 03-18-2004 06:28 AM

its like the owner has ditched the hack....

Hello? people need help here?


All times are GMT. The time now is 06:39 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.01476 seconds
  • Memory Usage 1,764KB
  • 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
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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