Skip to content
Snippets Groups Projects
Commit 125a4818 authored by root's avatar root Committed by lechuck
Browse files

Adding plugin video-sidebar-widgets

parent a58796a0
No related branches found
No related tags found
No related merge requests found
(function() {
tinymce.create('tinymce.plugins.VSW_Shortcode_Plugin', {
init : function(ed, url) {
ed.addCommand('mceVSW', function() {
ed.windowManager.open({
file : url + '/vsw_dialog.htm',
width : 550 + parseInt(ed.getLang('vsw.delta_width', 0)),
height : 230 + parseInt(ed.getLang('vsw.delta_height', 0)),
inline : 1
}, {
plugin_url : url, // Plugin absolute URL
some_custom_arg : 'custom arg' // Custom argument
});
});
ed.addButton('vsw', {
title : 'insert video shortcode',
cmd : 'mceVSW',
image : url + '/vsw.gif'
});
ed.onNodeChange.add(function(ed, cm, n) {
cm.setActive('vsw', n.nodeName == 'Video');
});
},
createControl : function(n, cm) {
return null;
},
getInfo : function() {
return {
longname : 'Video Sidebar Widgets Shortcode Plugin',
author : 'Denzel',
authorurl : 'http://denzeldesigns.com',
infourl : 'http://denzeldesigns.com',
version : "1.0"
};
}
});
// Register plugin
tinymce.PluginManager.add('vsw', tinymce.plugins.VSW_Shortcode_Plugin);
})();
\ No newline at end of file
=== Video Sidebar Widgets ===
Contributors: denzel_chia
Donate link: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
Author link: http://denzeldesigns.com
Tags:video, widget, widgets, sidebar, videos, video sidebar widget, video widget, embed video, video embed, video in sidebar, youtube, vimeo, veoh, myspace video, revver, blip tv, tudou, youku, 6.cn, google videos, tangle
Requires at least:2.8.1
Tested up to: 3.0
Stable tag:3.0
== Description ==
A Video Widget written in latest Widgets API. It enables the user to embed FlashVideo from various video sharing networks into the widgetised sidebar of a WordPress powered blog. Currently supporting video embed from 15 video sharing networks. Including, Youtube, Vimeo, Veoh, Blip.tv etc..
Now including Random Video Sidebar Widget to randomly display 1 out of 5 preset video.
== Changelog ==
= 2.0 =
*Included Random Video Sidebar Widget to randomly display 1 out of 5 preset video.
= 2.1 =
*re-arranged Random Video Sidebar Widget Layout
*Included fixed size, no autoplay, video preview in widget form for easier identification of videos. Video will display after setting up and clicking save button. Video may not display due to slow connection, browser caching, wrong setting, or video removed from source.
*Included support for google videos
*Included Video Caption at bottom of Video
*Video Caption has a style class of "VideoCaption" to enable user to indicate font-height etc.
= 2.2 =
*Included support for Tangle.com videos
= 2.3 =
*Removed auto play video option for Blip.tv video, which is causing the video not to load in Internet Explorer.
*Allowed HTML links in video caption
= 3.0 =
*added video quicktag at post editor to insert video shortcode into post or page.
*Shortcode to allow posting of video on post or page, using video function already available in plugin.
== Installation ==
= Install Plugin Using Search =
1. Search for Video Sidebar widgets in Add New Plugins
2. Click 'Install Now' in search results row
3. Click 'OK' to accept plugin installation
4. Once installed, click Activate Plugin link
= or, install Plugin in .ZIP Format =
1. Visit Plugins > Add New > Upload in WordPress admin
2. Upload video-sidebar-widget.zip file
3. Once uploaded, click Activate Plugin link
== Can I post video in post or page content other than the sidebar? ==
As of version 3.0, shortcode is added to enable user to post video in content.
User can use the video Quicktag at Tinymce editor to insert video shortcode.
== How to use Video Sidebar Widget ? ==
Please visit plugin site for details.
== How to use Random Video Sidebar Widget ? ==
Please visit plugin site for details.
== Frequently Asked Questions ==
1. Why is Video Sidebar Widget not compatible with WordPress 2.8 ?
It is not compatible because a bug was found to cause settings of multiple instance of a widget to disappear or mixed up.
The bug was fixed in WordPress 2.8.1
2. Why is my Random Video sidebar Widget not working?
Reload the webpage where you use the widget, each time you reload, the widget will randomly pick 1 of the 5 video you set for display. there are chances that it displays the same video after you reload. Just try reloading again.
Random Video Sidebar Widget will not work on blogs that uses cache plugins. It is because the cache plugin will deliver the generated static page instead of regenerating blog page or post through server script. However, it may work if your theme has a page template with a different sidebar. You can then set your cache plugin not to cache that particular page or post, if there is such option available in that cache plugin.
== Screenshots ==
Please visit plugin site for video samples
wp-content/plugins/video-sidebar-widgets/source_image/source.png

49.7 KiB

This diff is collapsed.
wp-content/plugins/video-sidebar-widgets/vsw.gif

447 B

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>Video Sidebar Widgets (Extension) Insert Video ShortCode</title>
<script type="text/javascript" src="../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
<script type="text/javascript" src="vsw_dialog.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
html,body,td,th,input,select {
font-family:Arial, Helvetica, sans-serif;
font-size: 12px;
background-color:#FFFFFF;
}
-->
</style>
</head>
<body>
<form onsubmit="VSWDialog.insert();return false;" action="#">
<table width="100%">
<tr>
<td height="38" colspan="3"><h2>Insert Video ShortCode</h2></td>
</tr>
<tr>
<td height="30">Video ID</td>
<td height="30" colspan="2"><input id="vsw_id" name="vsw_id" type="text" class="text" style="width:95%" value="" /></td>
</tr>
<tr>
<td width="101" height="30">Video Source</td>
<td height="30" colspan="2"><select name="vsw_source" class="selectfont">
<option value="youtube">Youtube</option>
<option value="vimeo">Vimeo</option>
<option value="myspace">My Space</option>
<option value="veoh">Veoh</option>
<option value="bliptv">Blip TV</option>
<option value="wordpress">WordPress</option>
<option value="viddler">Viddler</option>
<option value="dailymotion">DailyMotion</option>
<option value="revver">Revver</option>
<option value="metacafe">Metacafe</option>
<option value="tudou">Tudou</option>
<option value="youku">YouKu</option>
<option value="cn6">cn6</option>
<option value="google">Google</option>
<option value="tangle">Tangle</option>
</select></td>
</tr>
<tr>
<td height="30"> Width
<input id="vsw_width" name="vsw_width" type="text" class="text" size="5" value="425" /></td>
<td height="30" colspan="2">Height
<input id="vsw_height" name="vsw_height" type="text" class="text" size="5" value="344" /> </td>
</tr>
<tr>
<td width="101" height="30">Auto Play</td>
<td width="92" height="30"> <select name="vsw_autoplay" class="selectfont">
<option value="no">No</option>
<option value="yes">Yes</option>
</select></td>
<td width="876" height="30">For certain Video Networks Only.</td>
</tr>
<tr>
<td height="30"><input type="button" id="insert" name="insert" value="{#insert}" onClick="VSWDialog.insert();" /></td>
<td height="30">&nbsp;</td>
<td height="30"><input type="button" id="cancel" name="cancel" value="{#cancel}" onClick="tinyMCEPopup.close();" /></td>
</tr>
</table>
</form>
</body>
</html>
var VSWDialog = {
init : function() {
},
insert : function() {
// Insert the contents from the input into the document
var VSW_ShortCode = '[vsw id="'+document.forms[0].vsw_id.value+'" source="'+document.forms[0].vsw_source.value+'"';
VSW_ShortCode +=' width="'+document.forms[0].vsw_width.value+'" height="'+document.forms[0].vsw_height.value+'"';
VSW_ShortCode +=' autoplay="'+document.forms[0].vsw_autoplay.value+'"]';
tinyMCEPopup.editor.execCommand('mceInsertRawHTML', false, VSW_ShortCode);
tinyMCEPopup.close();
}
};
tinyMCEPopup.onInit.add(VSWDialog.init, VSWDialog);
/*** MODEL Shortcode
[vsw id="123456" source="vimeo" width="400" height="300" autoplay="no"]
***/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment