Php2pdf

25
What was the first music video on MT Eric Michalsen Western Suburb Drupal Meetup May 21, 2009 (openly stealing content from www.TravisTidwell.com)

description

Simple PHP to PDF given at the West Suburban PHP Meetup

Transcript of Php2pdf

Page 1: Php2pdf

What was the first music video on MTV?

Eric Michalsen

Western Suburb Drupal MeetupMay 21, 2009

(openly stealing content from www.TravisTidwell.com)

Page 2: Php2pdf

Video Killed the Radio Star

Page 3: Php2pdf

Everybody Loves Video

Drives InterestDrives TrafficDrives InteractionDrives Responses

It Keep The Eyes On The Page

High Bounce Rates = BAD

Video can help kill your BR ratios

Page 4: Php2pdf

YouTubemetacafeYahooSquidootubemogal

Distribution Goodness

just <embed> into your site and your done....right?

Page 5: Php2pdf

Maybe....maybe not

Page 6: Php2pdf

What if you want to host your own videos in your own contentbecause you want to control all aspects of your content?

Upload VideoCreate Content for the video, such as description and tagsConvert Video to Flash for cross-browser/OS/system happiness

Page 7: Php2pdf

Let's do this in DRUPAL!!!

Page 8: Php2pdf

Drupal Problem....

“...current Video module is was not designed for a User-generated video website.It was only created to allow a web developerthe ability to easily upload a video, and display that video.”

Page 9: Php2pdf

Resource #1 ?

http://www.travistidwell.com/flashvideo

Check out his Drupal Dash Media Player on the site!

Page 10: Php2pdf

Step 1: Get FFMPEGStep 2: Set up your php.ini file for the FlashVideoStep 3: Get the FlashVideo ModuleStep 4: Download a Media PlayerStep 5: Set up a Cron TaskStep 6: Create a Content Template.Step 7: Create your Page!

Page 11: Php2pdf

Step 1:FFMPEG is a program that will convert any video format to the very common and ever-so-cool Flash format

Truth is, if you have to install it...call a geek.It will go a lot faster than going through this presentation. Pay him in beer and you'll be fine.

Page 12: Php2pdf

Step 2: Set up your php.ini

* Recommended Settings for php.ini: o post_max_size=100M o upload_max_filesize=100M o max_execution_time=1000 o max_input_time=1000 OR * Recommended Settings for .htaccess file: o php_value post_max_size 100M o php_value upload_max_filesize 100M o php_value max_execution_time 1000 o php_value max_input_time 1000

Page 13: Php2pdf

Step 3: Get the FlashVideo Module

http://drupal.org/project/flashvideo

Page 14: Php2pdf

Step 4:Download a Media Player

http://www.longtailvideo.com/players/jw-flv-player/

I have had success with:

Page 15: Php2pdf

Step 5: Set up a Cron Task

Once again, find a geek and pay in beer

Page 16: Php2pdf

Step 6: Create a Content Template

Content Construction Kit (CCK)

Page 17: Php2pdf

Step 7: Create your Page

Go to Administer->Site Configuration->FlashVideo SettingsSelect the link that says FlashVideo Settings for this node type next to the Page node type. Once you are in there, you will want to check the box that says:Enable the FlashVideo for this node type.

And thats it!

Page 18: Php2pdf

Well, that was easy....let's see it in action!

http://nooil.tv

Page 19: Php2pdf
Page 20: Php2pdf
Page 21: Php2pdf
Page 22: Php2pdf
Page 23: Php2pdf
Page 24: Php2pdf

Comments?Questions?Answers?

Page 25: Php2pdf

Thank you

Eric MichalsenTwitter @michalsen

http://meetup.com/foxvalleycphttp://wwwfoxvalleycp.comTwitter #FVCP

[email protected]