Page 1 of 1

vBulletin 3.x Better Private Message Notifications

PostPosted: 06 Mar 2011, 09:50
by VMalhotra
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 */

PostPosted: 10 Jul 2011, 00:58
by DMoney
Working in vb4.1.4

Topic Closed

PostPosted: 07 Nov 2012, 12:40
by Staff Bot
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.