mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 09:16:55 +02:00
- birthdays/age in user's timezone and not server's local time
- parse bbcode in posts with fewer characters than selected maximum on search results page - retrieve search word context in posts which are longer than maximum characters (no raw BBCode anymore) - formatted text is processed in the same order everywhere now: censor_text, replace newlines, bbcode, smileys, attachments, highlighting [including Bug #2048] - highlighting pattern updated to exclude style and script (e.g custom BBCode) [Bug #3856] - fixed a style problem in Opera [Bug #3770] - performance increase for user::img() - slight adjustments to search git-svn-id: file:///svn/phpbb/trunk@6321 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -95,6 +95,7 @@ function mcp_post_details($id, $mode, $action)
|
||||
|
||||
// Process message, leave it uncensored
|
||||
$message = $post_info['post_text'];
|
||||
$message = str_replace("\n", '<br />', $message);
|
||||
if ($post_info['bbcode_bitfield'])
|
||||
{
|
||||
include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx);
|
||||
@@ -102,7 +103,6 @@ function mcp_post_details($id, $mode, $action)
|
||||
$bbcode->bbcode_second_pass($message, $post_info['bbcode_uid'], $post_info['bbcode_bitfield']);
|
||||
}
|
||||
$message = smiley_text($message);
|
||||
$message = str_replace("\n", '<br />', $message);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'U_MCP_ACTION' => "$url&i=main&quickmod=1", // Use this for mode paramaters
|
||||
|
@@ -109,6 +109,7 @@ class mcp_queue
|
||||
|
||||
// Process message, leave it uncensored
|
||||
$message = $post_info['post_text'];
|
||||
$message = str_replace("\n", '<br />', $message);
|
||||
if ($post_info['bbcode_bitfield'])
|
||||
{
|
||||
include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx);
|
||||
|
@@ -117,6 +117,7 @@ class mcp_reports
|
||||
|
||||
// Process message, leave it uncensored
|
||||
$message = $post_info['post_text'];
|
||||
$message = str_replace("\n", '<br />', $message);
|
||||
if ($post_info['bbcode_bitfield'])
|
||||
{
|
||||
include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx);
|
||||
|
@@ -110,6 +110,7 @@ function mcp_topic_view($id, $mode, $action)
|
||||
|
||||
$message = $row['post_text'];
|
||||
$post_subject = ($row['post_subject'] != '') ? $row['post_subject'] : $topic_info['topic_title'];
|
||||
$message = str_replace("\n", '<br />', $message);
|
||||
|
||||
if ($row['bbcode_bitfield'])
|
||||
{
|
||||
@@ -117,7 +118,6 @@ function mcp_topic_view($id, $mode, $action)
|
||||
}
|
||||
|
||||
$message = smiley_text($message);
|
||||
$message = str_replace("\n", '<br />', $message);
|
||||
|
||||
if (!$row['post_approved'])
|
||||
{
|
||||
|
@@ -247,6 +247,7 @@ function mcp_warn_post_view($id, $mode, $action)
|
||||
// We want to make the message available here as a reminder
|
||||
// Parse the message and subject
|
||||
$message = $userrow['post_text'];
|
||||
$message = str_replace("\n", '<br />', censor_text($message));
|
||||
|
||||
// Second parse bbcode here
|
||||
if ($userrow['bbcode_bitfield'])
|
||||
@@ -260,9 +261,6 @@ function mcp_warn_post_view($id, $mode, $action)
|
||||
// Always process smilies after parsing bbcodes
|
||||
$message = smiley_text($message);
|
||||
|
||||
// Replace naughty words such as farty pants
|
||||
$message = str_replace("\n", '<br />', censor_text($message));
|
||||
|
||||
// Generate the appropriate user information for the user we are looking at
|
||||
$rank_title = $rank_img = '';
|
||||
// get_user_rank($userrow['user_rank'], $userrow['user_posts'], $rank_title, $rank_img);
|
||||
|
Reference in New Issue
Block a user