Not Solved YouTube code not working
#1
Not Solved
I downloaded the YouTube mod (the one by labrocca), but it's not working for me. I've tried both [youtube][/youtube] and [yt][/yt], but the same thing keeps happening. It displays where the video would normally be, and I can even right click on it and it gives me the Flash options, but no video. Occurs in Firefox, IE and Opera.
Can anyone help me out?
Reply
#2
Not Solved
What url from youtube are you using? Remember to copy the video url from the url box and not from the browser.
Kind Regards.
Reply
#3
Not Solved
That wasn't the problem, it seems. It's still doing the same thing. Sad
Reply
#4
Not Solved
Give me a link to your forum.
Reply
#5
Not Solved
http://forum.moegopher.com/showthread.php?tid=9
The thread I was previously testing was on a hidden board, so I made a new one just now.
Reply
#6
Not Solved
No, I think you just need the ID of the film, not the entire URL. The bit that's after that equal sign.

Please do not PM me about problems you might be having with MyBB. Post a thread, and someone on the support or development team will take a look at it.
Reply
#7
Not Solved
I viewed the page source and this is what it's showing me:

http://www.youtube.com/v/http://youtube....TnjsNTTz2Q

Do what LegosJedi said, that will work.

[The lebrocca mod I had must of been an old one because it accepted the entire url]
Reply
#8
Not Solved
Your using it wrong. It works perfectly fine.

Can you please post the url you are entering inside the tags?

It does look like this in the source:

http://www.youtube.com/v/http://youtube....TnjsNTTz2Q

but it SHOULD be this:

http://youtube.com/watch?v=vTnjsNTTz2Q

Have you altered the plugin?
Reply
#9
Not Solved
Well, I tried what LegosJedi said. It worked.
I don't know otherwise. When I edit the post, I see [youtube]http://youtube.com/watch?v=vTnjsNTTz2Q[/youtube]. I'm not sure why it would look like that in the source.
I haven't altered the plugin at all. Very weird. :|
Reply
#10
Not Solved
I don't mean to discourage plugin authors, but just want to comment that this can also be done via MyBB's Custom MyCodes.

If you want to use MyBB's Custom MyCodes (AdminCP -> Message Filters -> Custom MyCode) for something like this, the following will cater for both YouTube URLs and YouTube IDs. To do so, you can add the follow two custom codes:
Quote:MyCode title: YouTube URL
Regular expression:
\[youtube\]http\://(www\.)?youtube\.com/watch\?v=([a-zA-Z0-9]+?)(&.*?)?\[/youtube\]
Replacement:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$2"></param><embed src="http://www.youtube.com/v/$2" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
Quote:MyCode title: YouTube ID
Regular expression:
\[youtube\]([a-zA-Z0-9]+?)\[/youtube\]
Replacement:
<object width="425" height="350"><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="350"></embed></object>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)