PDA

View Full Version : newpost_notification_message


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."')");

Simon Lloyd
12-18-2012, 11:36 AM
What isn't working? the whole query? has your vbulletin database table got a prefix?

kyborg
12-18-2012, 11:53 AM
The hook doesnt seem to be working, there is no prefix. Thanks

--------------- Added 1355837650 at 1355837650 ---------------

i'm using 4.2.0 - release 3