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

 

by VMalhotra 24 Mar 2011, 16:20

Friend Requests
In the Arrowchat Admin, edit your "Friend Requests" notification:
Code: Select all
<div class="arrowchat_notification_box arrowchat_blue_link">
   <img src="/forums/arrowchat/themes/new_facebook_full/images/icons/notification_friend_icon.png" class="arrowchat_notification_icon" />
   <a href="/forums/member.php?u={author_id}">{author_name}</a> has sent you a <a href="/forums/profile.php?do=buddylist#irc">friend request</a>.<br />
   <div class="arrowchat_received">Received {longago}</div>
</div>
<div class="arrowchat_notifications_divider"></div>


In vBulletin AdminCP add a new Plugin called "Arrowchat Notification Friend Requests", use the following code and attach it to the hook location: profile_doaddlist_complete
Code: Select all
/* ARROWCHAT FRIEND REQUEST NOTIFICATION */
global $vbulletin;
global $db;

if ($redirect_phrase == 'redirect_friendrequested') {
$db->query_write("INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time) VALUES ('".$userinfo['userid']."', '".$vbulletin->userinfo[userid]."', '".$vbulletin->userinfo[username]."', '2', '".time()."')");
}
/* END ARROWCHAT FRIEND REQUEST NOTIFICATION */


Wall Posts aka Visitor Messages or Profile Comments
In the Arrowchat Admin, edit your "Wall Posts" notification:
Code: Select all
<div class="arrowchat_notification_box arrowchat_blue_link">
   <img src="/forums/arrowchat/themes/new_facebook_full/images/icons/notification_wall_post.png" class="arrowchat_notification_icon" />
   <a href="/forums/member.php?u={author_id}">{author_name}</a> posted a comment <a href="/forums/member.php?u={misc1}">on your profile</a><br />
   <div class="arrowchat_received">Received {longago}</div>
</div>
<div class="arrowchat_notifications_divider"></div>


In vBulletin AdminCP add a new Plugin called "Arrowchat Notification Wall Posts", use the following code and attach it to the hook location: visitor_message_post_ajax
Code: Select all
/* ARROWCHAT WALL POST NOTIFICATION */
global $vbulletin;
global $db;

if ($userinfo[userid] != $vbulletin->userinfo[userid]) {
$db->query_write("INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time, misc1) VALUES ('".$userinfo[userid]."', '".$vbulletin->userinfo[userid]."', '".$vbulletin->userinfo[username]."', '3', '".time()."', '".$userinfo[userid]."')");
}
/* END WALL POST NOTIFICATION */
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.