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)

g-force2k2 08-29-2002 04:18 AM

Boofo try using this query then? ::

PHP Code:

  $totalusers $DB_site->query_first("
    SELECT COUNT(*) AS users
    FROM user
    WHERE timeonline > 0"
); 

regards... hope that fixes the final issue :) btw i think you're getting better then me Boofo ;)

g-force2k2

Boofo 08-29-2002 04:27 AM

Sorry, that didn't change anything. :(

I'm not anywhere near as good as you on this stuff. I just seem to find more bugs with my setup than anyone else. I figure, if you can fix it to work with my site, then it will work with anyone's site. At least, that's the way it seems most of the time. :)

Quote:

Originally posted by g-force2k2
Boofo try using this query then? ::

PHP Code:

  $totalusers $DB_site->query_first("
    SELECT COUNT(*) AS users
    FROM user
    WHERE timeonline > 0"
); 

regards... hope that fixes the final issue :) btw i think you're getting better then me Boofo ;)

g-force2k2


g-force2k2 08-29-2002 04:35 AM

Boofo

open timeonline.php

find:

PHP Code:

    $leadtime $DB_site->query("
        SELECT userid, username, joindate, timeonline 
        FROM user 
        WHERE userid!=0 
        ORDER by timeonline DESC LIMIT 
$startat,$perpage"); 

replace with:

PHP Code:

    $leadtime $DB_site->query("
        SELECT userid, username, joindate, timeonline 
        FROM user 
        WHERE userid!=0 AND timeonline > 0
        ORDER by timeonline DESC LIMIT 
$startat,$perpage"); 

regards :) maybe that'll work now :P

g-force2k2

Boofo 08-29-2002 05:01 AM

You're good! that fixed it. :)

What should this be at now?

PHP Code:

$totalusers $DB_site->query_first("
    SELECT COUNT(*) AS users
    FROM user
    WHERE timeonline > 0"
); 

leave it like it is?

g-force2k2 08-29-2002 06:05 AM

you can keep that as is as well ;) regards... glad that it worked :)

g-force2k2

Boofo 08-29-2002 06:11 AM

Thanks again for all of the help. Great hack! ;)

andrew67 08-29-2002 10:34 AM

Best hack out for a long time! GREAT WORK!!! :)

scottct1 08-29-2002 01:12 PM

I want to install this hack but I have one question, will it show the users time online when they are in invisable mode?

Thanks!

g-force2k2 08-29-2002 02:38 PM

scottct1 yeah it should... but i don't see that as a problem...

g-force2k2

Okiewan 08-29-2002 03:12 PM

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


All times are GMT. The time now is 11:59 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.01206 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
  • (5)bbcode_php_printable
  • (1)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