|
Administrator
|
Posts: 1004
Join Date: Mar 2005
|
Ok. Try this. In /code/functions.php, check the function format_bbcodes(). It uses regular expressions. We need to place the img tags not at the beginning, but at the end of the array. That part of the code will become:
$search = array(
'#\[email\](.*?)\[/email\]#i',
'#\[email=(.*?)\](.*?)\[/email\]#i',
'#\[url=(http|https|ftp)://(.+?)\](.+?)\[/url\]#ie',
'#\[url\](http|https|ftp)://(.+?)\[/url\]#ie',
'#\[code\]#i',
'#\[/code\]#i',
'#\[quote\]#i',
'#\[quote=(.*?)\]#i',
'#\[/quote\]#i',
'#\[img\](http|https|ftp)://(.*?)\[/img\]#i'
);
$replace = array(
'<a href="mailto:\\1">\\1</a>',
'<a href="mailto:\\1">\\2</a>',
'trunc_url(\'\\1://\\2\',\'\\3\')',
'trunc_url(\'\\1://\\2\',\'\\1://\\2\')',
'<div class="code"><b>'.$lang['code'].': </b><br><br>',
'</div>',
'<div class="quote"><b>'.$lang['quote'].': </b><br>',
'<div class="quote"><b>'.$lang['quoting'].' \\1</b><br>',
'</div>',
'<img src="\\1://\\2" alt="\\1://\\2">'
); __________________Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com
|