====== YouTube v2 Plugin ======
---- plugin ----
description: Plugin that creates a link or an embed object of YouTube movie with thumbnails and AJAX.
author : Jason T
email :
type : syntax
lastupdate :
compatible : 2007-06-26
depends :
conflicts :
similar : flowplay, youtube, google_video, flashplayer, video
tags : youtube, movie, flash, video, embed
securityissue: XSS vulnerability allows arbitrary JavaScript insertion. No contact details for the author identified.
----
This DokuWiki plugin can do the following by providing a movie ID and some simple syntax:
- Create a link to a YouTube video with/without thumbnail(s)
- Embed a large video with/without thumbnail(s)
- Embed a small video with/without thumbnail(s)
Additionally when you click a thumbnail (if using one) it will hide the thumbnail and then show the
video in the same page. Great for that web 2.0 craving you have.
Thanks to Ikuo Obataya for version 1
===== Usage =====
- For link to a video on YouTube: {{youtube>link:MJj5XWQHUFE:numbThumbs}}
- For embedding a small video: {{youtube>small:MJj5XWQHUFE:numbThumbs}}
- For embedding a large video: {{youtube>large:MJj5XWQHUFE:numbThumbs}}
Replace "numbThumbs" with the number of image thumbnails you wish to have.
Possible values are 0,1,2 (YouTube limits, not mine).
===== Required Header Code =====
The following Javascript must be put into the header file (mine is 'main.php), between the
===== Download =====
[[http://rapidshare.com/files/39711433/youtube.zip.html|YouTube_v2]]
http://rapidshare.com/files/39711433/youtube.zip.html|YouTube_v2
Download the plugin package and create a directory named 'youtube'.
Then extract the plugin into your 'lib/plugins/youtube' directory.
The files in the plugin are:
- syntax.php
- youtube.png
- b_collapse.gif
- b_expand.gif
==== FreeBSD ====
It is not possible to download this plugin with:
cd /usr/local/www/dokuwiki/lib/plugin
fetch "url_of_youtube_plugin.tgz"
tar xvzf youtube
The above code works with all other plugins, but not with this one, since it is hosted by RapidShare.
Download the file using opera web browser [ed]
==== Wrong links in the feed ====
It is better than the v1 because the thumbnails appears in the rss feed, but the links to show and hide video are not set right: they are relatives to the feed.
[[http://profs.if.uff.br/tjpp/blog|TJPP]]