Hi all,
I'm fairly new to Punbb and so far have only tried out Punbb 1.2.21, I'm not eager to upgrade it to 1.3.x as I've integrated the forum into my wordpress site and its already been built up.
I'm however trying out the youtube tag but that somehow doesn't seem to work.
Here's my parser.php
$pattern = array('#\[b\](.*?)\[/b\]#s',
'#\[i\](.*?)\[/i\]#s',
'#\[u\](.*?)\[/u\]#s',
'#\[url\]([^\[<]*?)\[/url\]#e',
'#\[url=([^\[<]*?)\](.*?)\[/url\]#e',
'#\[email\]([^\[<]*?)\[/email\]#',
'#\[email=([^\[<]*?)\](.*?)\[/email\]#',
'#\[item=([^\[]*?)\]#',
'#\[youtube\]http://www.youtube.com/watch\?v=(.*?)\[/youtube\]#s',
'#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s');
$replace = array('<strong>$1</strong>',
'<em>$1</em>',
'<span class="bbu">$1</span>',
'handle_url_tag(\'$1\')',
'handle_url_tag(\'$1\', \'$2\')',
'<a href="mailto:$1">$1</a>',
'<a href="mailto:$1">$2</a>',
'<a href="http://www.wowhead.com/?item=$1">$1</a>',
'<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$1"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="425" height="350"></embed></object>',
'<span style="color: $1">$2</span>');
Is there something wrong I'm doing here?