Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Colorbox Video Popups D6 is a features module which creates colorbox popups to display YouTube and Vimeo videos.

I've tried to include all the dependencies and variables including site_frontpage. Instructions for this module are as follows:

1. On a newly installed sandbox of your own, enable this project.
2. Add two terms, 'Vimeo' and 'YouTube', to the taxonomy 'Video' (more on this below).
3. Create two contents of type 'video'. One node can be for a YouTube video and one node can be for a Vimeo video, for instance. Don't forget the taxonomy and the custom thumbnail. I've included sample thumbnails in the /sharks folder which work well with the included css.
4. Go to your frontpage where you will see the Vimeo page and YouTube block side by side. Click on either to view the video in a colorbox popup!

The hover shadow for Firefox, Chrome, and Safari users is the result of some CSS3 goodness.

Notes:

Module patches:
To remove an unpleasant looking border around the video popup, emfield, media_youtube, and media_vimeo need to be patched. I've included the patches with the module, or you can download them from http://drupal.org/node/1050792#comment-5582736.

Taxonomy:
Add two terms to the taxonomy 'Video' before creating the content. The terms are: 'Vimeo' and 'YouTube'.

I'm not sure why terms can't be included with Features modules. More research is needed. Attach the terms respectively as you create your nodes so the View will work.

Context and Blocks:
You will initially see the Navigation block and the Powered by Drupal (or Pressflow) block printing twice on the page. Since I am using the context module, you can go into /admin/build/blocks and move all Enabled blocks to Disabled to make this right. Perhaps the Drupal 7 version of Features includes the option to manipulate /admin/build/blocks blocks. Or perhaps I need to do more research.

You may also have to clear cache one time to see the Context menu entry in the Site Building menu (see http://drupal.org/node/914698 for more on this issue).

Project information

  • Created by esod on , updated