Support Forum

Youtube video insert/embed from TinyMCE not working

66 Answers

New Answer

MP Mr Papa
Mr Papa
Member

those look fine…  gonna have to think on this…. as I said, we have not had issues with oembeds…  and they are heavily used…

and Andy will be by in the AM and he may have some more ideas…

in the mean time, you can still embed youtube videos… you just cant use iframes…  on the  youtube site, click on the share button, and then embed… copy that code and paste it into a post using the tinymce html button…  it will look something like

<object width="420" height="315"><param name="movie" value="http://www.youtube-nocookie.com/v/ZCdZtsiOWvo?version=3&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/ZCdZtsiOWvo?version=3&hl=en_US&rel=0" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>

when you paste it into the tinymce html popup

LM Lori Matsumoto
Lori Matsumoto
Member

Thanks for taking the time to work with me on this, I hope Andy has some ideas.  Just FYI, I went to youtube and clicked the Share button and it gave me iframe code so I checked the “Use old embed code” which gave me object code, then I copied that and in the HTML source popup of a new post I pasted that in and it did not work.  I went back into wp-admin/Forums/Options/content settings and unchecked Shortcodes Filtering and reposted the object embed code and it still doesn’t show a video in the post.  So that might help in sorting it out?

MP Mr Papa
Mr Papa
Member

lol… can you create me a temp account over there?  so I can try and see what happens…  look at the headers and http responses…

please pm me and yellow swordfish (andy) the account details if thats okay…

LM Lori Matsumoto
Lori Matsumoto
Member

unregistered guests can post to the forum and anyone can register: http://markwaid.com/mwforum/

please post any tests in this thread: http://markwaid.com/mwforum/forum-bugsproblemsissues/this-is-a-test/

thanks!

MP Mr Papa
Mr Papa
Member

whoa… now getting dozens of errors on your site…

Unknown RPC service: undefined

all coming from a google plus one js…  do you know who is loading that (jetpack sharing??)?  can you disable?

MP Mr Papa
Mr Papa
Member

and the share stuff in each forum post??  not good… seems to be interfering too…  quite odd…

LM Lori Matsumoto
Lori Matsumoto
Member

I disabled the Jetpack plugin.  Then I posted another http youtube URL and it still doesn’t display in the post.

LM Lori Matsumoto
Lori Matsumoto
Member

I don’t know where to remove the Share stuff from each post, do you?

LM Lori Matsumoto
Lori Matsumoto
Member

I don’t see the Share stuff on the posts anymore, do you?  Not sure how it is gone, maybe by not filtering out the WP shortcodes from forum/content settings?  that was the last thing i changed.

MP Mr Papa
Mr Papa
Member

well the errors are gone now… so not likely related… and oddly, I can see in the header traffic that wp is communicating with youtube for embedding the video… and the response is good…

but something is keeping it from showing up…

still wondering about the wp theme…  but mainly cause of some unknown js and the usage of its own jquery and jquery ui vs the ones that come with wp… 

LM Lori Matsumoto
Lori Matsumoto
Member

The theme is Hybred by ThemeFit.  It is the same theme that allows us to embed video in blog posts successfully just by pasting in a http youtube URL.  Do you know if I switch to the wordpress default theme and then switch back, if all the settings and options and widgets for my Hybred theme will be intact?  I can’t risk switching if it’s going to break anything in the current theme. 

MP Mr Papa
Mr Papa
Member

No, the wp theme has nothing to do with oembeds (putting a url and having it embeded automatically) – or at least shouldnt… its all wp with no theme interaction needed…  if its trying to do something, it might very well be breaking the default, built in wp functionality for embeds…

I wish I could promise you wouldnt have to configure the theme if you switch, but I have no idea how its coded…  in theory switching between themes is painless but some have proven to not like that due to the way they were coded…

how many theme options did you have to configure when you set it up?

LM Lori Matsumoto
Lori Matsumoto
Member

Unfortunately I did not set it up myself.  Two other people have worked on this before me.  It seems like the Hybred theme allows the default build in wp functionality for embeds with the blog posts, so it must be something interfering with the forum posts, or the forum settings?

MP Mr Papa
Mr Papa
Member

understand…  but want to be clear…   pasting a video url into a wp blog post and having it show up as an embedded video is built into wp core… the theme does not need to do anything…  so yeah, if its introducing itself into that process, it might be mucking up the works…

wonder why its getting involved? maybe it was from before wp supported embeds? but that has been quite some time…

so if it is mucking with it… then there might be a couple more options we can try when 5.1 releases…  and that will be Thursday, so not too far off – day and a half…