Update
Ok, i re-built the test system and applied the mod using automod.
personally, I can't see the any of the two embedded videos using bbvideo and youtube tags yet our members can.. So something with my setup? I'm behind a German server but that shouldn't make any difference because i can see the videos on youtube and on our live forum. Might have something to do with the flash?
Here's the test?
http://mlgtestforum.midlifegamers.co.uk ... =10&t=1303The only other problem is I need to change the youtube syntax so that the members only have to enter the YouTube ID rather than the full URL address in order to support legacy posts. Any idea How i can do this..?
Thanks
edit
my guess it has something to with this code
Code: Select all
'youtube.com' => array(
'id' => 43,
'image' => 'youtube.gif',
'example' => 'http://www.youtube.com/watch?v=sP4NMoJcFd4',
'match' => '#https?://(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube\.com\S*[^\w\-\s])([\w\-]{11})(?=[^\w\-]|$)([^[]*)?#i', // matches every youtube URL
// 'replace' => '<iframe width="{WIDTH}" height="{HEIGHT}" src="http://www.youtube.com/embed/$1" frameborder="0" allowfullscreen></iframe>',
'replace' => 'http://www.youtube.com/v/$1?version=3&hl=en_US',
'method' => 'flash',
),
'youtu.be' => array(
This is what we have in our bbcode for html setup.
Code: Select all
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{IDENTIFIER}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
the example of that would be
[youtube]{IDENTIFIER}[/youtube]