Topic: Adding Flash to BBCode
ok, I was trying to add Flash to BBCode, it works but I don't know how to use the default size, I was thinking [flash=width="523" heigh="234"] (or something like that) would be better, but I woulnd't know how to do that.
Here's what I have so far (in parser.php):
if ($pun_config['p_message_bbcode'] == '1' && strpos($message, '[') !== false && strpos($message, ']') !== false)
{
$message = do_bbcode($message);
if ($pun_config['p_message_img_tag'] == '1')
{
if ($cur_user['show_img'] != '0')
$message = preg_replace('#\[flash\]((ht|f)tp://)([^\r\n\t<"]*?)\[/flash\]#si', '<param name="movie" value="$1$3">
<param name="quality" value="high">
<embed src="$1$3" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">', $message);
else
{
if ($cur_user['link_to_new_win'] == '0')
$message = preg_replace('#\[flash\]((ht|f)tp://)([^\r\n\t<"]*?)\[/flash\]#si', '<a href="$1$3"><'.$lang_common['Image link'].'></a>', $message);
else
$message = preg_replace('#\[flash\]((ht|f)tp://)([^\r\n\t<"]*?)\[/flash\]#si', '<a href="$1$3" target="_blank"><'.$lang_common['Image link'].'></a>', $message);
}
}
}
Anyone knows what I would need to change?