Thread Reply Markup (alter as you wish):
- Code: Select all
<div class="arrowchat_notification_box arrowchat_blue_link"> <img src="/arrowchat/themes/new_facebook_full/images/icons/notification_comment.png" class="arrowchat_notification_icon" /> The topic <a href="/{misc1}">{misc2}</a> has a new reply.<br /> <div class="arrowchat_received">Received {longago}</div></div><div class="arrowchat_notifications_divider"></div>
Forum Reply Markup (alter as you wish):
- Code: Select all
<div class="arrowchat_notification_box arrowchat_blue_link"> <img src="/arrowchat/themes/new_facebook_full/images/icons/notification_wall_post.png" class="arrowchat_notification_icon" /> The forum <a href="/{misc1}">{misc2}</a> has a new thread.<br /> <div class="arrowchat_received">Received {longago}</div></div><div class="arrowchat_notifications_divider"></div>
Open the includes/functions_posting.php file.
Find $messenger->send($addr['method']);, ADD AFTER:
- Code: Select all
// BEGIN ARROWCHAT NOTIFICATION
if (in_array($addr['user_id'], $update_notification['topic']))
{
$forum_url = "viewtopic.php?f=" . $forum_id . "&t=" . $topic_id;
$topic_title_insert = htmlspecialchars_decode($topic_title);
$sql = "INSERT INTO arrowchat_notifications (to_id, author_id, author_name, misc1, misc2, type, alert_time)
VALUES ('".$addr['user_id']."', '1', 'NA', '".$db->sql_escape($forum_url)."', '".$db->sql_escape($topic_title_insert)."', '5', '".time()."')";
$db->sql_query($sql);
} else if (in_array($addr['user_id'], $update_notification['forum'])) {
$forum_url = "viewforum.php?f=" . $forum_id;;
$forum_title_insert = htmlspecialchars_decode($forum_name);
$sql = "INSERT INTO arrowchat_notifications (to_id, author_id, author_name, misc1, misc2, type, alert_time)
VALUES ('".$addr['user_id']."', '1', 'NA', '".$db->sql_escape($forum_url)."', '".$db->sql_escape($forum_title_insert)."', '6', '".time()."')";
$db->sql_query($sql);
}
// END ARROWCHAT NOTIFICATION
Don't forget to change the notification IDs of 5 and 6 above to the IDs that you got after creating new notifications in the ArrowChat admin panel.