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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1

    Default Help with my radio

    I have a radio and i wanna know how to make a listener counter? or do i need to acctually buy a radio to have a listener counter?
    I'm back and moving to anew character!

  2. #2
    Join Date
    Dec 2005
    Location
    XX
    Posts
    2,308
    Tokens
    2,015

    Latest Awards:

    Default

    Seriously you dont make sense.

    "i have a radio"
    then
    "or do i need to buy a radio"

    So you dont have one or do you?


  3. #3

    Default

    it's a pre-recorded radio i just record me djing and put it on my site
    so can i get a radio counter?
    I'm back and moving to anew character!

  4. #4
    Join Date
    Dec 2005
    Location
    XX
    Posts
    2,308
    Tokens
    2,015

    Latest Awards:

    Default

    So you dont have shoutCAST?


  5. #5

    Default

    no or any othe streaming program
    I'm back and moving to anew character!

  6. #6
    Join Date
    Dec 2005
    Location
    XX
    Posts
    2,308
    Tokens
    2,015

    Latest Awards:

    Default

    Ok, you want ascript to say how many people are on your site?


  7. #7

    Default

    exactly
    I'm back and moving to anew character!

  8. #8

    Default

    kkkkk

    Edited By Snoop-20(Forum Moderator): Please do not Double Post
    Last edited by Flisker; 28-06-2006 at 05:49 AM.
    I'm back and moving to anew character!

  9. #9
    Join Date
    Dec 2005
    Location
    XX
    Posts
    2,308
    Tokens
    2,015

    Latest Awards:

    Default

    I found this:

    PHP Code:

    <?php
    // Configuration
    $dbhost "localhost";
    $dbuser "[to-add]"// MySQL Username
    $dbpass "[to-add]"// MySQL Password
    $dbname "[to-add]"// Database Name
    $timeoutseconds 1200// length of session, 20 minutes is the standard

    $timestamp=time();
    $timeout=$timestamp-$timeoutseconds;
    $ip substr($REMOTE_ADDR0strrpos($REMOTE_ADDR,"."));

    // Connect to MySQL Database
    @mysql_connect($dbhost,$dbuser,$dbpass);
    @
    mysql_select_db($dbname) or die("No db");

    // Add this user to database
    $loopcap 0;
    while (
    $loopcap<&& @mysql_query("insert into useronline values('$timestamp','$ip','$PHP_SELF')"))
    // in case of collision
    $timestamp $timestamp+$ip{0}; $loopcap++;
    }

    // Delete users that have been online for more then "$timeoutseconds" seconds
    @mysql_query("delete from useronline where timestamp<$timeout");

    // Select users online
    $result = @mysql_query("select distinct ip from useronline");
    $user = @mysql_num_rows($result);

    mysql_free_result($result);
    @
    mysql_close();

    // Show all users online
    if ($user==1) {echo $user.' user online';} else {echo $user.' users online';}
    ?>
    Obviously youll need a db- i searched the forum and found it


  10. #10

    Default

    whats a db? a data base? and what would i put as it?
    I'm back and moving to anew character!

Page 1 of 2 12 LastLast

Posting Permissions

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