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

gaobin’s picture

Assigned: Unassigned » gaobin
Status: Active » Fixed

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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.