Brock |
|
---|---|
To fix...
Change: if($cfg['parser_vid'])
{
sed_bbcode_add('youtube', 'pcre', '\[youtube=([^\s"\';&\?\(\[]+)\]', '<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>', true, 128, 'seditio');
sed_bbcode_add('googlevideo', 'pcre', '\[googlevideo=([^\s"\';&\?\(\[]+)\]', '<embed style="width:425px; height:326px;" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=$1&hl=en-GB"> </embed>', true, 128, 'seditio');
sed_bbcode_add('metacafe', 'pcre', '\[metacafe=([^\s"\';&\?\(\[]+)\]', '<embed style="width:425px; height:345px;" src="http://www.metacafe.com/fplayer/$1" width="400" height="345" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>', true, 128, 'seditio');
sed_bbcode_add('flash', 'pcre', '\[flash\]([^\s"\';&\?\(\[]+\.swf)\[/flash\]', '<embed src="$1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>', true, 128, 'seditio');
sed_bbcode_add('flash', 'pcre', '\[flash w=(\d+) h=(\d+)\]([^\s"\';&\?\(\[]+\.swf)\[/flash\]', '<embed src="$3" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="$1" height="$2"></embed>', true, 128, 'seditio');
sed_bbcode_add('divx', 'pcre', '\[divx\]([^\s"\';&\?\(\[]+\.divx)\[/divx\]', '<embed type="video/divx" src="$1" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" object width="450" height="400"></embed>', true, 128, 'seditio');
sed_bbcode_add('divx', 'pcre', '\[divx w=(\d+) h=(\d+)\]([^\s"\';&\?\(\[]+\.divx)\[/divx\]', '<embed type="video/divx" src="$3" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" object width="$1" height="$2"></embed>', true, 128, 'seditio');
} To:
sed_bbcode_add('youtube', 'pcre', '\[youtube=([^\s"\';&\?\(\[]+)\]', '<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>', true, 128, 'seditio');
sed_bbcode_add('googlevideo', 'pcre', '\[googlevideo=([^\s"\';&\?\(\[]+)\]', '<embed style="width:425px; height:326px;" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=$1&hl=en-GB"> </embed>', true, 128, 'seditio');
sed_bbcode_add('metacafe', 'pcre', '\[metacafe=([^\s"\';&\?\(\[]+)\]', '<embed style="width:425px; height:345px;" src="http://www.metacafe.com/fplayer/$1" width="400" height="345" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>', true, 128, 'seditio');
sed_bbcode_add('flash', 'pcre', '\[flash\]([^\s"\';&\?\(\[]+\.swf)\[/flash\]', '<embed src="$1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>', true, 128, 'seditio');
sed_bbcode_add('flash', 'pcre', '\[flash w=(\d+) h=(\d+)\]([^\s"\';&\?\(\[]+\.swf)\[/flash\]', '<embed src="$3" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="$1" height="$2"></embed>', true, 128, 'seditio');
sed_bbcode_add('divx', 'pcre', '\[divx\]([^\s"\';&\?\(\[]+\.divx)\[/divx\]', '<embed type="video/divx" src="$1" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" object width="450" height="400"></embed>', true, 128, 'seditio');
sed_bbcode_add('divx', 'pcre', '\[divx w=(\d+) h=(\d+)\]([^\s"\';&\?\(\[]+\.divx)\[/divx\]', '<embed type="video/divx" src="$3" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" object width="$1" height="$2"></embed>', true, 128, 'seditio'); Just removed the if statement around it, and it seems it works fine, now. Edit: I found a problem. You have to go back into your bbcode list, and uncheck the "container" around Google, Youtube, and Metacafe.[/][/][/][/][/][/][/][/][/][/][/][/][/][/] Web Design Database - www.wddb.com
|
|
Отредактировано: Brock (02.03.2009 05:40, 16 лет назад) |