I've been messing with it all weekend and still haven't found the cause of video's not showing in the the posts?
I think it has to be something in this bit but I just can't put my finger on it!
Code:
<div align="center">
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{$GLOBALS['threadfields']['ytvgalid']}&fs=1" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://www.youtube.com/v/{$GLOBALS['threadfields']['ytvgalid']}&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed></object>
</div>
|
Try using the original embed codes provided on post#5 or use the default MyBB embed code.
(02-14-2017 12:10 AM)RateU Wrote: [ -> ]Try using the original embed codes provided on post#5 or use the default MyBB embed code.
That's the first thing I tried was the original code from your example! There was no change when I tested it. Could the Youtube handling code changed from 1.6 to 1.8?
(02-14-2017 12:42 AM)RateU Wrote: [ -> ]Well, TBH, I don't know whether MyBB changed it or not. I don't have 1.8.9/10. If you want to use the default MyBB embed code, post a YouTube video in your general/test forum. Look at the source page and find the embed code. Copy the code, and replace the video ID with {$GLOBALS['threadfields']['ytvgalid']}.
EDIT: Or you can use this embed code:
https://developers.google.com/youtube/player_parameters
http://www.w3schools.com/html/html_youtube.asp
Thank you for the guidance, RateU...I think this is what I needed:
Code:
<iframe width="560" height="340" src="https://www.youtube.com/embed/{$GLOBALS['threadfields']['ytvgalid']}?feature=oembed" frameborder="0" allowfullscreen></iframe>
|
The whole <div> now looks like this:
Code:
<div align="center">
<object width="560" height="340"><param name="movie" value="https://www.youtube.com/embed/{$GLOBALS['threadfields']['ytvgalid']}?feature=oembed" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><iframe width="560" height="340" src="https://www.youtube.com/embed/{$GLOBALS['threadfields']['ytvgalid']}?feature=oembed" frameborder="0" allowfullscreen></iframe></object>
</div>
|