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 15

Thread: Site alert :s

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

    Latest Awards:

    Default Site alert :s

    Hello, Im wanting a site alert which will work with HNFM's DJ Panel, and was woundering how I could make a site alert only go off once per IP. Like clubhabbos, refreshes every 30 secs, but only alerts 1 user once.
    Possible post code.
    +Rep asusual

  2. #2
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    <? include ("showalert.php") ?> is the one for Activated/Deactivated

    But with IP i don't know, I'd also like to know this
    Last edited by Drompo; 05-02-2007 at 05:31 PM.


  3. #3
    ScottDiamond Guest

    Default

    Quote Originally Posted by Drompo View Post
    <? include ("showalert.php") ?> is the one for Activated/Deactivated

    But with IP i don't know, I'd also like to know this
    Wth? What code would showalert.php be? ;l

    It's all done through SQL and an iFrame I think. I'll chase up the code in a minute.

  4. #4
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    2,432
    Tokens
    141

    Latest Awards:

    Default

    Yes it is done through SQL and PHP.

    Try this but edit it a bit because this is for a usersystem:

    http://www.techtuts.com/forums/index.php?showtopic=175
    Free Online Games And Videos:
    http://www.vincesgames.com



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

    Default

    Search on google.

    I am not sure AT ALL. Ask luke or SkaterChu might know

    _____

    You seriously want a pop-up announcement thing? Well, so do I so I better subscribe to thread
    [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 ]


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

    Latest Awards:

    Default

    iv got it so it deletes the alert, but How do I do it so it shows up to every 1 before it gets deleted?

  7. #7
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Quote Originally Posted by mr.geeza View Post
    Wth? What code would showalert.php be? ;l

    It's all done through SQL and an iFrame I think. I'll chase up the code in a minute.
    If He's using HNFM's panel all the alerts go through the table and output at showalert.php

    The table is alert or alerts


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

    Latest Awards:

    Default

    can any 1 fix this code:
    PHP Code:
    <? include

    (
    "dbConfig.php");
    ?> 

    <?  
    // Get Alert
     
    $alertQuery mysql_query("SELECT * FROM alert WHERE active='Y'");
      if(
    mysql_num_rows($alertQuery) =="1")
      {  
       
    $alertData mysql_fetch_array($alertQuery);  
            if(
    $_COOKIE["$alertData[ID]"] !="Y")
            {        
                 
    setcookie($alertData[ID], "Y");    
                    echo
    "   
                        <script language='javascript'>alert(' DJ 
    $alertData[name] Has An Official Announcement: $alertData[message]');</script>";   
                                {
                                 } 
                                 }
                                  }
                                   
    ?> 
                                   <META HTTP-EQUIV="REFRESH" CONTENT="5">
    the file is here:
    http://www.crazyhabbo.net/staff/test2.php
    Last edited by Moh; 05-02-2007 at 06:29 PM.

  9. #9
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    PHP Code:
    <?

    include ("dbConfig.php");

    ?>

    <?



    // Get Alert

    $alertQuery mysql_query("SELECT * FROM alert WHERE active='Y'");

      
      if(
    mysql_num_rows($alertQuery) =="1"){

      
    $alertData mysql_fetch_array($alertQuery);
      

          echo
    "

          <script language='javascript'>alert(' DJ 
    $alertData[name] Says: $alertData[message]');</script>";

              {

    }

    }

    ?>

    <META HTTP-EQUIV="REFRESH" CONTENT="5">


  10. #10
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Is this possible.
    Put a timestamp for like 30 seconds, When this runs out it deactivates


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
  •