viewtopic.php
  • 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:

     NOTE --- This is a partial match, the whole line on a fresh installation looks like this:
    	$join_sql_table = ( empty($post_id) ) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 ";
    $join_sql_table = ( empty($post_id) )
    
  • IN-LINE FIND:

    ( empty($post_id) )
    
  • IN-LINE REPLACE WITH:

    (!$post_id)
    
  • FIND:

     NOTE --- This is a partial match, the whole line on a fresh installation looks like this:
    	$join_sql = ( empty($post_id) ) ? "t.topic_id = $topic_id" : "p.post_id = $post_id AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= $post_id";
    $join_sql = ( empty($post_id) )
    
  • IN-LINE FIND:

    ( empty($post_id) )
    
  • IN-LINE REPLACE WITH:

    (!$post_id)
    
  • FIND:

     NOTE --- This is a partial match, the whole line on a fresh installation looks like this:
    	$count_sql = ( empty($post_id) ) ? '' : ", COUNT(p2.post_id) AS prev_posts";
    $count_sql = ( empty($post_id) )
    
  • IN-LINE FIND:

    ( empty($post_id) )
    
  • IN-LINE REPLACE WITH:

    (!$post_id)
    
  • FIND:

     NOTE --- This is a partial match, the whole line on a fresh installation looks like this:
    	$order_sql = ( empty($post_id) ) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC";
    $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:

     NOTE --- This is a partial match, the whole line on a fresh installation looks like this:
    	$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" border="0" /></a>';
    $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);
    	}