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 */