Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyCode Issue MyBB
#1
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>
#2
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
#3
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
[Image: burninglove4.png]
#4
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
#5
In 1.6 they have added the youtube embedding into the software already.
[Image: burninglove4.png]
#6
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]
#7
Thanks everyone. I have sorted it. I was putting whole link in instead of ID. lol

/thread
#8
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
#9
OP specified issue was solved.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mybb Plugin Issue Rуan 1 978 07-14-2012, 06:25 PM
Last Post: 'Snorlax
  Edit - Solved but another issue Rуan 8 2,325 01-13-2012, 04:29 PM
Last Post: AceInfinity
  [RELESE] Moderator MyCODE tags Laughynose 7 1,362 07-31-2011, 07:13 AM
Last Post: Fragma
  [RELEASE] MyBB MyCode - Thread Closed Laughynose 11 2,019 06-15-2011, 11:36 AM
Last Post: Laughynose
  odd mybb issue Gpizzle 4 1,103 03-24-2011, 09:59 AM
Last Post: AceInfinity

Forum Jump:


Users browsing this thread: 5 Guest(s)