FIND:
if ( !isset($topic_id) && !isset($post_id) )
REPLACE WITH:
if (!$topic_id && !$post_id)
FIND:
AND t.topic_last_post_id $sql_condition t2.topic_last_post_id
BEFORE, ADD:
AND t.topic_moved_id = 0
FIND:
$join_sql_table = ( empty($post_id) )
IN-LINE FIND:
( empty($post_id) )
IN-LINE REPLACE WITH:
(!$post_id)
FIND:
$join_sql = ( empty($post_id) )
IN-LINE FIND:
( empty($post_id) )
IN-LINE REPLACE WITH:
(!$post_id)
FIND:
$count_sql = ( empty($post_id) )
IN-LINE FIND:
( empty($post_id) )
IN-LINE REPLACE WITH:
(!$post_id)
FIND:
$order_sql = ( empty($post_id) )
IN-LINE FIND:
( empty($post_id) )
IN-LINE REPLACE WITH:
(!$post_id)
FIND:
$redirect = ( isset($post_id) ) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id";
$redirect .= ( isset($start) ) ? "&start=$start" : '';
REPLACE WITH:
$redirect = ($post_id) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id";
$redirect .= ($start) ? "&start=$start" : '';
FIND:
if ( !empty($post_id) )
REPLACE WITH:
if ($post_id)
FIND:
$highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', phpbb_preg_quote($words[$i], '#'));
REPLACE WITH:
$highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', preg_quote($words[$i], '#'));
FIND:
$search_img = '<a href="'
IN-LINE FIND:
. $lang['Search_user_posts']
IN-LINE REPLACE WITH:
. sprintf($lang['Search_user_posts'], $postrow[$i]['username'])
FIND:
if ( $board_config['allow_bbcode'] )
{
if ( $user_sig != '' && $user_sig_bbcode_uid != '' )
{
REPLACE WITH:
if ($user_sig != '' && $user_sig_bbcode_uid != '')
{
FIND:
$user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig);
}
if ( $bbcode_uid != '' )
{
$message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
}
}
REPLACE WITH:
$user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig);
}
if ($bbcode_uid != '')
{
$message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace("/\:$bbcode_uid/si", '', $message);
}