Hi nhawk - Thanks for the tip. I looked at the code but couldn't see any way to make the object html show as html rather than text on the page.
I'd figured out how to find my custom bb tag but the latest problem I have is that assigning the new text to $parsedtext means I lose all the formatting and the normal bbtags are just written to the page. If I assign it to $text then the object html shows as text on the page rather than showing the player as it should do.
Any suggestions?
Thanks
Lux
SOLUTION
This is a bit of a hack but it works. I went ahead and used the $parsetext and then parsed it myself using pregreplace for the bbcode.
Code:
$search = array(
'@\[(?i)b\](.*?)\[/(?i)b\]@si',
'@\[(?i)i\](.*?)\[/(?i)i\]@si',
'@\[(?i)u\](.*?)\[/(?i)u\]@si',
'@\[(?i)img\](.*?)\[/(?i)img\]@si',
'@\[(?i)url=(.*?)\](.*?)\[/(?i)url\]@si',
'@\[(?i)code\](.*?)\[/(?i)code\]@si'
);
$replace = array(
'<b>\\1</b>',
'<i>\\1</i>',
'<u>\\1</u>',
'<img src="\\1">',
'<a href="\\1">\\2</a>',
'<code>\\1</code>'
);
$parsedtext = nl2br(preg_replace($search, $replace, $parsedtext));
Hope that saves somebody else some time. If anybody has a 'cleaner' solution please let me know.
Thanks
Lux