Extension:YouTubeAuthSub

The YouTubeAuthSub extension allows users to upload videos directly to YouTube through the wiki.

Pre-requisites

 * This extension was tested with MediaWiki 1.9. Your PHP configuration must be configured with --with-curl.
 * EmbedVideo Extension is required in order to support tags

Configuration & Installation

 * Get the source via SVN
 * Add this line to your LocalSettings.php
 * Create this table in your database:

Options

 * Get yourself an API Key from here and set $wgYTAS_DeveloperId to this key in YouTubeAuthSub.php.
 * Find a place where you can link to your new extension Special:YouTubeAuthSub
 * There are 2 ways to upload videos:
 * AuthSub proxy authentication enables web applications to authenticate users to their YouTube accounts without having to access the user's YouTube username and password. You should use AuthSub authentication if you are building a web application that will let users link videos, comments, ratings, contacts or other information to their own YouTube accounts.
 * ClientLogin authentication lets you associate all API actions with a single YouTube account. You should use ClientLogin if you are building a standalone, single-user, installed client, such as a desktop application. In this case, your application will ask the user to enter his YouTube username and password and will then use those values to request a ClientLogin authentication token.
 * If you want the latter, set $wgYTAS_UseClientLogin to true and set both $wgYTAS_User and $wgYTAS_Password to the account all videos will be uploaded to.
 * Caveat: There is an upper limit of 1000 videos total in a channel, so if all of your users are submitting videos to a single YouTube channel, you may hit that limit quickly.
 * If you want the user to select a category, set $wgYTAS_DefaultCategory to false, but if you want all videos to be uploaded to same category set $wgYTAS_DefaultCategory to one of the values found here
 * If you want the extension to add a YouTube namespace and create placeholder articles for videos uploaded, set $wgYTAS_UseNamespace = true; and create a template called YoutubeVideo similar to this one
 * Set $wgYTAS_EnableLogging = true if you want an upload log entry generated when a video is uploaded.

Bugs and enhancements
Bugs or feature requests can be sent to the author at ext @ wikihow.com.

License
Copyright 2008 Travis Derouin, (ext @ wikihow.com) wikiHow

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA