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 8 of 8

Thread: Help please ;-)

  1. #1
    Join Date
    May 2005
    Location
    Cornwall
    Posts
    3,590
    Tokens
    2,900
    Habbo
    Feyod

    Latest Awards:

    Default Help please ;-)

    Hi Guys 'N' Gals

    okey, with my site i need the code which i think is PHP for;

    - HitCounter - Not image just text!
    - Users Online
    - IP addy
    - Users Browser

    + Rep to the first person who posts teh code's :p

    Thanks.

    Ste
    Occasionally visit and have a nose.

  2. #2
    Join Date
    Mar 2005
    Location
    Dog House
    Posts
    1,000
    Tokens
    0

    Latest Awards:

    Default

    I'll be evil here

    google it

    [ Edit ; Here You Go :
    PHP Code:
    <?php
    $ip 
    $_SERVER['REMOTE_ADDR'];
    $service $_SERVER['HTTP_USER_AGENT'];
    $time date("F d, y @ g:i:s A"time());

    echo 
    "Your I.P is: $ip<br>Your Internet Service is: $service<br>The current time is: $time";
    ?>
    Has Ip, Internet Service, And Time

    PHP Code:
    <?php

    $loadbegintime 
    microtime();
    $loadbeginarray explode(" "$loadbegintime);
    $loadbegintime $loadbeginarray[1] + $loadbeginarray[0];

    $loadendtime microtime();
    $loadendarray explode(" "$loadendtime);
    $loadendtime $loadendarray[1] + $loadendarray[0];

    $total_script_time $loadendtime $loadbegintime;

    echo 
    "This Page took " .round($total_script_time 6) ." seconds to load!";

    ?>

    Displays The Loading Time Of Page


    PHP Code:
    ?php echo $_SERVER["HTTP_USER_AGENT"]; ?> 
    Displays The Browser On Its Own

    PHP Code:
    <?php
    $counterfile 
    "counter.txt";
    $counter file("$counterfile");
    $c $counter[0];
    if (
    strlen($c) == 0)
    {
    $c=0;}
    $c=$c+1;
    $a fopen("$counterfile""w");
    fwrite($a$counter "");
    fputs($a$c);
    fclose($a);
    echo (
    "$c");
    ?>
    This is a flat type counter its done via a file made in notepad make a file called counter.txt and chmodi t '666' copy that code were you want the hit counter to be. simple but boring way and to easy.
    Last edited by :Woof; 04-08-2005 at 10:49 PM.

  3. #3
    Join Date
    May 2005
    Location
    Cornwall
    Posts
    3,590
    Tokens
    2,900
    Habbo
    Feyod

    Latest Awards:

    Default

    o.O well i suppose that helps, i need the hits and users online badlt though lololol anyways Rep still looking though kthxbi
    Occasionally visit and have a nose.

  4. #4
    Join Date
    Jan 2005
    Location
    Kentucky Fried Chicken
    Posts
    4,610
    Tokens
    0

    Latest Awards:

    Default

    I Looked At It, Too Hard Vego Stev

  5. #5
    Join Date
    Mar 2005
    Location
    Dog House
    Posts
    1,000
    Tokens
    0

    Latest Awards:

    Default

    May not be the smallest codes ever but they should work

  6. #6
    Join Date
    Jan 2005
    Location
    Kentucky Fried Chicken
    Posts
    4,610
    Tokens
    0

    Latest Awards:

    Default

    Ya It Should

  7. #7
    Join Date
    Apr 2005
    Posts
    4,963
    Tokens
    0

    Latest Awards:

    Default

    users online:
    HTML Code:
    <SCRIPT 
    src="http://fastonlineusers.com/online.php?d=WWW.YOURSITE.COM"> </SCRIPT>
    Browser:
    HTML Code:
    <!--#echo var="HTTP_USER_AGENT" -->
    Text counter: http://www.cutandpastescripts.com

    There all html just incase..

  8. #8
    Join Date
    May 2005
    Location
    Cornwall
    Posts
    3,590
    Tokens
    2,900
    Habbo
    Feyod

    Latest Awards:

    Default

    Thanks Owen + Rep. - EDIT: - Darn it, must spead some :p i will add it to my to do list :p thanks rep will come soon.

    Thread Locked
    Occasionally visit and have a nose.

Posting Permissions

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