Here are the code for notification i have asked for the code no one gave it so now here im giving it to ya all
Notification
Collapse
X
-
maybe could be more good if it were translated in english and in xhtml..
i don't understand the language of this script..sigpicthe italian/international COMMUNITY of friendship
http://people2000.netne.net
WAP/WEB
peoplemailbox@katamail.com
Comment
-
Smaller clone of notification at mGIGS Home
PHP Code://add core
function Notify($to,$frm,$msg){
if(!isuser($frm))$frm=1;
if(mysql_query("insert into ibwf_ntf values(NULL,$to,$frm,$msg,1,time())"))return true;
return false;
}
//add to index
elseif($action=="ntf"){
//html start
$q=mysql_query("SELECT * FROM ibwf_ntf WHERE uid='".getuid_sid($sid)."' ORDER BY dtime DESC LIMIT 20");
if(mysql_num_rows($q)>0){
while($nt=mysql_fetch_array($q)){
if($nt[unread]==1)$urd="*";
$usr='<a href="index.php?action=viewprofile&who='.$nt['who'].'&sid='.$sid.'">'.getnick_uid($nt[who]).'</a>';
echo $urd.$usr."- ".$nt[msg]."<br/>";
}
mysql_query("update ibwf_ntf set unread='0' where uid='".getuid_sid($sid)."'");
}else{
echo "No notifications.";
}
//html stop
}
//sql structure
/*
table: ibwf_ntf
rows: id, int(100), auto_increment;
uid int(100); who int(100); msg varchar(100); unread int(1) default 1; dtime int(100);
*/
//use
//$msg="wrote in your gbook";
//$to=id recvr
//$frm=id of snd
//Notify($to,$frm
,$msg);
Comment
Comment