Support Forums

Full Version: MyCode Issue MyBB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
OK, I am trying to enable youtbe embedding into my forum. I have the following code but it just makes a white box. Can somebody please help?

Expression

Code:
\[yt\](.*?)\[/yt\]

Replacement

Code:
<object width="470" height="378"><param name="movie" value="http://www.youtube.com/v/$1&hl=de&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/$1&hl=de&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="470" height="378"></embed></object>
There, by default, already is youtube enabling, unless you are on 1.4 then you will have to use a mycode.

Use the following
http://mybbsource.com/mycodes.php?act=view&mid=18
Next time use some new lines when printing your code. Tongue

This may help not sure.

Replacement:
PHP Code:

Code:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/$1&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/$1&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

There are youtube plug-ins you can use instead. Smile
I'm 1.6 mate. But I cant seem to find where to enable it. All the plugins seem to be paid and I have no money for a while.

The code in the link never worked either. Sad
In 1.6 they have added the youtube embedding into the software already.
You can use it when posting, go to the side of it, and you should see a video symbol, click it, scroll down menu, click youtube video. or you use can [video=youtube]videolink[/video]
Thanks everyone. I have sorted it. I was putting whole link in instead of ID. lol

/thread
I believe you can put in the whole link, works for me anyways, but i'm glad you got it resolved. Try putting the whole url in with http://www. in it
OP specified issue was solved.