kyborg
12-18-2012, 08:21 AM
Hello modders,
i'm trying to do a notification whenever a new reply is posted.... here is my code
(i'm using arrowchat)
Here, what i try to do is insert a line into database whenever a new reply is there... but doesn't seem to be working....
hook: newpost_notification_message
product: vbulletin
$arrowchat_alert_type_id = 8;
$vbulletin->db->query_write("INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time, misc1, misc2) VALUES ('".$touser[userid]."', '".$vbulletin->userinfo[userid]."', '".$vbulletin->userinfo[username]."', '".$arrowchat_alert_type_id."', '".time()."', '".mysql_real_escape_string($threadinfo[title])."' ,'".$threadlink."')");
i'm trying to do a notification whenever a new reply is posted.... here is my code
(i'm using arrowchat)
Here, what i try to do is insert a line into database whenever a new reply is there... but doesn't seem to be working....
hook: newpost_notification_message
product: vbulletin
$arrowchat_alert_type_id = 8;
$vbulletin->db->query_write("INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time, misc1, misc2) VALUES ('".$touser[userid]."', '".$vbulletin->userinfo[userid]."', '".$vbulletin->userinfo[username]."', '".$arrowchat_alert_type_id."', '".time()."', '".mysql_real_escape_string($threadinfo[title])."' ,'".$threadlink."')");