<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ClipBucket Documentation</title>
	<atom:link href="http://docs.clip-bucket.com/feed" rel="self" type="application/rss+xml" />
	<link>http://docs.clip-bucket.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 31 Jul 2010 14:34:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to setup ClipBucket Admin Area</title>
		<link>http://docs.clip-bucket.com/clipbucket-v2/how-to-setup-clipbucket-admin-area</link>
		<comments>http://docs.clip-bucket.com/clipbucket-v2/how-to-setup-clipbucket-admin-area#comments</comments>
		<pubDate>Sat, 31 Jul 2010 08:17:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket v2]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=141</guid>
		<description><![CDATA[This article covers all settings available in admin area, following sections will be discussed in detail Website settings &#38; Configuration Language Settings Email Settings Manage Template Manage Players Manage Pages Manage Comments Conversion Queue Manager CronJobs Helper Videos Manager Users Menager Groups Manager Advertisement Manager Website Settings &#38; Configuration it has four sections Website Settings [...]]]></description>
			<content:encoded><![CDATA[<p>This article covers all settings available in admin area, following sections will be discussed in detail</p>
<ul>
<li>Website settings &amp; Configuration</li>
<li>Language Settings</li>
<li>Email Settings</li>
<li>Manage Template</li>
<li>Manage Players</li>
<li>Manage Pages</li>
<li>Manage Comments</li>
<li>Conversion Queue Manager</li>
<li>CronJobs Helper</li>
<li>Videos Manager</li>
<li>Users Menager</li>
<li>Groups Manager</li>
<li>Advertisement Manager</li>
</ul>
<p>Website Settings &amp; Configuration</p>
<p>it has four sections</p>
<ol>
<li>Website Settings</li>
<li>Uploading &amp; Conversion Settings</li>
<li>Display &amp; Listing Settings</li>
<li>User Settings &amp; Registeration</li>
</ol>
<h2>Website Settings</h2>
<table class="docs_table" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>Website Title</td>
<td>Set your website title, it will be displayed in each and every page of your website wraped in &lt;title&gt; tag</td>
</tr>
<tr>
<td>Website Slogan</td>
<td>Set your website slogan, it will display right next to title incase you have not set any other subtitle using &#8220;subtitle&#8221; function</td>
</tr>
<tr>
<td>Website Closed</td>
<td>Turn your website on and off from here<br />
Options<br />
NO (website will go live for everyone)<br />
YES (website will go offline for everyone except administartor and moderators)</td>
</tr>
<tr>
<td>Meta Description</td>
<td>Set meta description of your website, good for seo</td>
</tr>
<tr>
<td>Meta Keywords</td>
<td>Enter your desired website keywords for indexing</td>
</tr>
<tr>
<td>SEO URls</td>
<td>if you turn on this section your URLs will be like (http://website.com/watch/JHH3334L/som-title-goeshere<br />
if yout turn it off , they will look like (http://website.com/watch_video.php?v=JHH3334L<br />
Seo URLs are really good for seo , you need &#8220;apache rewrite&#8221; module in order to make this thing work.</td>
</tr>
<tr>
<td>Allow Template Change</td>
<td>Allow users to change your website template</td>
</tr>
<tr>
<td>Allow Language Change</td>
<td>Allow users to choose between available languages</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td>Date Format</td>
</tr>
</tbody>
</table>
</td>
<td>Set Date format of your website, please do not change it if you are unaware of php date function<br />
default value of date format is : Y-m-d</td>
</tr>
<tr>
<td>Default TimeZone</td>
<td>Set your default time zone according to GMT</td>
</tr>
<tr>
<td>Default Country</td>
<td>Set your default country</td>
</tr>
<tr>
<td>Website Email</td>
<td>All emails such as password reminder, admin email, video activation etc are send from this email, usually it looks like (no-reply@website.com)</td>
</tr>
<tr>
<td>Support Email</td>
<td>All emails that are recieved via Contact form will be sent to this email</td>
</tr>
<tr>
<td>Welcome Email</td>
<td>Welcome email is sent from this email address</td>
</tr>
<tr>
<td>Send Comment Notification</td>
<td>Send Email to user if he recieve comment on his video or channel</td>
</tr>
<tr>
<td>Send Video Approve Notification</td>
<td>Send Email to user if his video is approved by admin</td>
</tr>
<tr>
<td>Allow video cmments</td>
<td>Allow users to comment on videos</td>
</tr>
<tr>
<td>Allow channel comments</td>
<td>Allow users to comment on channels</td>
</tr>
<tr>
<td>Allow guests comments</td>
<td>Allow un registered or guests to make comments</td>
</tr>
<tr>
<td>Maximum Comment Characters</td>
<td>Maximum number of characters allowed for a comment</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td>Allow comments rating</td>
</tr>
</tbody>
</table>
</td>
<td>Allow users to rate comments (logged in only)</td>
</tr>
<tr>
<td>Comments Captcha</td>
<td>Options allowed<br />
For Everyone : captcha will be showed to everyone<br />
For Guests only : captcha will be showed to guests only<br />
Disable : disable captcha for everyone</td>
</tr>
<tr>
<td>Allow video embedding</td>
<td>Allow users to embed videos</td>
</tr>
<tr>
<td>Allow video download</td>
<td>Allow users to download video</td>
</tr>
<tr>
<td>Max categories for each video</td>
<td>Maximum  categories allowed for each video</td>
</tr>
<tr>
<td>Group thumb height</td>
<td>Set group thumbnail height in pixels , default is 140</td>
</tr>
<tr>
<td>Group thumb width</td>
<td>Set group thumbnail width in pexesl, defeault is 140</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td>Group Max Title</td>
</tr>
</tbody>
</table>
</td>
<td>Maximum characters allowed for Group Title</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td>Group Max Description</td>
</tr>
</tbody>
</table>
</td>
<td>Maximum characters allowed for Group Description</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td>Max categories for each group</td>
</tr>
</tbody>
</table>
</td>
<td>Maximum  categories allowed for each group</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td>Allow ratings</td>
</tr>
</tbody>
</table>
</td>
<td>Allow users to rate videos</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td>User can rate his/her video/channel</td>
</tr>
</tbody>
</table>
</td>
<td>Allow users to rate his own videos or channels</td>
</tr>
</tbody>
</table>
<h2>Uploading and Conversion Settings</h2>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td valign="top">Use Crons</td>
<td valign="top">Well in new version, crons option is optional</td>
</tr>
<tr>
<td width="200" valign="top">FFMPEG Binary Path</td>
<td valign="top">You dont need to set it, clip-bucket will select it automaticly</td>
</tr>
<tr>
<td valign="top">PHP Binary Path</td>
<td valign="top">You dont need to set it, clip-bucket will select it automaticly</td>
</tr>
<tr>
<td valign="top">Mp4 Binary Path</td>
<td valign="top">You dont need to set it, clip-bucket will select it automaticly</td>
</tr>
<tr>
<td valign="top">Flvtool2 Binary Path</td>
<td valign="top">You dont need to set it, clip-bucket will select it automaticly</td>
</tr>
<tr>
<td valign="top">Turn on Quick Conversion</td>
<td valign="top">We recomend you, to keep check it. Its for quick video conversion</td>
</tr>
<tr>
<td valign="top">Server Friendly Conversion</td>
<td valign="top">Use it on your choice, mouse over on ? sign to know more about it</td>
</tr>
<tr>
<td valign="top">Max Video Processes at once</td>
<td valign="top">We recommend you to use the max 2 videos, so it wont make more load on ur server</td>
</tr>
<tr>
<td valign="top">Max time wait after max processes</td>
<td valign="top">7200 is the default value for it, but u can increase it if u think thatz better for u.</td>
</tr>
<tr>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">Allow video uploading</td>
<td valign="top">Check it, if u want your users to upload videos</td>
</tr>
<tr>
<td valign="top">Allowed extensions</td>
<td valign="top">select the extensions for video uploading</td>
</tr>
<tr>
<td valign="top">Max upload file size</td>
<td>select the size for maximum upload</td>
</tr>
<tr>
<td>Save original file</td>
<td>uncheck it if you dont want to get save the oprignal file</td>
</tr>
<tr>
<td>Mp4 HQ Output</td>
<td>mouse over on ? sign and you will get the details of it</td>
</tr>
<tr>
<td>Keep Mp4 As Is</td>
<td>mouse over on ? sign and you will get the details of it</td>
</tr>
<tr>
<td>Activation required</td>
<td>check this option if you want activation</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="2">Video Upload Form Settings</td>
</tr>
<tr>
<td>Min &#8211; Max Video title</td>
<td>Select the min and max for video title</td>
</tr>
<tr>
<td>Min &#8211; Max Video Description</td>
<td>Select the min and max for video description</td>
</tr>
<tr>
<td>Min &#8211; Max Video Tags</td>
<td>Select the min and max for video tags</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2">Conversion Settings</td>
</tr>
<tr>
<td>Max Video Width</td>
<td>select the max width of video</td>
</tr>
<tr>
<td>Max Video Height</td>
<td>select the max height of video</td>
</tr>
<tr>
<td>Resize Type</td>
<td>click on ? singn to know more</td>
</tr>
<tr>
<td>Thumb Width</td>
<td>select the width of thumbnail</td>
</tr>
<tr>
<td>Thumb Height</td>
<td>select the height of thumbnail</td>
</tr>
<tr>
<td>Number of thumbs</td>
<td>select number of thumbs you wanna use for one video (its important for thumb rotator)</td>
</tr>
<tr>
<td>Big Thumb Width</td>
<td>select the width of big thumbnail</td>
</tr>
<tr>
<td>Big Thumb Height</td>
<td>select the height of big thumbnail</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>Video Codec</td>
<td></td>
</tr>
<tr>
<td>Audio Codec</td>
<td></td>
</tr>
<tr>
<td>Video Rate</td>
<td></td>
</tr>
<tr>
<td>Video Bitrate</td>
<td></td>
</tr>
<tr>
<td>Audio Rate</td>
<td></td>
</tr>
<tr>
<td>Audio Bitrate</td>
<td></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-v2/how-to-setup-clipbucket-admin-area/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anchors</title>
		<link>http://docs.clip-bucket.com/clipbucket-v2/anchors</link>
		<comments>http://docs.clip-bucket.com/clipbucket-v2/anchors#comments</comments>
		<pubDate>Sat, 03 Apr 2010 15:17:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket v2]]></category>
		<category><![CDATA[Developers Guide]]></category>
		<category><![CDATA[anchor]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=117</guid>
		<description><![CDATA[ClipBucket anchors are basically hook points where you can execute your codes via plugins for example if you want to call code under your video player, you will simply create or write an anchor after your player code as follows {ANCHOR place="after_video_player"} now if you want to call code at this anchor, you will simply [...]]]></description>
			<content:encoded><![CDATA[<p>ClipBucket anchors are basically hook points where you can execute your codes via plugins</p>
<p>for example</p>
<p>  if you want to call code under your video player, you will simply create or write an anchor after your player code as follows
</p>
<pre class='code'>{ANCHOR place="after_video_player"}
</pre>
<p>now if you want to call code at this anchor, you will simply &#8220;register anchor code&#8221; or &#8220;anchor function&#8221;</p>
<p>  there are two functions for registering codes for anchor points
</p>
<ol>
<li>register_anchor</li>
<li>register_anchor_function</li>
</ol>
<h3>Register_Anchor  </h3>
<pre class="tip">register_anchor(String[<em>text you want to display on this anchor point]</em>, String[<em>Anchor place]</em>);  </pre>
<p>now if you want to show a text &#8220;Hello World!&#8221; , you simply have to do is</p>
<pre class='code'> register_anchor("Hello World!","after_video_player");</pre>
<h3>Register_Anchor_Function  </h3>
<pre class="tip">register_anchor(String[<em>function name</em>], String[<em>Anchor place]</em>);  </pre>
<p>now if you want to execute a function on place &#8220;after_video_player&#8221; , here how you will do that  </p>
<pre class='code'>register_anchor_function("my_function","after_video_player");</pre>
<p> and you also have to write my_function code such as</p>
<pre class='code'> function my_function(){ echo "Hello World!"; }  </pre>
<h3>Passing Parameters To Function Via Anchor  </h3>
<p>if you want to pass paramters to function via anchor, its really simple. First you have to add a paramter in anchor function  </p>
<pre class='code'>{ANCHOR place='after_video_player' data="This is me, Mickey!"}</pre>
<p> and the function you want to call is my_function($text) , you just have to do is  </p>
<pre class='code'>
register_anchor_function("my_function","after_video_player");
function my_function($text){ echo "Hello World! ".$text;  }</pre>
<p> it will show the whole phrase as &#8220;Hello World! This is me, Mickey&#8221;;</p>
<p>  Hope i have cleared the mystery of our Anchor points, need more help regarding this , please leave a comment or discuss it on forums.clip-bucket.com</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-v2/anchors/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Advance Global Announcement Plugin for ClipBucket</title>
		<link>http://docs.clip-bucket.com/clipbucket-v2/developers-guide/creating-advance-global-announcement-plugin-for-clipbucket</link>
		<comments>http://docs.clip-bucket.com/clipbucket-v2/developers-guide/creating-advance-global-announcement-plugin-for-clipbucket#comments</comments>
		<pubDate>Sat, 03 Apr 2010 15:13:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Developers Guide]]></category>
		<category><![CDATA[anchors]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=115</guid>
		<description><![CDATA[I hope you have reviewed my previous &#8220;Getting Started With Plugins Tutorial&#8221; before start reading this post. Well, lets do some practical work,in this tutorial i will create an advance Global Announcement Plugin for ClipBucket that will be displayed all over in ClipBucket with Database and Admin Control Panel Things we cover in this tutorial [...]]]></description>
			<content:encoded><![CDATA[<p>I hope you have reviewed my previous &#8220;<a href="http://docs.clip-bucket.com/clipbucket-v2/getting-started-with-plugins">Getting Started With Plugins Tutorial</a>&#8221; before  start reading this post.</p>
<p>Well, lets do some practical work,in this tutorial i will create an advance Global Announcement Plugin for ClipBucket that will be displayed all over in ClipBucket with Database and Admin Control Panel</p>
<p>Things we cover in this tutorial</p>
<ol>
<li>Setting Up The Files</li>
<li>Editing Plugin Details</li>
<li>Writing Basic Plugin Code</li>
<li>Setting up an anchor</li>
<li>Adding Admin Control</li>
<li>Enhancing Editor with WYSIWYG</li>
<li>Author&#8217;s Tip</li>
</ol>
<p>Setting Files is very basic, please review my file setup tutorial <a href="http://docs.clip-bucket.com/clipbucket-v2/getting-started-with-plugins#setting_plugin_file">here </a></p>
<ol>
<li>create a folder in /plugins directory named &#8220;my_global_announcement&#8221;</li>
<li>create a file in this folder named &#8220;my_global_announcement.php&#8221; (main file)</li>
<li>now create two more files &#8220;install_my_global_announcement.php&#8221; and &#8220;uninstall_my_global_announcement.php&#8221;</li>
</ol>
<p>as their name tells, &#8220;my_global_announcement.php&#8221; is the main file that has basic details of a plugin that we will add later in the file. and install and uninstall files are related with the main file.</p>
<p>now we will add details in our main file &#8220;my_global_announcement.php&#8221;</p>
<pre class="code">/*
Plugin Name: My Global Announcement
Description: This Plugin will display an announcement on every page of the website
Author: Arslan Hassan
Author Website: http://clip-bucket.com/arslan-hassan
ClipBucket Version: 2
Version: 1.0
Website: http://clip-bucket.com/
Plugin Type: global
*/</pre>
<p>now, goto admin panel &gt; Manage Plugins , you will see your plugin listing there, ok now lets move to real thing.</p>
<p>things we need in our plugin</p>
<ul>
<li>Displays on each page</li>
<li>Easily Editable Via Admin Panel</li>
<li>WYSIWYG editor</li>
<li>Pop-up announcement, if required, for new visitors</li>
</ul>
<p>lets write down our very basic code that deals with our announcement.</p>
<pre class="code">if(!function_exists("my_global_announcement"))
{
	/**
	 * This function is used to display an announcement on
	 * each page
	 */
	function my_global_announcement()
	{
		echo "&lt;div align='center'&gt;This is our test announcement&lt;/div&gt;";
	}
	register_anchor_function("my_global_announcement","global");
}</pre>
<p>ok, great, good work so far. we have successfully created a plugin that alteast do something, now its time to go little dynamic, in order to do this. we have to uninstall the plugin, write the installation code that will actually  do is, create new table in database which will be used to store the global announcement.</p>
<p>now, open &#8220;install_my_global_announcement.php&#8221; and write down the following code.</p>
<pre class="code">&lt;?php
  //Creating Table for announcement if not exists
  function install_global_announcement()
  {
  global $db;
  $db-&gt;Execute(
  'CREATE TABLE IF NOT EXISTS '.tbl("my_global_announcement").' (
  `announcement` text NOT NULL
  ) ENGINE=MyISAM;'
  );
  //inserting new announcement
  $db-&gt;Execute("INSERT INTO  ".tbl('my_global_announcement')." (announcement) VALUES ('Hello World!')");
  }
  install_global_announcement();
?&gt;</pre>
<p>as you can see, it only does is create new table in database, nothing special, you can write your own codes such as create new directories, setting up the configurations etc, if you are planning to create other plugins.</p>
<p>ok , now we have finished with the installation file, lets write down some uninstallation code, we just have to write things that will undo the installation.</p>
<pre class="code">&lt;?php
//Function used to uninstall Plugin
	function un_install_global_announcement()
	{
		global $db;
		$db-&gt;Execute(
		'DROP TABLE '.tbl("my_global_announcement")
		);
	}
	un_install_global_announcement();
?&gt;</pre>
<p>Your global announcement installation and uninstallation code is done, now lets edit our main code that will get announcement from database.</p>
<p>our main object is to load global announcement from database that we can update any time. so heres how we will do that, first we will right code for getting data from database and then we will write admin area code for updating global announcement</p>
<p>now, we will update our main file and it will be look like this</p>
<pre class="code">&lt;?php
/*
Plugin Name: My Global Announcement
Description: This Plugin will display an announcement on every page of the website
Author: Arslan Hassan
Author Website: http://clip-bucket.com/arslan-hassan
ClipBucket Version: 2
Version: 1.0
Website: http://clip-bucket.com/
Plugin Type: global
*/
if(!function_exists("my_global_announcement"))
{
    /**
     * This function is used to display an announcement on
     * each page
     */
    function my_global_announcement()
    {
    	global $db;
    	$result = $db-&gt;select(tbl("my_global_announcement"),"*");
    	$announcement = $result[0][0];
    	echo '&lt;div&gt;'.$announcement.'&lt;/div&gt;';
    }
    /**
     * Simply gets the announcement from database
     */
    function get_my_global_announcement()
    {
    	global $db;
    	$result = $db-&gt;select(tbl("my_global_announcement"),"*");
    	return $announcement = $result[0][0];
    }
    /**
     * Registering function so that we can call it in our SMARTY TEMPLATES
     */
    $Smarty-&gt;register_function('get_my_global_announcement','get_my_global_announcement');
    /**
     * Registering Anchor Funtion
     */
    register_anchor_function("my_global_announcement","global");
    /**
     * Addin Admin Menu
     */
    add_admin_menu('My Global Announcement','Edit My Announcement','admin_global_announcement.php','my_global_announcement');
}
?&gt;</pre>
<p>Now</p>
<ol>
<li>Uninstall the plugin (if installed)</li>
<li>Reinstall it</li>
</ol>
<p>now, you will see &#8220;Hello World!&#8221; on every page under menu.</p>
<p>ok, now we have almost accomplished the goal, now lets add some admin controls, to add admin menu we use this function</p>
<pre style="tip">add_admin_menu(STRING[<em>menu head</em>],STRING[<em>menu name</em>],STRING[<em>file name</em>],STRING[<em>file path relative to plugins directory (optional)</em>]);
<ul>
<li>This function is used to add menu in admin panel</li>
<li>1 parameter creates menu head i.e "Videos"</li>
<li>2 parameter create menu name i.e "Videos Manager"</li>
<li>3 Parameter used to tell the file name i.e "video_manager.php"</li>
<li>4 Parameter is optional, it tells the path of the file , relative to PLUGINS directory, if it is empty, file will be loaded from admin_area folder</li>
</ul>
</pre>
<p>we will create two more files</p>
<ol>
<li>admin_my_global_announcement.php (File that will handle global announcement form)</li>
<li>admin_my_global_announcement.html (Template of the php file that will display the form)</li>
</ol>
<p>we will add pretty simple code for admin panel which will update the global announcement, here is the code for admin_my_global_announcement.php</p>
<pre class="code">&lt;?php
  /*
  * @author : Arslan Hassan
  */
  //this will check weather logged in user has admin_access or not , otherwise block the page
  $userquery-&gt;login_check('admin_access');
  //setting redirect page cookie
  $pages-&gt;page_redir();
  //if form is submit then follow the code inside the parenthesis
  if(isset($_POST['update']))
  {
  //retrieve data from "announcement" field
  $text = $_POST['announcement'];
  //Update the database
  $db-&gt;Execute("UPDATE ".tbl("my_global_announcement")." SET announcement='$text'");
  //Add announcement message
  $msg = e("Announcement has been updated",'m');
  }
  //Add Subtitle of admin panel
  subtitle("My Global Annoucment Manager");
  //Loads the template file
  template_files('admin_global_announcement.html',PLUG_DIR.'/my_global_announcement');
?&gt;</pre>
<p>we have finished the admin code, lets work with its template, open admin_global_announcement.html, and paste the code below</p>
<pre class="code">&lt;h2&gt;Edit My Global Announcement&lt;/h2&gt;
&lt;table width="99%" border="0" align="center" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;form id="form1" name="form1" method="post" action=""&gt;
Announcement&lt;br /&gt;
&lt;label for="textarea"&gt;&lt;/label&gt;
&lt;textarea name="announcement" id="announcement" cols="75" rows="6" style="width:100%;"&gt;{get_my_global_announcement}&lt;/textarea&gt;
&lt;br /&gt;
&lt;input type="submit" name="update" value="Update" /&gt;
&lt;/form&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</pre>
<p>Ok, now save and goto admin panel, you will see My Global Announcement Menu, if you can see it, it means, you have done a perfect job.</p>
<p>we have created a global announcement plugin, what if we want to add some JS and some WYSIWYG editor? its pretty simple. ClipBucket already has some JS plugins such niceEDIT so it wont be a difficult task. all you have to do is, open your &#8220;admin_global_announcement.html&#8221; and paste the code below</p>
<pre class="code">&lt;h2&gt;Edit My Global Announcement&lt;/h2&gt;
&lt;table width="99%" border="0" align="center" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;form id="form1" name="form1" method="post" action=""&gt;
Announcement&lt;br /&gt;
&lt;label for="textarea"&gt;&lt;/label&gt;
&lt;textarea name="text" id="page_content" cols="75" rows="6" style="width:100%;"&gt;{get_my_global_announcement}&lt;/textarea&gt;
&lt;script type="text/javascript"&gt;
	  	{literal}
			new nicEditor({fullPanel : true,maxHeight:350}).panelInstance('announcement');
		{/literal}
		&lt;/script&gt;
&lt;br /&gt;
&lt;input type="submit" name="update" value="Update" /&gt;
&lt;/form&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</pre>
<p>finally, you are done with a fully featured Global Announcement Plugin. Hope you have understand the basic idea of &#8220;How to create clipbucket plugin&#8221;</p>
<p>here is a tip for you guys</p>
<pre class="tip">$Cbucket-&gt;add_admin_header(STRING[<em>path to file you want to include in head tag</em>],STRING[<em>file scope</em>]<em>(optional)</em>)
<ul>
<li>This function used to include files in &lt;head&gt; tag, in-case you want to execute some javascript or style sheet etc.
this will help you without modifying the original source</li>
<li>1st Parameter is to pass Include File</li>
<li>and 2nd parameter is to tell the file scope
default value of this parameter is "global" which means, it will be included in every page
but if you set it like "my_global_announcement", it will only include in your page where you have defined
THIS_PAGE as "my_global_announcement"</li>
</ul>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-v2/developers-guide/creating-advance-global-announcement-plugin-for-clipbucket/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anonymous user</title>
		<link>http://docs.clip-bucket.com/clipbucket-v2/anonymous-user</link>
		<comments>http://docs.clip-bucket.com/clipbucket-v2/anonymous-user#comments</comments>
		<pubDate>Wed, 03 Mar 2010 13:46:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket v2]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=110</guid>
		<description><![CDATA[here goes Anonymous user details..]]></description>
			<content:encoded><![CDATA[<p>here goes Anonymous user details..</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-v2/anonymous-user/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding New Player</title>
		<link>http://docs.clip-bucket.com/clipbucket-v2/adding-new-player</link>
		<comments>http://docs.clip-bucket.com/clipbucket-v2/adding-new-player#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:39:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket v2]]></category>
		<category><![CDATA[Developers Guide]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=90</guid>
		<description><![CDATA[Introduction ClipBucket Player system allows you to add any kind of web player to integerate with ClipBucket easily. Using our core code, asll you have to do is to add code of bunch of lines as we will guide you how to do that but first let me tell you how our system works.. Write [...]]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>ClipBucket Player system allows you to add any kind of web player to integerate with ClipBucket easily. Using our core code, asll you have to do is to add code of bunch of lines as we will guide you how to do that but first let me tell you how our system works..</p>
<ul>
<li>Write your player function, that will load player</li>
<li>Register your player function using &#8216;register_actions_play_video&#8217;</li>
<li>ClipBucket calls &#8216;flashPlayer&#8217; that simple checks if there is already registered function then load it otherwise let the default player do the job</li>
</ul>
<p>please check following diagram for reference.</p>
<div id="attachment_95" class="wp-caption aligncenter" style="width: 260px"><a href="http://docs.clip-bucket.com/wp-content/uploads/2010/02/load_player_flow_chart.png"><img class="size-medium wp-image-95" title="load_player_flow_chart" src="http://docs.clip-bucket.com/wp-content/uploads/2010/02/load_player_flow_chart-250x300.png" alt="ClipBucket Flas Player Flow Chart" width="250" height="300" /></a><p class="wp-caption-text">ClipBucket Flas Player Flow Chart</p></div>
<p>our &#8220;how to add new player in clipbucket has 5 steps&#8221;</p>
<ol>
<li><a href="#player_source">Player Source</a></li>
<li><a href="#writing_plugin_code">Writing Plugin Code</a></li>
<li><a href="#setting_up_the_function">Setting Up The Functions</a></li>
<li><a href="#something_extra">Something Extra</a></li>
<li><a href="#final_testing_and_debugging">Testing &amp; Debugging</a></li>
</ol>
<h3>Player source<a name="player_source"></a></h3>
<p>first part of your player plugin is to find some good flash player, i am using JWPlayer as its the most basic and easy player that you can integerate and use. you can download it from <a href="http://www.longtailvideo.com/players/jw-flv-player/" target="_blank">http://www.longtailvideo.com/players/jw-flv-player/</a> , please will have following files</p>
<p>- media<br />
&#8211;\ player.swf<br />
&#8211;\ preview.jpg<br />
&#8211;\ readme.html<br />
&#8211;\ swfojbect.js<br />
&#8211;\ video.flv<br />
&#8211;\ yt.swf</p>
<p>for this player plugin, we only need &#8220;player.swf&#8221; and &#8220;yt.swf&#8221; , player.swf is used to player videos as it is meant to be while yt.swf is used to player youtube&#8217;s video in JW player. Lets just setup our source , now create new folder in &#8220;players&#8221; folder called &#8220;jwplayer5&#8243; and create &#8220;jwplayer5.php&#8221; file under that folder. Now copy &#8220;player.swf&#8221; and &#8220;yt.swf&#8221; to newly created folder. Finally your plugins folder will have</p>
<div id="attachment_96" class="wp-caption aligncenter" style="width: 218px"><a href="http://docs.clip-bucket.com/wp-content/uploads/2010/02/player_plugin_tree.png"><img class="size-full wp-image-96" title="player_plugin_tree" src="http://docs.clip-bucket.com/wp-content/uploads/2010/02/player_plugin_tree.png" alt="ClipBucket Player Plugin Tree" width="208" height="100" /></a><p class="wp-caption-text">ClipBucket Player Plugin Tree</p></div>
<h3>Writing Plugin Code<a name="writing_plugin_code"></a></h3>
<p>well, lets just start writing player plugin, code, its not as difficult but first you have to add comments so that ClipBucket can understand its a Player Plugin. Simple copy and paste the following code in your jwplayer5.php</p>
<pre class="code">  &lt;?php
/*
	Player Name: JW Player v5
	Description: Jw player for clipbucket from longtail.com
	Author: Arslan Hassan
	ClipBucket Version: 2
	Plugin Version: 1.0 - JW 5
	Website: http://clip-bucket.com/
*/
?&gt;</pre>
<h3>Setting Up The Function<a name="setting_up_the_function"></a></h3>
<p>Now, lets setup a call video function, first lets just copy and paste the following code in your jwplayer5.php before ?&gt;.</p>
<pre class="code">if(!function_exists(jwplayer5))
  {
  function jwplayer5($data)
  {
  $vdata = $data['vdetails'];
  global $swfobj;
  $vid_file = get_video_file($vdata,$no_video,false);
  if($vid_file)
  {
  $hd = $data['hq'];
  $swfobj-&gt;width = $data['width'];
  $swfobj-&gt;height = $data['height'];
  $swfobj-&gt;playerFile = PLAYER_URL.'/jwplayer/player.swf';
  $swfobj-&gt;DivId = $data['player_div'] ? $data['player_div'] : config('player_div_id');
  $swfobj-&gt;FlashObj();
  //Writing Param
  $swfobj-&gt;addParam('allowfullscreen','true');
  $swfobj-&gt;addParam('allowscriptaccess','always');
  $swfobj-&gt;addParam('wmode','opaque');
  if($hd=='yes') $file = get_hq_video_file($vdata); else $file = get_video_file($vdata,true,true);
  $swfobj-&gt;addVar('file',$file);
  $swfobj-&gt;CreatePlayer();
  return $swfobj-&gt;code;
  }else
  return false;
  }
  add_js(array('swfobject.obj.js'=&gt;'global'));
  register_actions_play_video('jwplayer5');
  }</pre>
<p>Each player function ie &#8220;jwplayer5()&#8221; must be unique, incase it is not, we added &#8220;!function_exists()&#8221; so that it wont create conflict .</p>
<pre>function functioname($data array);</pre>
<p>$data is an array which has following values</p>
<pre class="code">  $data['player_div']; //Player Div Id
  $data['key']; //Video Key
  $data['flv']; //Flv Name (file name)
  $data['height']; //Player Heigh
  $data['width']; //Player Width
  $data['hq']; //Boolean : if you true, then play HQ video otherwise player normal
  $data['autoplay'];  //Auto Player
  $data['vdetails']; //Video Details array ie $data['vdetails']['title'] will return video data</pre>
<p>this $data is passed from flashPlayer($data) function so you dont need to worry about it, just focus on your function</p>
<p>function get_video_file() is used to get video file, if there is any, it will return file otherwise return false, read more about <a href="http://docs.clip-bucket.com/clipbucket-v2/developers-guide/video_function#get_video_file">get_video_file here</a></p>
<pre>get_video_file($vdetails,$return_default=true,$with_path=true,$multi=false,$count_only=false,$hq=false)</pre>
<p>i used swfobject class to order to make this player run, you can read more about how to use this class <a href="http://docs.clip-bucket.com/clipbucket-v2/swf-object-php-class" target="_blank">here</a>, it simply works the same as swobject.js does..</p>
<pre class="code">add_js();</pre>
<p>this function is very simple, just add swfobject.js in our player page, please <a href="http://docs.clip-bucket.com/clipbucket-v2/developers-guide/basic-template-headers-files" target="_blank">read more about this here</a></p>
<pre class="code">register_actions_play_video()</pre>
<p>this function register &#8220;jwplayer5&#8243; function so that flashPlayer() can call it&#8230;</p>
<h3>Something Extra<a name="something_extra"></a></h3>
<p>now, your payer is ready to go, if you want to add admin control in this player so that you can control your player from admin panel , you can read a tutorial later.</p>
<p>if you want to add a preview for the player, right now only image preview is available so lets use it, create a preview image called preview.jpg and save it to your player folder &#8220;/player/jwplayer5/preview.jpg&#8221; , image dimensions should be 175&#215;105 in pixels..</p>
<h3>Testing and Debugging<a name="final_testing_and_debugging"></a></h3>
<p>now goto admin panel &gt; players &gt; manage player, you should be able to see your player, Activate it and test it, if you get any problem please right add your coment..</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-v2/adding-new-player/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Basic Template Headers Files</title>
		<link>http://docs.clip-bucket.com/clipbucket-v2/developers-guide/basic-template-headers-files</link>
		<comments>http://docs.clip-bucket.com/clipbucket-v2/developers-guide/basic-template-headers-files#comments</comments>
		<pubDate>Tue, 02 Feb 2010 14:57:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Developers Guide]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=92</guid>
		<description><![CDATA[add_js ClipBucket has a very useful function that is used to add Js file in ClipBucjet template so that you dont need to add js file in each template seperately, all you have to do is to add a little code and your file will be included in all templates usage add_js(array[]); explanation array(&#8220;file&#8221;=&#62;&#8221;scope&#8221;); file [...]]]></description>
			<content:encoded><![CDATA[<h2>add_js</h2>
<p>ClipBucket has a very useful function that is used to add Js file in ClipBucjet template so that you dont need to add js file in each template seperately, all you have to do is to add a little code and your file will be included in all templates</p>
<p>usage</p>
<p>add_js(array[]);</p>
<p>explanation</p>
<p>array(&#8220;file&#8221;=&gt;&#8221;scope&#8221;);</p>
<p>file</p>
<p>Make sure your file is placed in /js directory, e.g if you want to call my.js , you first place it in /js directory and then add array(&#8220;my.js&#8221;=&gt;&#8221;watch_video&#8221;); , similarly if your file in /js/somefolder/myfile.js , you will add it array(&#8220;somefolder/myfile.js&#8221;=&gt;&#8221;watch_video&#8221;);</p>
<p>scope</p>
<p>scope basically tells the clipbucket in which files we should include this file , ie , watch_video, home, view_channel etc&#8230;  or say for each <strong>file_name.php </strong>scope name is file_name. ok , if you add</p>
<p>array(&#8220;my.js&#8221;=&gt;&#8221;watch_video&#8221;); array(&#8220;my.js&#8221;=&gt;&#8221;view_channel&#8221;); array(&#8220;my.js&#8221;=&gt;&#8221;view_group&#8221;);</p>
<p>it will include my.js file in all these &#8220;watch_video&#8221; , &#8220;view_channel&#8221; and &#8220;view_group&#8221; files..<br />
if you want to add my.js in all files, simply, call function as follow</p>
<p>array(&#8220;my.js&#8221;=&gt;&#8221;global&#8221;);</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-v2/developers-guide/basic-template-headers-files/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ClipBucket Mass Embedder</title>
		<link>http://docs.clip-bucket.com/clipbucket-v2/official-plugins/clipbucket-mass-embedder</link>
		<comments>http://docs.clip-bucket.com/clipbucket-v2/official-plugins/clipbucket-mass-embedder#comments</comments>
		<pubDate>Sat, 30 Jan 2010 10:28:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Official Plugins]]></category>
		<category><![CDATA[ClipBucket v2]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[embedder]]></category>
		<category><![CDATA[grabber]]></category>
		<category><![CDATA[mass]]></category>
		<category><![CDATA[mass embedder]]></category>
		<category><![CDATA[youtube grabber]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=87</guid>
		<description><![CDATA[Requirements - ClipBucket v2 - Curl Enabled PHP Hosting Installation - Download ClipBucket Mass Embedder Plugin From client area - Unzip the file, you will get &#8220;upload&#8221; folder - Upload all files under &#8220;upload&#8221; folder to your ClipBucket root folder - After Uploading, Goto Admin Panel &#62; Plugin Manager &#62; Find Plugin in &#8220;Available Plugins&#8221; [...]]]></description>
			<content:encoded><![CDATA[<h2>Requirements</h2>
<p>- ClipBucket v2<br />
- Curl Enabled PHP Hosting</p>
<h2>Installation</h2>
<p>- Download ClipBucket Mass Embedder Plugin From client area<br />
- Unzip the file, you will get &#8220;upload&#8221; folder<br />
- Upload all files under &#8220;upload&#8221; folder to your ClipBucket root folder<br />
- After Uploading, Goto Admin Panel &gt; Plugin Manager &gt; Find Plugin in &#8220;Available Plugins&#8221; and click Install<br />
- Once install, Goto Plugin Settings Page, Enter your CBMass Embbed License which you will get once your order is fully activated.<br />
- Thats All, you are ready to use ClipBucket Mass Embedder</p>
<h2>How To</h2>
<p>- You can change ClipBucket Mass Embed Settings by Going to &#8220;Mass Embed Videos Page&#8221; under &#8220;Videos Manager&#8221; menu<br />
- Click on &#8220;click here to edit settings&#8221; to change settings<br />
- Keywords are used to search videos based on saved keywords<br />
- You can set Times ie &#8220;All Time&#8221; &#8220;Today&#8221; &#8220;This Month&#8221; Etc<br />
- You can set Sort Type ie &#8220;Top Rated&#8221; &#8220;Most Viewed&#8221; etc</p>
<h2>Auto Categorize</h2>
<p>- to make this feature possible, all you have to do is, enter keywords for each category,<br />
clipbucket will check for each keyword in videos tags, if it founds any matched keyword, then category will be assigned automatically.</p>
<p>e.g, If you want to assign category &#8220;Celebrities&#8221; to video with the title &#8220;Angelina Jolie&#8221; having &#8220;angelina, jolie, hollywood, actress&#8221; tags,<br />
all you have to do is , add tags &#8220;actress&#8221; in Celebrities Category. it will be automatically assigned.</p>
<h2>Auto Channel Creation</h2>
<p>- If you check Create Channel, a channel will be automatically created based on either the keyword or text field, whatever you select. if channel already exists, it will insert videos in the channel.</p>
<h2>Trouble Shooting</h2>
<p>- PHPShield Error, if you get any error like PHPSheild, please ask your Host to install PHPShield Loaders<br />
- Channels Not Created automatically<br />
Make sure you are using ClipBucket v2.0.4 or above<br />
- Videos Not Embbedding<br />
Make sure cURL is installed on your server<br />
- Mass Embedder Crashes on several Keywords<br />
Make sure you are using latest version of Mass Embedder</p>
<p>For other problems, please contact as at http://client.clip-bucket.com/</p>
<p>Note : This Article is added on Feb 11, ClipBucket v2.0.4 will be out pretty soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-v2/official-plugins/clipbucket-mass-embedder/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FLVTool2</title>
		<link>http://docs.clip-bucket.com/clipbucket-docs/flvtool2</link>
		<comments>http://docs.clip-bucket.com/clipbucket-docs/flvtool2#comments</comments>
		<pubDate>Tue, 19 Jan 2010 12:37:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>
		<category><![CDATA[FLVTool2]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=80</guid>
		<description><![CDATA[FLVTool2 is a manipulation tool for Macromedia Flash Video files (FLV). It can calculate a lot of meta data, insert an onMetaData tag, cut FLV files, add cue points (onCuePoint), show the FLV structure and print meta data information in XML or YAML. Overview of Cue Points: A cue point is any significant moment in [...]]]></description>
			<content:encoded><![CDATA[<p><strong>FLVTool2</strong> is a manipulation tool for Macromedia Flash Video files (<a title="FLV" href="https://www.flashsec.org/wiki/FLV" target="_blank">FLV</a>). It can calculate a lot of meta data, insert an onMetaData tag, cut FLV files, add cue points (onCuePoint), show the FLV structure and print meta data information in XML or YAML.</p>
<p><strong>Overview of Cue Points:</strong> A cue point is any significant moment in time occurring within a video clip.   Cue points enable you to access different segments of a video clip. With Flash   Video, you can create and manage cue points in a variety of ways. This series   provides a comprehensive guide to the use of cue points in Flash Video. In   this first installment, you learn the basics of cue points and the requirements   to create cue point data.</p>
<p>So in short FLVTool2 improve the quality of video what FFMPEG produced.</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-docs/flvtool2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How ClipBucket Video Conversion Works?</title>
		<link>http://docs.clip-bucket.com/clipbucket-docs/how-clipbucket-video-conversion-works</link>
		<comments>http://docs.clip-bucket.com/clipbucket-docs/how-clipbucket-video-conversion-works#comments</comments>
		<pubDate>Tue, 19 Jan 2010 10:54:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=66</guid>
		<description><![CDATA[ClipBucket video conversion architects..]]></description>
			<content:encoded><![CDATA[<p>ClipBucket video conversion architects..</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-docs/how-clipbucket-video-conversion-works/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ClipBucket Installation</title>
		<link>http://docs.clip-bucket.com/clipbucket-docs/clipbucket-installation</link>
		<comments>http://docs.clip-bucket.com/clipbucket-docs/clipbucket-installation#comments</comments>
		<pubDate>Sun, 17 Jan 2010 16:53:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=62</guid>
		<description><![CDATA[Requirements Installation After Installation Troubleshoot &#38; Support Requirements PHP 5.2.x &#38; MySql 5.x.x PHP with Background Processing and Exec Enabled GD Library For Captchas and Other Image Manuplation FFMPEG &#8211; FLVTOOL2 &#8211; MP4Box Installation New Installation Update from v2.x Upgrade from v1.x first extract downloaded file, you will find &#8220;upload&#8221; folder , LICENSE and README [...]]]></description>
			<content:encoded><![CDATA[<div id="sections">
<ul>
<li><a href="#requirements">Requirements</a></li>
<li><a href="#installation">Installation</a></li>
<li><a href="#after_installation">After Installation</a></li>
<li><a href="#trouble">Troubleshoot &amp; Support</a></li>
</ul>
</div>
<h2>Requirements <a name="requirements"></a></h2>
<ol>
<li>PHP 5.2.x &amp; MySql 5.x.x</li>
<li>PHP with Background Processing and Exec Enabled</li>
<li>GD Library For Captchas and Other Image Manuplation</li>
<li>FFMPEG &#8211; FLVTOOL2 &#8211; MP4Box</li>
</ol>
<h2>Installation<a name="installation"></a></h2>
<ul>
<li>New Installation</li>
<li>Update from v2.x</li>
<li>Upgrade from v1.x</li>
</ul>
<p>first extract downloaded file, you will find &#8220;upload&#8221; folder , LICENSE and README file</p>
<h3>New Installation</h3>
<ul>
<li>Upload all files of /upload folder to your website folder</li>
<li>Now Open your website as http://yourwebsite.com/install</li>
<li>Click on &#8220;Fresh Installation&#8221; and Follow instructions</li>
</ul>
<h3>Upgrade from v2.x</h3>
<ul>
<li>Backup your database</li>
<li>Backup your template or rename its folder if you have done any customization (only for Default Template)</li>
<li>Upload and overwrite existing files</li>
<li>Remove /files/install.loc file from your website</li>
<li>Point your websie URL to /install folder</li>
<li>Click on &#8220;Update from 2.x&#8221;</li>
<li>Follow the instructions</li>
</ul>
<h3>Upgrader from v1.x</h3>
<ul>
<li>Must Create BACKUP OF YOUR DATABASE</li>
<li>Only VIDEO &#8211; MEMBERS and VIDEO COMMENTS will be imported</li>
<li>Upload all files of /upload directory to your website clipbucket folder, overwrite existing</li>
<li>Now point your website to /install folder</li>
<li>Click on &#8220;Upgrade from v1.7&#8243;</li>
<li>Follow The instructions</li>
<li>Upgrading is done via AJAX, please keep following Instructions until you find Admin Panel <img src='http://docs.clip-bucket.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
<h2>After Installation<a name="after_installation"></a></h2>
<p>now once you have done a successfull installation, you must read following instructions in order to work ClipBucket properly</p>
<ul>
<li>Setting Up Admin Panel</li>
<li>Setting Up Crons</li>
</ul>
<h3>Setting Up Admin Panel</h3>
<ul>
<li>Ask your Web Host for following modules paths
<ol>
<li>FFMPEG</li>
<li>FLVtool2</li>
<li>Mp4Box</li>
<li>PHP</li>
</ol>
</li>
<li>You can also get these patsh by clicking on &#8220;Server Modules Info&#8221; in Tool Box Menu</li>
<li>Once you Get these paths, Goto Website Configurations &gt; &#8220;Upload and Conversion&#8221; &gt; Enter Paths and Save them accordingly</li>
<li>Once you save your settings, go back to &#8220;Server Modules Info&#8221;, you will find all modules status OK in form of CHECK icon</li>
<li>Now Edit your settings accordinly</li>
</ul>
<h3>Setting Up Crons</h3>
<p>cron jobs are required to do automation jobs such as conversion, generating stats, file manipulation etc&#8230;</p>
<ul>
<li>Our cron jobs require PHP path to run</li>
<li>Please refer to following screenshote for graphical demonstration</li>
<li>A Video tutorial will be posted soon for setting cron jobs on cPanel and other Control Panels</li>
</ul>
<p>crons jobs will be set like * * * * * /path/to/php -q /path/to/file, path to php are mostly like either only &#8220;php&#8221; or &#8220;/usr/local/bin/php&#8221; or &#8220;/usr/bin/php&#8221;, please ask your host for setting up crons cause they better know their servers and paths</p>
<p>1) Every Minute, Every Hour, Every Day, Every Month, Every Weekend (or set accordingly)</p>
<pre class="code">* * * * * php -q /relative/path/to/clipbucket/actions/video_convert.php</pre>
<p>2) Every Minute, Every Hour, Every Day, Every Month, Every Weekend (or set accordingly)</p>
<pre class="code">* * * * * php -q /relative/path/to/clipbucket/actions/verify_converted_videos.php</pre>
<p>3)0 Minute of Hour, 0,12,23 Hours of a Day, Every Day, Every Month, Every Weekend</p>
<pre class="code">0 0,12,13 * * *
php -q /relative/path/to/clipbucket/actions/update_cb_stats.php</pre>
<div id="attachment_105" class="wp-caption aligncenter" style="width: 310px"><a href="http://docs.clip-bucket.com/wp-content/uploads/2010/01/cron_jobs.png"><img class="size-medium wp-image-105" title="cron_jobs" src="http://docs.clip-bucket.com/wp-content/uploads/2010/01/cron_jobs-300x86.png" alt="ClipBucket Cron Jobs Demonstration" width="300" height="86" /></a><p class="wp-caption-text">ClipBucket Cron Jobs Demonstration</p></div>
<p>thats all for now</p>
<h2>Troubleshoot &amp; Support<a name="trouble"></a></h2>
<ul>
<li><a href="http://forums.clip-bucket.com">Forums (recommended)</a></li>
<li><a href="http//docs.clip-bucket.com/">Documentation</a></li>
<li><a href="http://clip-bucket.com/contact">Contact</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-docs/clipbucket-installation/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
