открыть
posting.php
найти
Код: Выделить всё
if ( $post_data['first_post'] )
{
// fetch topic title
$sql = "SELECT topic_title, topic_id
Код: Выделить всё
if ( $post_data['first_post'] && $mode != 'editpost')
{
// fetch topic title
$sql = "SELECT topic_title, topic_id
Код: Выделить всё
else
{
user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
}
Код: Выделить всё
else if ( $mode != 'editpost' )
{
user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
}
includes/functions_post.php
найти (в трех местах функции user_notification)
Код: Выделить всё
$post_text = (count($orig_word)) ? preg_replace($orig_word, $replacement_word, unprepare_message($post_data['message'])) : unprepare_message($post_data['message']);
Код: Выделить всё
//(C) взято из Extended_PM_Notification MOD
//Clean up all BBcode UID
$post_text = trim(stripslashes($post_text));
$quote = $lang['Quote'];
$code = $lang['Code'];
$bbcode_match = array('/\[quote\S*="\w+"\]/si', '/\[quote\S*\]/si', '/\[\/quote\S*\]/si', '/\[code[^\]]*\]/si', '/\[\/code[^\]]*\]/si', '/\[[^\]]*\]/si');
$bbcode_replace = array("\n$quote >>\n", "\n$quote >>\n","\n<< $quote\n", "\n$code >>\n","\n<< $code\n",'');
$post_text = preg_replace($bbcode_match, $bbcode_replace, $post_text);
И еще вроде решена проблема с пойнтами