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)

Rock 09-01-2002 02:11 PM

Quote:

Originally posted by g-force2k2
Minifreunde :: Attach your timeonline.php here and i will debug for you regards...

Rock :: what lines did you put in the admin/functions.php ?

KarateKid :: Goldknight is correct... the install_timeonline.php is the txt file... regards...

Goldknight :: thanks for the help :)

g-force2k2


Mate, i added the lines u said in the install file ...
Here they are:
Code:

File Modification (5)
// +++++++++++++++++++++
open admin/functions.php (2)

find: (1)

                $post[joindate]=vbdate($registereddateformat,$post[joindate]);

below it add:

// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
                $post[onlinetime] = dotimeonline($post[timeonline]);
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++

find: (2) (the second appeareance)

?>

above it add:

// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
// do time online function
  function dotimeonline($timeonline) {

    $days = floor($timeonline / 86400);
      if($days == 0) {
          $ftime = "";
        } elseif($days == 1) {
          $ftime = "$days Day, ";
        } else {
          $ftime = "$days Days, ";
        }
 
    $tothours = $days * 86400;
    $newhours = $timeonline - $tothours;
    $hours = floor($newhours / 3600);
    $ftime.= "$hours Hours, ";

    $totmin = (($hours * 3600) + ($days * 86400));
    $newmin = $timeonline - $totmin;
    $minutes = floor($newmin / 60);
    $ftime.= "$minutes Minutes, ";

    $totsec = (($hours * 3600) + ($minutes * 60) + ($days * 86400));
    $seconds = $timeonline - $totsec;
    $ftime.= "$seconds Seconds Online";

    return $ftime;

}
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++


Did exactly what u said on the install file...

Rock 09-01-2002 02:11 PM

Quote:

Originally posted by Goldknight


Did you add the new templates?

dUhhhh ...
Of course ...

wolfe 09-01-2002 03:27 PM

right i got a test for you

g-force2k2

is there anyway of adding a bit to the user.php file in the Admin CP so you can find users by time online and also mass delete them and mass email them by there time spent online :D this would be great if you can :D

wolfe 09-01-2002 03:34 PM

also i got it working Great hakc d00d :D:D

suzemir 09-01-2002 08:19 PM

great hack - i love it

thanks

groovesalad 09-01-2002 11:36 PM

Doesn't work. Here's what happens.

As soon as I edit admin/sessions.php from:

find: (1)

if ($session['styleid']!=0) {
$bbuserinfo['styleid'] = $session['styleid'];
}

to

// +++++++ Time Online Hack [ g-force2k2 ] +++++++
$inactivetime = 5; // Configure Time Out Time Here in Minutes!
$factivetime = $inactivetime * 60;
$newtime = time() - $bbuserinfo[lastactivity];
if($newtime < $factivetime) {
$DB_site->query("UPDATE user SET timeonline=timeonline+$newtime WHERE userid='$bbuserinfo[userid]'");
}
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++




I get this when my page loads:

There seems to have been a slight problem with the Groove-Salad database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 2.2.6:

Invalid SQL: UPDATE user SET timeonline=timeonline+2 WHERE userid='3'
mysql error: Unknown column 'timeonline' in 'field list'

mysql error number: 1054

Date: Sunday 01st of September 2002 05:31:31 PM
Script: http://groove-salad.com/forum/forum/
Referer:




I don't understand why it's saying the script is at http://groove-salad.com/forum/forum/

Any help would be greatly appreciated.

Goldknight 09-01-2002 11:59 PM

Quote:

Originally posted by Rock


dUhhhh ...
Of course ...

Ok, I m going to let g-force2l2 care of this one..

later


bah

g-force2k2 09-02-2002 01:30 AM

groovesalad did you run the queries first? regards...

g-force2k2

wolfe 09-02-2002 01:33 AM

please help

https://vborg.vbsupport.ru/showthrea...943#post293943

groovesalad 09-02-2002 01:34 AM

gforce: sorry, new to this. How do I run a query?


All times are GMT. The time now is 06:59 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.02167 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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