The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Tip for Vimeo RSS Feeds with Fancybox

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #35486

    Hey guys,
    I was working with Fancybox (which just got upgraded to 2.0!) and decided to tackle Vimeo integration. Heres my solution.
    (note, i am using wordpress functionality and timthumb to display the image, just a heads up in case you copy/paste the code)
    PHP code

      $feed = "[YOUR_USERNAME]/videos.xml";
      $videos = simplexml_load_file($feed);
      $i = 0;
      foreach($videos->video as $video){
      if ($i > 0 && $i < 11){
      $vurl = $video->id;
      $vsmall = $video->thumbnail_medium;
    • " class="various">

    • $i++;
      } ?>

    Javascript (with fancybox already loaded).

    maxWidth : 790,
    maxHeight : 455,
    fitToView : false,
    closeClick : false,
    openEffect : 'none',
    closeEffect : 'none'

    I used no open or close effects because I tended to see a weird white flash when the video was loading if i used open and close effects. Also, you want to set the closeClick to false so you dont have people trying to pause the video and accidentally closing it. I also didnt put the videos into a group as the left arrow blocks the play button

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.