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: #1
XThreads Youtube Video Gallery Stopped Working
After update to 1.8.10, my Xthreads Youtube video galley stopped working.  Everything looks good but the video's don't show in the threads when viewing individual threads.  Any idea where to look to fix?

https://www.7173mustangs.com/forum-youtu...https://www.7173mustangs.com/forum-youtube-vid

[Image: gallery_2_628_39582.jpg]
(This post was last modified: 02-13-2017 06:17 AM by RocketFoot.)
02-13-2017 06:09 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #2
RE: XThreads Youtube Video Gallery Stopped Working
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']}&amp;fs=1" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://www.youtube.com/v/{$GLOBALS['threadfields']['ytvgalid']}&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed></object>
			</div>


[Image: gallery_2_628_39582.jpg]
02-13-2017 09:16 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #3
RE: XThreads Youtube Video Gallery Stopped Working
Try using the original embed codes provided on post#5 or use the default MyBB embed code.

02-14-2017 12:10 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #4
RE: XThreads Youtube Video Gallery Stopped Working
(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?

[Image: gallery_2_628_39582.jpg]
02-14-2017 12:31 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #5
RE: XThreads Youtube Video Gallery Stopped Working
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

(This post was last modified: 02-14-2017 12:47 AM by RateU.)
02-14-2017 12:42 AM
Find all posts by this user Quote this message in a reply
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 »

 Standard Tools
Forum Jump: