Help
Discuss or request ArrowChat site notifications
User avatar
VMalhotra
Customer
 
Posts: 8
Joined: 02 Mar 2011, 20:50

 

by VMalhotra 06 Mar 2011, 09:50

I modified the Private Message notifications so they include the subject of the PM and actually link directly to the PM

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 */
User avatar
DMoney
Customer
 
Posts: 12
Joined: 25 Feb 2011, 04:49

 

by DMoney 10 Jul 2011, 00:58

Working in vb4.1.4
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 07 Nov 2012, 12:40

This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.