youtubev2 plugin by Jason T
Plugin that creates a link or an embed object of YouTube movie with thumbnails and AJAX.
Provides Syntax.
Compatible with DokuWiki 2007-06-26.
Conflicts with vshare!
Similar to dailymotion, dailymotion_videozap, flashplayer, flowplay, flowplay2, google_video, video, vshare, youtube.
The following security issue was reported for this plugin:
XSS vulnerability allows arbitrary JavaScript insertion. No contact details for the author identified.
It is not recommended to use this plugin until this issue was fixed. Plugin authors should read the plugin security guidelines.
This DokuWiki plugin can do the following by providing a movie ID and some simple syntax:
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
{{youtube>link:MJj5XWQHUFE:numbThumbs}}
{{youtube>small:MJj5XWQHUFE:numbThumbs}}
{{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).
The following Javascript must be put into the header file (mine is 'main.php), between the
<head></head> tags. This code handles the hiding and displaying of the images/videos.
<script type="text/javascript">
<!--
var clicked=true;
function ExpandCollapse(bExpand,id){
clicked = bExpand
_contents="c"+id
_expand="expand"+id
if(clicked){
clicked=false;
document.getElementById(_contents).style.display = 'block';
}else{
clicked=true;
document.getElementById(_contents).style.display = 'none';
}
}
//-->
</script>
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:
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]
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.
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported