Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 XThreads Youtube Video Gallery Stopped Working
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #6
RE: XThreads Youtube Video Gallery Stopped Working
(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>


[Image: gallery_2_628_39582.jpg]
(This post was last modified: 02-14-2017 01:46 AM by RocketFoot.)
02-14-2017 01:20 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: XThreads Youtube Video Gallery Stopped Working - RocketFoot - 02-14-2017 01:20 AM

 Standard Tools
Forum Jump: