• This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.
  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Support Fixed Don't get add-on to display videos

Freelancer

Member
Joined
Nov 17, 2015
Messages
204
As the title says. No matter which Video I post, there is none displayed, just the empty Sidebar Container like this:

EmptySidebar.jpg

The video IDs I tried are okay.
YTID.jpg

Code looks like this:
YTCode.jpg
 

Fredxd

Administrator
Staff member
Joined
Nov 14, 2015
Messages
1,875
On my profile you see correctly video ?
If yes, send me admin access by PM, I will look this today
 

Freelancer

Member
Joined
Nov 17, 2015
Messages
204
I am sorry but it is a totally private board. I can't give you the access. We must find another solution. If you tell me where to look, I can do it for you. I am skilled enough to check code.
 

Fredxd

Administrator
Staff member
Joined
Nov 14, 2015
Messages
1,875
it's hard to help you without access.
My code just display iframe from youtube

in xfa_yps_member_view template
try to replace

Code:
<iframe 
                src="http://www.youtube.com/embed/{$user.xfa_yps}?rel=0&amp;autoplay={xen:if '{$xenOptions.xfa_yps_video_autoplay}', '1', '0'}&amp;autohide={xen:if '{$xenOptions.xfa_yps_video_mode} == "with"', '2', '0'}"
                frameborder="0" 
                width="100%" 
                height="{$xenOptions.xfa_yps_video_height}"
            ></iframe>
by

Code:
<iframe 
                src="http://www.youtube.com/embed/UPftsIwGNoQ?rel=0&amp;autoplay=1&amp;autohide=2"
                frameborder="0" 
                width="100%" 
                height="170"
            ></iframe>
If with this it's don't work i can't do nothing, you will need to check why you can't display youtube iframe on your site
 

Freelancer

Member
Joined
Nov 17, 2015
Messages
204
I did the above but still don't get it to run... :( I deactivated ALL add-ons except this one and still it does not work even in the default style.
 

Fredxd

Administrator
Staff member
Joined
Nov 14, 2015
Messages
1,875
Try this

Code:
<iframe id="player" type="text/html" width="640" height="390"
  src="http://www.youtube.com/embed/M7lc1UVf-VE?enablejsapi=1&origin=http://example.com"
  frameborder="0"></iframe>
Is not my code is code from https://developers.google.com/youtube/iframe_api_reference?hl=en

So if it doesn't work, you will need search why you can read youtube iframe on your site/browser (you can maybe try with another browser)
 

Freelancer

Member
Joined
Nov 17, 2015
Messages
204
Code does not work... And it is not working in Safari and not in Firefox (the two I was able to test).
 

Fredxd

Administrator
Staff member
Joined
Nov 14, 2015
Messages
1,875
To try it you can create empty html page on your computer and paste this code inside and open it with your browser