Use this template:
- Code: Select all
<div class="arrowchat_notification_box arrowchat_blue_link">
<img src="/forums/arrowchat/themes/new_facebook_full/images/icons/notification_message_icon.png" class="arrowchat_notification_icon" />
{author_name} has sent you a new private message: <a href="/forums/private.php?do=showpm&pmid={misc2}">{misc1}</a><br />
<div class="arrowchat_received">Received {longago}</div>
</div>
<div class="arrowchat_notifications_divider"></div>
Use this plugin attached to the pmdata_postsave_recipient hook location:
- Code: Select all
/* ARROWCHAT NEW MESSAGE NOTIFICATION */
global $vbulletin;
global $db;
$db->query_write("INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time, misc1, misc2) VALUES ('".$user[userid]."', '".$vbulletin->userinfo[userid]."', '".$vbulletin->userinfo[username]."', '1', '".time()."', '".addslashes($plaintext_title)."', '".$this->dbobject->insert_id()."')");
/* END ARROWCHAT MESSAGE NOTIFICATION */