Posted by gaobin on March 4, 2008 at 4:11pm
Jump to:
| Project: | Bbcode |
| Version: | 5.x-2.1 |
| Component: | BBCode Tags |
| Category: | bug report |
| Priority: | normal |
| Assigned: | gaobin |
| Status: | closed (fixed) |
Issue Summary
I tried to link a Youtube video, http://www.youtube.com/watch?v=CoSL_qayMCc , on my website using [youtube]CoSL_qayMCc[/youtube] . However, it doesn't work. The flash doesn't show up. I think bbcode filter doesn't know to process Youtube ID containing underscore (_). It works fine with anything else without underscore.
Does anyone know how to fix it? Your help is highly appreciated!
Comments
#1
fixed!
I added underscore (_) to the code related to youtube video in bbcode-filter.inc.
'#\[youtube\]([0-9a-zA-Z_]+)\[/youtube\]#si' => '<object width="425" height="366"><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="366"></embed></object>',New code will work only if we clear page and css caches.
#2
Automatically closed -- issue fixed for two weeks with no activity.