The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
newpost_notification_message
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 Code:
$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."')"); |
#2
|
||||
|
||||
What isn't working? the whole query? has your vbulletin database table got a prefix?
|
#3
|
|||
|
|||
The hook doesnt seem to be working, there is no prefix. Thanks
--------------- Added [DATE]1355837650[/DATE] at [TIME]1355837650[/TIME] --------------- i'm using 4.2.0 - release 3 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|