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![]()

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![]()
<? 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.
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
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 ]
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?
can any 1 fix this code:
the file is here: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">
http://www.crazyhabbo.net/staff/test2.php
Last edited by Moh; 05-02-2007 at 06:29 PM.
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">
Is this possible.
Put a timestamp for like 30 seconds, When this runs out it deactivates
Want to hide these adverts? Register an account for free!