$template->assign_vars(array(
'PREVIEW_SUBJECT' => $preview_subject,
// Formatted Censor Text / 4seven / 2010
$preview_subject = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$preview_subject
);
// Formatted Censor Text / 4seven / 2010
// Formatted Censor Text / 4seven / 2010
$preview_message = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$preview_message
);
// Formatted Censor Text / 4seven / 2010
$post_data['post_text'] = $message_parser->message;
// Formatted Censor Text / 4seven / 2010
// Note: Don't change the replacement '$1'
$post_data['post_text'] = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'$1',
'$1',
'$1'
),
$post_data['post_text']
);
// Note: Don't change the replacement '$1'
// Formatted Censor Text / 4seven / 2010
// Start assigning vars for main posting page ...
$template->assign_vars(array(
// Formatted Censor Text / 4seven / 2010
// Note: Don't change the replacement '$1'
$post_data['post_subject'] = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'$1',
'$1',
'$1'
),
$post_data['post_subject']
);
// Note: Don't change the replacement '$1'
// Formatted Censor Text / 4seven / 2010
// Formatted Censor Text / 4seven / 2010
$post_data_topic_title = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
censor_text($post_data['topic_title'])
);
// Formatted Censor Text / 4seven / 2010
'TOPIC_TITLE' => censor_text($post_data['topic_title'])
// 'TOPIC_TITLE' => censor_text($post_data['topic_title'])
// Formatted Censor Text / 4seven / 2010
'TOPIC_TITLE' => $post_data_topic_title,
// Formatted Censor Text / 4seven / 2010
$row['post_text'] = censor_text($row['post_text']);
// Formatted Censor Text / 4seven / 2010
$row['post_text'] = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$row['post_text']
);
// Formatted Censor Text / 4seven / 2010
$topic_title = censor_text($row['topic_title']);
// Formatted Censor Text / 4seven / 2010
$topic_title = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$topic_title
);
// Formatted Censor Text / 4seven / 2010
$row['post_subject'] = censor_text($row['post_subject']);
// Formatted Censor Text / 4seven / 2010
$row['post_subject'] = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$row['post_subject']
);
// Formatted Censor Text / 4seven / 2010
// Send vars to template
$template->assign_block_vars('topicrow', array(
// Formatted Censor Text / 4seven / 2010
$row_topic_last_post_subject = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
censor_text($row['topic_last_post_subject'])
);
$row_topic_title = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
censor_text($row['topic_title'])
);
// Formatted Censor Text / 4seven / 2010
'LAST_POST_SUBJECT' => censor_text($row['topic_last_post_subject']),
// 'LAST_POST_SUBJECT' => censor_text($row['topic_last_post_subject']),
// Formatted Censor Text / 4seven / 2010
'LAST_POST_SUBJECT' => $row_topic_last_post_subject,
// Formatted Censor Text / 4seven / 2010
'TOPIC_TITLE' => censor_text($row['topic_title']),
// 'TOPIC_TITLE' => censor_text($row['topic_title']),
// Formatted Censor Text / 4seven / 2010
'TOPIC_TITLE' => $row_topic_title,
// Formatted Censor Text / 4seven / 2010
$topic_data['topic_title'] = censor_text($topic_data['topic_title']);
// Formatted Censor Text / 4seven / 2010
// Note: Don't change the replacement '$1'
$topic_data['topic_title'] = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'$1',
'$1',
'$1'
),
$topic_data['topic_title']
);
// Note: Don't change the replacement '$1'
// Formatted Censor Text / 4seven / 2010
$message = censor_text($row['post_text']);
// Formatted Censor Text / 4seven / 2010
$message = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$message
);
// Formatted Censor Text / 4seven / 2010
$row['post_subject'] = censor_text($row['post_subject']);
// Formatted Censor Text / 4seven / 2010
$row['post_subject'] = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$row['post_subject']
);
// Formatted Censor Text / 4seven / 2010
$template->assign_vars(array(
'S_QUICK_REPLY' => true,
// Formatted Censor Text / 4seven / 2010
// Note: Don't change the replacement '$1'
$quick_topic_data_topic_title = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'$1',
'$1',
'$1'
),
censor_text($topic_data['topic_title'])
);
// Note: Don't change the replacement '$1'
// Formatted Censor Text / 4seven / 2010
'SUBJECT' => 'Re: ' . censor_text($topic_data['topic_title'])
// 'SUBJECT' => 'Re: ' . censor_text($topic_data['topic_title'])
// Formatted Censor Text / 4seven / 2010
'SUBJECT' => 'Re: ' . $quick_topic_data_topic_title
// Formatted Censor Text / 4seven / 2010
$decoded_message = bbcode_nl2br($decoded_message);
// Formatted Censor Text / 4seven / 2010
// Note: Don't change the replacement '$1'
$decoded_message = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'$1',
'$1',
'$1'
),
$decoded_message
);
// Note: Don't change the replacement '$1'
// Formatted Censor Text / 4seven / 2010
$post_subject = censor_text($post_subject);
// Formatted Censor Text / 4seven / 2010
$post_subject = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$post_subject
);
// Formatted Censor Text / 4seven / 2010
$template->assign_block_vars($mode . '_row', array(
// Formatted Censor Text / 4seven / 2010
$message = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$message
);
// Formatted Censor Text / 4seven / 2010
$template->assign_vars(array(
'PREVIEW_SUBJECT' => $preview_subject,
// Formatted Censor Text / 4seven / 2010
$preview_subject = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$preview_subject
);
$preview_message = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$preview_message
);
// Formatted Censor Text / 4seven / 2010
// Start assigning vars for main posting page ...
$template->assign_vars(array(
// Formatted Censor Text / 4seven / 2010
$message_subject = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'$1',
'$1',
'$1'
),
$message_subject
);
$message_text = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'$1',
'$1',
'$1'
),
$message_text
);
// Formatted Censor Text / 4seven / 2010
// Send vars to template
$template->assign_block_vars('messagerow', array(
// Formatted Censor Text / 4seven / 2010
$row_message_subject = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
censor_text($row['message_subject'])
);
// Formatted Censor Text / 4seven / 2010
'SUBJECT' => censor_text($row['message_subject']),
// 'SUBJECT' => censor_text($row['message_subject']),
// Formatted Censor Text / 4seven / 2010
'SUBJECT' => $row_message_subject,
// Formatted Censor Text / 4seven / 2010
$template->assign_vars(array(
// Formatted Censor Text / 4seven / 2010
$message_row['message_subject'] = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$message_row['message_subject']
);
$message = preg_replace(
array(
'#\[b\](.*?)\[\/b\]#is',
'#\[i\](.*?)\[\/i\]#is',
'#\[u\](.*?)\[\/u\]#is'
),
array(
'<span style="font-weight: bold;">$1</span>',
'<span style="font-style: italic;">$1</span>',
'<span style="text-decoration: underline;">$1</span>'
),
$message
);
// Formatted Censor Text / 4seven / 2010
Users browsing this forum: No registered users and 0 guests