YouTube in Floatbox

Page: 1

Author Post
Member
Registered: Jun 2012
Posts: 5
I have two different sites that are using identical code to display youtube videos in floatbox. The code is like this:

<a href="<?php echo $record['youtube_url'] ?>" class="floatbox" data-fb-options="colorTheme:'black' width:1280 height:720 titleAsCaption: false header:#HeaderDiv footer:#FooterDiv doSlideshow:false caption:`<?php echo $record['title'] ?>`">View Video</a>

$record['youtube_url'] evaluates to the YouTube-supplied url of the video (e.g. http://youtu.be/v2Oj95qqpgs). Whether the server side code is left as above, or the video url is placed directly in the code, one site shows the video and the other just draws the floatbox with a white screen inside and a spinning activity monitor. The status bar says "connecting to youtube", but no video ever appears.

There must be a difference in my FloatBox installs that could explain this, no? (They were downloaded and installed several moths apart).

Thanks!
Administrator
Registered: Aug 2008
Posts: 3382
Hi,

Please link me into the page that is giving you grief and I'll take look and see what's up.
Member
Registered: Jun 2012
Posts: 5
Hi:

The problem page is at:

http://www.doctorgodfrey.com/videos.php
Administrator
Registered: Aug 2008
Posts: 3382
Thanks. I think your suspicion about using an older version of floatbox is correct.

That page is using version 4.27, which I don't believe recognizes the youtu.be href formats and for sure does not default to youtube iframe embeds as does version 5.

You could change the href format to a standard youtube link such as http://www.youtube.com/watch?v=v2Oj95qqpgs and see if the results meet your needs. A better result will be had by upgrading to the latest Floatbox version which will recognize your existing href and bring the added benefit of having the video playable on non-flash devices.

Page: 1