Well
In datahandlers/post.php, I translated the foloowing
// If this is the first post there needs to be a subject, else make it the default one.
if(my_strlen(trim_blank_chrs($subject)) == 0 && $first_post)
{
$this->set_error("firstpost_no_subject");
return false;
}
elseif(my_strlen($subject) == 0)
{
$thread = get_thread($post['tid']);
$subject = "RE: ".$thread['subject'];
}
}
// This is a new post
else if($this->action == "post")
{
if(my_strlen(trim_blank_chrs($subject)) == 0)
{
$thread = get_thread($post['tid']);
$subject = "RE: ".$thread['subject'];
}
}
In the newreply.php, I translated the following:
$postbit = build_postbit($post, 1);
eval("\$preview = \"".$templates->get("previewpost")."\";");
}
}
$subject = htmlspecialchars_uni($subject);
if(!$pid && !$mybb->input['previewpost'])
{
$subject = "RE: " . $thread['subject'];
}
// Setup a unique posthash for attachment management
and
// Only show messages for the current thread
if($quoted_post['tid'] == $tid || $load_all == 1)
{
// If this post was the post for which a quote button was clicked, set the subject
if($pid == $quoted_post['pid'])
{
$subject = preg_replace('#RE:\s?#i', '', $quoted_post['subject']);
$subject = "RE: ".$subject;
}
$message .= parse_quoted_message($quoted_post);
$quoted_ids[] = $quoted_post['pid'];
}