
02-21-2017, 01:10 PM
|
|
|
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by MarkFL
You want:
PHP Code:
$content = preg_replace('/\[URL\](http.*?\.(png|jpg|gif))\[\/URL\]/i', '[IMG]$1[/IMG]', $post['pagetext']);
if ($content != $post['pagetext'])
{
global $vbulletin;
$pagetext = $content;
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());
$post['pagetext_html'] = $bbcode_parser->parse($pagetext, $post['forumid'], 1);
$post['pagetext_html'] = html_entity_decode($post['pagetext_html']);
}
|
Thanks again .. :up:
Regards,
Doug
|