Results 1 to 8 of 8

Thread: Alerting

  1. #1
    Join Date
    Jul 2005
    Location
    Manchester, UK
    Posts
    731
    Tokens
    0
    Habbo
    pappalou

    Default Alerting

    Anyone know a script where like;

    You can enter an IP & a message to alert the IP so the person with tht IP gets alerted.

    Or any DJ Panels that have an alert feature?

    +Rep for all help & ill give some furni to pple who help.

  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Ill post a script in a moment, im doing an essay right now

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    3,955
    Tokens
    424

    Latest Awards:

    Default

    If you get Tom you can an alert system coz thats the kinda stuff they do with Habbox.com etc I think it could be the version u gotta pay for tho!

    Hope that helps!
    2110 Reputation thanks to: Intersocial
    If you Rep, please leave your name.

  4. #4
    Join Date
    Jun 2005
    Posts
    2,688
    Tokens
    0

    Latest Awards:

    Default

    Admin end..

    PHP Code:

    <?

    if($_POST['do']=='send') {

    $ip mysql_escape_string(addslashes($_POST['ip']));
    $msg mysql_escape_string(addslashes($_POST['msg']));

    $sql "INSERT INTO alert(ip, msg) VALUES('"$ip ."','"$msg ."')";
    $query mysql_query($sql); if(!$query) { die(mysql_error()); }

    echo 
    "Alert sent!";

    }else{

    echo 
    "<form method=POST><input type=hidden name=do value='send'>
    IP: <input type='text' name='ip'><BR>
    Msg: <textarea name=msg></textarea><BR>
    <input type=submit value='Send'>"
    ;

    }

    ?>
    user end..

    PHP Code:

    <?

    $sql 
    "SELECT * FROM alert WHERE ip = '"$_SERVER['REMOTE_ADDR'] ."' LIMIT 1";
    $query mysql_query($sql); if(!$query) { die(mysql_error()); }

    if(
    mysql_num_rows($query)==1) { 

    $a mysql_fetch_array($query);

    echo 
    "<script> alert('$a[msg]'); </script>";

    $sql "DELETE FROM alert WHERE ip = '"$_SERVER['REMOTE_ADDR'] ."'";
    $query mysql_query($sql); if(!$query) { die(mysql_error()); }

    }

    ?>
    havent tested
    Last edited by Baving; 05-02-2007 at 06:46 PM.

  5. #5
    Join Date
    Jul 2005
    Location
    Manchester, UK
    Posts
    731
    Tokens
    0
    Habbo
    pappalou

    Default

    nice 1 mate, +Rep

  6. #6
    Join Date
    Jul 2005
    Location
    Manchester, UK
    Posts
    731
    Tokens
    0
    Habbo
    pappalou

    Default

    tried it, didnt work,

    Anyone else?

  7. #7
    Join Date
    Jan 2007
    Location
    Blackpool
    Posts
    224
    Tokens
    0

    Default

    I'm requesting one from ClubHabbo. They're a biggish thing now. Third person after one on Habbox Forum (at least!)
    [Go-RockFM.co.uk] [Now Open?]
    [ Don't Forget To Tune In ] [ Owner / DJ Rob ]
    [ You All Rock ] [ Felt Like Being Kind ]
    [ I Can Tell Your Name. All Green Rep's Returned ]


  8. #8
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Amir View Post
    I'm requesting one from ClubHabbo. They're a biggish thing now. Third person after one on Habbox Forum (at least!)
    If u have no luck, ill try, he asked me to do his Updates Template for Cute News, the least he can do is give me a Script

Posting Permissions

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