Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3

Thread: Stats Help

  1. #1
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    1,788
    Tokens
    0

    Latest Awards:

    Default Stats Help

    Ok is there a site where I can get stats put on my site like "Habbos Online: 3". Like on Habbox, and it also says the hits?

  2. #2
    Join Date
    Dec 2005
    Posts
    1,733
    Tokens
    201
    Habbo
    Bomb-Head

    Latest Awards:

    Default

    Try searching on google = Website statistic script or something like that ?

  3. #3
    Join Date
    Feb 2006
    Location
    Manchester UK
    Posts
    156
    Tokens
    0

    Default

    The users online is actually a really simple PHP code, you can get advanced ones including MySQL but seeing as you may not have SQL knowledge i'll show you the simple way.

    PHP Code:

    <?

    $timemax 
    "500"

    $ipadress $REMOTE_ADDR;

    $timenow explode (" "microtime());
    $timenow $timenow[1];

    include (
    "data.php");

    $timedelete $timemax;

    $deleted $deleted $timedelete;

    if (
    $deleted $timenow){

    $file fopen("data.php","w+");
    fputs($file"<?PHP \$deleted = \"$timenow\"; ?>\n");

    $number count($visitor_b);

    for (
    $tel 0$tel $number$tel++){
    $visitor_a $visitor_b[$tel];

    $visitor_a[0] = $visitor_a[0] + $timemax;

    if (
    $visitor_a[0] > $timenow)
    fputs($file"<?PHP \$visitor_b[] = array('$visitor_a[0]','$visitor_a[1]'); ?>\n");

    }

    fclose($file);

    }
    $visitor_b "";

    include (
    "data.php");

    $number count($visitor_b);

    for (
    $tel 0$tel $number$tel++){
    $visitor_a $visitor_b[$tel];

    if (
    $visitor_a[1] == $ipadress)
    $save "nee";

    }

    if (!
    $save){

    $file fopen("data.php","a");
    fputs($file"<?PHP \$visitor_b[] = array('$timenow','$ipadress'); ?>\n");
    fclose($file);

    }

    $visitor_b "";
    include (
    "data.php");

    $number count($visitor_b);

    for (
    $tel 0$tel $number$tel++){
    $visitor_a $visitor_b[$tel];
    $visitor_a[0] = $visitor_a[0] + $timemax;

    if (
    $visitor_a[0] > $timenow)
    $online $online 1;

    }

    if (!
    $online)
    $online 1;

    if (
    $online == 1)
    print (
    "Users Online: $online");
    else
    print (
    "Users Online: $online");

    ?>
    Now you need to create a file called data.php and CHMOD it too 777 and upload it onto your server.
    I'm extremely critical and mean..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •