<?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>Wed, 09 May 2012 11:25:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>add_admin_menu function</title>
		<link>http://docs.clip-bucket.com/add_admin_menu-function</link>
		<comments>http://docs.clip-bucket.com/add_admin_menu-function#comments</comments>
		<pubDate>Sat, 26 Nov 2011 23:15:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket functions]]></category>
		<category><![CDATA[Functions List]]></category>
		<category><![CDATA[add_admin_menu]]></category>
		<category><![CDATA[admin_area]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=390</guid>
		<description><![CDATA[Function : add_admin_menu File : includes/plugins.functions.php Since : 2.x This function used to add links admin area. When you create or develop a plugin you must point links to access or configure plugin pages, in order to make it easier we have created system, an easy system so you can write files dedicated to admin [...]]]></description>
			<content:encoded><![CDATA[<p>Function : add_admin_menu<br />
File : includes/plugins.functions.php<br />
Since : 2.x</p>
<p>This function used to add links admin area. When you create or develop a plugin you must point links to access or configure plugin pages, in order to make it easier we have created system, an easy system so you can write files dedicated to admin area only. <a href="#">Please read Add Plugin Pages For Admin Area.</a></p>
<h4>Usage</h4>
<p>function add_admin_menu($header=&#8217;Tool Box&#8217;,$name,$link,$plug_folder=false,$is_player_file=false)</p>
<h4>Uses</h4>
<ul>
<li>ClipBucket-&gt;AdminMenu</li>
</ul>
<h4>Overview</h4>
<p>To create menu in admin area, we will simply pass links to an array $Cbucket-&gt;AdminMenu and then we create a loop in admin area html files to render the links accordingly, there are too many functions involved and we will try to document them all one by one</p>
<table width="100%" border="0" cellpadding="3">
<tbody>
<tr>
<td width="25%">Parameter Name</td>
<td><strong>Options</strong></td>
</tr>
<tr>
<td width="25%">$header (String)</td>
<td>A header of amin menu under which link will be displayed, by default we have &#8216;Stats and Configurations&#8217;, &#8216;Videos&#8217; etc..please take a look at <a href="http://docs.clip-bucket.com/images/admin_menu_pic_reference.png" target="_top">this pic</a> for proper understanding. By default its Tool Box so all your plugin links will be listed under Tool Box if not specified</td>
</tr>
<tr>
<td>$name (String)</td>
<td>Name of your menu link that are displayed under your header, like we have &#8216;Manage videos&#8217; under Videos header</td>
</tr>
<tr>
<td>$link (String)</td>
<td>Link to your plugin file that you will load or call when admin clicks on it or it can be direct Http link (leave other to params blank for direct http link), e.g for /plugins/global_announcement/admin/manage.php , simply set it as &#8216;manage.php&#8217;</td>
</tr>
<tr>
<td>$plug_folder (String)</td>
<td>Path to the folder of the files, relative to /plugins directory, e.g if you have a plugin folder &#8216;global_announcement&#8217; , then according to given above example , it should be &#8216;global_announcement/admin&#8217;Note : $plug_folder and $link makes a complete path to the file relative to plugins directory ie.</p>
<p>/plugins/$plug_folder/$link</p>
<p>its default value is false, it will ultimately load file from /plugins directory</p>
<p>/plugs/$link</td>
</tr>
<tr>
<td>$is_player (Boolean)</td>
<td>default is false, just to tell CB if plugin file is for player</td>
</tr>
</tbody>
</table>
<h3>Example</h3>
<p>this code</p>
<pre class="code php">&lt;?php
add_admin_menu("Audio","Audio Configuration",'audio_configurations.php','cb_audio/back_end/');
add_admin_menu("Audio","Audio Manager",'audio_manager.php','cb_audio/back_end/');
add_admin_menu("Audio","Manage Categories",'audio_categories.php','cb_audio/back_end/');
add_admin_menu("Audio","Flagged Audios",'flagged_audios.php','cb_audio/back_end/');
add_admin_menu("Audio","Inactive Audios",'audio_manager.php&amp;search=search&amp;active=no','cb_audio/back_end/');
?&gt;</pre>
<p>will generate something like this</p>
<div id="attachment_391" class="wp-caption aligncenter" style="width: 231px"><a href="http://docs.clip-bucket.com/wp-content/uploads/2011/11/admin_menu_pic_reference_2.png"><img class="size-full wp-image-391" title="admin_menu_pic_reference_2" src="http://docs.clip-bucket.com/wp-content/uploads/2011/11/admin_menu_pic_reference_2.png" alt="" width="221" height="178" /></a><p class="wp-caption-text">Final view of admin menu</p></div>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/add_admin_menu-function/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>get_thumb function</title>
		<link>http://docs.clip-bucket.com/get_thumb-function</link>
		<comments>http://docs.clip-bucket.com/get_thumb-function#comments</comments>
		<pubDate>Thu, 24 Nov 2011 08:40:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[function_videos]]></category>
		<category><![CDATA[thumbs]]></category>
		<category><![CDATA[thumbs function]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=378</guid>
		<description><![CDATA[Function : get_thumb File : functions_videos.php Since : v2.x This function is used to get thumbnails of a video. This function will get all video thumbnails and list them in array, you can single thumbnail using incremental number or all thumbnails in an array or just count how many thumbnails are available. This function has [...]]]></description>
			<content:encoded><![CDATA[<p>Function : get_thumb<br />
File : functions_videos.php<br />
Since : v2.x</p>
<p>This function is used to get thumbnails of a video.</p>
<p>This function will get all video thumbnails and list them in array, you can single thumbnail using incremental number or all thumbnails in an array or just count how many thumbnails are available. This function has few limitations that we will try to cover in upcoming updates.</p>
<h5>Usage</h5>
<p>get_thumb($vdetails,$num=&#8217;default&#8217;,$multi=false,$count=false,$return_full_path=true,$return_big=true,$size=Null);</p>
<h5>Uses</h5>
<ul>
<li>default_thumb();</li>
<li>MyQuery-&gt;get_video_details();</li>
</ul>
<p>paramater marked with * is required</p>
<table width="100%" border="0" cellpadding="3">
<tbody>
<tr>
<td width="25%">Parameter Name</td>
<td><strong>Options</strong></td>
</tr>
<tr>
<td width="25%">$vdetails (Array|Int) *</td>
<td>It can either be an array of video details or just videoid and it will automatically fetch video details</td>
</tr>
<tr>
<td>$num (Int)</td>
<td>incremental number of thumb, default is 1, depends on how many thumbs generation you have set, by default there are 3 thumbs that clipbucket generates so you can set this between 1 to 3.<em><strong>if set to 2 it will return http://website.tld/files/thumbs/filename-2.jpg</strong></em><strong></strong></td>
</tr>
<tr>
<td>$multi (Boolean)</td>
<td>default is false, on setting true it will return a complete list of thumbs in an array.</td>
</tr>
<tr>
<td>$count (Boolean)</td>
<td>default is false, if set to true, this function will only return number of thumbs of videos (int)</td>
</tr>
<tr>
<td>$return_full_path (Boolean)</td>
<td>default is true, it will return thumbail with complete URL i.e <em>http://website.td/files/thumbs/filename-1.jpg</em>, if set to false it will only return <em>filename-1.jpg</em></td>
</tr>
<tr>
<td>$return_big (Boolean)</td>
<td>default is false, if set to true it will return big thumbnail of video, depends on what resolution you have set in configuration default is <em>320&#215;240 and file name will be filename-big-1.jpg</em></td>
</tr>
<tr>
<td>$size (String)</td>
<td>default is null, depends on what size you want, it can be 120&#215;90 or whatever sizes you have set for thumbs generation</td>
</tr>
</tbody>
</table>
<h3>Examples</h3>
<pre class="code php">&lt;?php

	//set your videoid, it can also bevideokey
	$vid = 1236;
	$vdetails = get_video_details($vid);
	$default_thumb = get_thumb($vdetails);
	$second_thumb = get_thumb($vdetails,2);
	$all_thumbs = get_thumb($vdetails,NULL,true);
	$count_thumbs = get_thumb($vdetails,NULL,false,true);

	echo '&lt;pre&gt;';
	var_dump($default_thumb);
	var_dump($second_thumb);
	var_dump($all_thumbs);
	var_dump($count_thumbs);
	echo '&lt;/pre&gt;';
?&amp;gt</pre>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/get_thumb-function/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FFMPEG &#8211; Missing presets</title>
		<link>http://docs.clip-bucket.com/ffmpeg-missing-presets</link>
		<comments>http://docs.clip-bucket.com/ffmpeg-missing-presets#comments</comments>
		<pubDate>Mon, 06 Jun 2011 11:44:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket v2]]></category>
		<category><![CDATA[How-To's]]></category>
		<category><![CDATA[-vpre normal not found]]></category>
		<category><![CDATA[clipbucket 2.5]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[libx264]]></category>
		<category><![CDATA[presets]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=369</guid>
		<description><![CDATA[Hi i saw many users have problem in conversion with libx264 when ffmpeg tries to load a preset &#8216;normal&#8217; and when it is not found, video conversions totally failed, presets comes by default with ffmpeg but sometimes they moved to wrong directory ending with &#8216;preset not found&#8217; error download attached file, it has files ending [...]]]></description>
			<content:encoded><![CDATA[<p>Hi<br />
i saw many users have problem in conversion with libx264 when ffmpeg tries to load a preset &#8216;normal&#8217; and when it is not found, video conversions totally failed, presets comes by default with ffmpeg but sometimes they moved to wrong directory ending with &#8216;preset not found&#8217; error</p>
<p>download attached file, it has files ending .ffpreset, upload them in following directories<br />
- /usr/share/ffmpeg<br />
- /usr/local/share/ffmpeg</p>
<p>once these files are uploaded, try video conversion using &#8216;Youtube like&#8217; preset in &#8216;Uploading and conversion&#8217; settings, it should go smoothly.</p>
<p>http://forums.clip-bucket.com/attachment.php?attachmentid=1418&#038;d=1307348260</p>
<p>(Forums registration is required)</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/ffmpeg-missing-presets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect from without www. to with www</title>
		<link>http://docs.clip-bucket.com/redirect-from-without-www-to-with-www</link>
		<comments>http://docs.clip-bucket.com/redirect-from-without-www-to-with-www#comments</comments>
		<pubDate>Mon, 06 Jun 2011 11:34:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>
		<category><![CDATA[ClipBucket v2]]></category>
		<category><![CDATA[How-To's]]></category>
		<category><![CDATA[2.5]]></category>
		<category><![CDATA[baseurl]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[with www]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=171</guid>
		<description><![CDATA[I have been watching forums and found many users are trying to use website with www, so here is a little guide for how to add www. to your website. Fist open ./includes/common.php and find this code $wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches); if(count($matches)>0) { $baseurl = preg_replace('/:\/\/www\./','://',$baseurl); } replace with /*$wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches); if(count($matches)>0) { $baseurl = [...]]]></description>
			<content:encoded><![CDATA[<p>I have been watching forums and found many users are trying to use website with www, so here is a little guide for how to add www. to your website.</p>
<p>Fist open ./includes/common.php</p>
<p>and find this code</p>
<pre class='code'>
	$wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches);
	if(count($matches)>0)
	{
		$baseurl = preg_replace('/:\/\/www\./','://',$baseurl);
	}
</pre>
<p>replace with</p>
<pre class='code'>
	/*$wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches);
	if(count($matches)>0)
	{
		$baseurl = preg_replace('/:\/\/www\./','://',$baseurl);
	}*/
</pre>
<p>Now clipbucket wont remove www from your baseurl.</p>
<p>you may have to add www. from database, if you are using phpMyAdmin , simply goto cb_configs table and edit row with name &#8216;baseurl&#8217; and add www. accordingly</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/redirect-from-without-www-to-with-www/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multi Server Setup &#8211; Instructions and User Guide</title>
		<link>http://docs.clip-bucket.com/multi-server-setup-instructions-and-user-guide</link>
		<comments>http://docs.clip-bucket.com/multi-server-setup-instructions-and-user-guide#comments</comments>
		<pubDate>Sat, 11 Dec 2010 10:53:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>
		<category><![CDATA[ClipBucket v2]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=337</guid>
		<description><![CDATA[ClipBucket Multiserver let you transfer your video files and encoding process to different servers. Currently we have only 1 model. C = Conversion Server U = Uploading Server S = Streaming Server A = Application Server Note : Every Model has same application server so i will not explain how application server works. Available Models [...]]]></description>
			<content:encoded><![CDATA[<p>ClipBucket Multiserver let you transfer your video files and encoding process to different servers. Currently we have only 1 model.</p>
<p>C = Conversion Server<br />
U = Uploading Server<br />
S = Streaming Server<br />
A = Application Server</p>
<p>Note : Every Model has same application server so i will not explain how application server works.</p>
<p><span style="text-decoration: underline;">Available Models</span></p>
<p><strong>A → UCS</strong> ( In this model, additional server is used for uploading, conversion and also for streaming)</p>
<p>* Files Directly uploaded to UCS<br />
* USC then convert the files, multiple files can be converted at same time and it can be changed.<br />
* UCS , if configured properly, will also produce HQ/HD video and mobile video<br />
* Once conversion is completed, it sends back conversion status back to A server which verifies the details and update video details for streaming.</p>
<p><span style="text-decoration: underline;"><em>We are working on more models</em></span><br />
<strong>A</strong> <strong>→ U </strong><strong>→ CS </strong>(in this model, files will be uploaded to U , it will then transfer files to CS server after verifying its status, then CS will convert and stream videos)<br />
<strong>A </strong><strong>→ US </strong><strong>→ C </strong><strong>→ US </strong>(In this model , files will be uploaded to US server, which will forward files to C server , after conversion it will send back video files to US server for streaming)<br />
<strong>A </strong><strong>→ U </strong><strong>→ C </strong><strong>→ </strong>S (In this model, files will be uploaded to U server, which will forward it to C server, which forward it to S server,  S server can be CDN )</p>
<p><strong>Requirements<a name="requirements"></a></strong></p>
<p>* FFMPEG with libx264 &#8211; Read <a href="http://www.andresmontalban.com/how-to-install-clipbucket-requirements-on-redhat-enterprise-5-server-with-cpanel/" target="_blank">this blog</a> for how to setup proper ffmpeg<br />
* Flvtool2 or Flvtool++ (we recommend flvtool++)<br />
* Mplayer (optional but we recommend it for thumb generation)<br />
* MP4Box (required for Mp4 hq and hd videos)<br />
* PHP 5.2 or greator with CLI and CURL support<br />
* PHPShield (ixed loaders)</p>
<p><strong>Multi Server Setup Guide</strong></p>
<p>* First you need to download multiserver package from your client area and obtain a valid license.<br />
* Extract Zip and you will have to folders &#8220;application server&#8221; and &#8220;conversion server&#8221;</p>
<p><span style="text-decoration: underline;"><em><strong>important note : You Don&#8217;t Have To Install ClipBucket On Additional Servers</strong></em></span></p>
<p><strong>Installing Plug-in on Application Server<a name="installation"></a></strong></p>
<p>* Upload files to clipbucket plugins directory<br />
* Goto admin area &gt; Plugins Manager &gt; Install ClipBucket Multiserver plugin</p>
<div id="attachment_343" class="wp-caption aligncenter" style="width: 310px"><a href="http://docs.clip-bucket.com/wp-content/uploads/2010/12/ftp_plugin_preview.png"><img class="size-medium wp-image-343" title="Plugin Upload Directory" src="http://docs.clip-bucket.com/wp-content/uploads/2010/12/ftp_plugin_preview-300x151.png" alt="" width="300" height="151" /></a><p class="wp-caption-text">Plugin Upload Directory</p></div>
<p>* Once installation is done, goto Multi Server &gt; Configuration and Enter your license key<strong><br />
* </strong>Now your application server is ready<br />
Setting Up UCS server (Model 1)<br />
* in your html directoty, create new directory, server1 or whatever you like, upload all content of &#8216;conversion server/api&#8217; to this folder, this file should work http://yourucs.com/server1/connect.php =&gt; this should say &#8220;ERROR&#8221;</p>
<div id="attachment_351" class="wp-caption aligncenter" style="width: 310px"><a href="http://docs.clip-bucket.com/wp-content/uploads/2010/12/server_upload_preview.png"><img class="size-medium wp-image-351" title="server_upload_preview" src="http://docs.clip-bucket.com/wp-content/uploads/2010/12/server_upload_preview-300x151.png" alt="" width="300" height="151" /></a><p class="wp-caption-text">Server Upload Preview</p></div>
<p>* Now edit config.php and edit following code accordingly</p>
<table border="0" cellspacing="2" cellpadding="2" width="500">
<tbody>
<tr>
<td width="110" valign="top">Static Variable</td>
<td width="376" valign="top">Purpose</td>
</tr>
<tr>
<td valign="top">BASEDIR</td>
<td valign="top">basedirectory of your additional server api, in my case its &#8216;/var/www/html/clipbucket/server1&#8242;</td>
</tr>
<tr>
<td valign="top">BASEURL</td>
<td valign="top">base url of your api , in my case its http://mylocalhost/clipbucket/server1</td>
</tr>
<tr>
<td valign="top">PHP_PATH</td>
<td valign="top">path to your php binaries</td>
</tr>
<tr>
<td valign="top">KEEP_MP4_AS_IS</td>
<td valign="top">if uploaded file is Mp4, convert it or not.</td>
</tr>
<tr>
<td valign="top">MP4Box_BINARY</td>
<td valign="top">path to MP4Box Binaries</td>
</tr>
<tr>
<td valign="top">FLVTool2_BINARY</td>
<td valign="top">path to flvtool2 binaries</td>
</tr>
<tr>
<td valign="top">FLVToolPP_BINARY</td>
<td valign="top">path to flvtool++ binaires, its very fast and lightweight as compare to flvtool2, if you enter its path, it will automatically override flvtool2 role, read more about it <a href="http://mirror.facebook.net/facebook/flvtool++/" target="_blank">here</a></td>
</tr>
<tr>
<td valign="top">MPLAYER_BINARY</td>
<td valign="top">path to mplayer binaries, on large scale Mplayer is highly efficient in generating thumbs, as compare to ffmpeg , generating 1 hour video thumbs can take upto 2 hours, but mplayer can do this within seconds</td>
</tr>
<tr>
<td valign="top">USE_MPLAYER</td>
<td valign="top">Use Mplayer for thumb generation or not</td>
</tr>
<tr>
<td valign="top">FFMPEG_BINARY</td>
<td valign="top">path to ffmpeg binaries</td>
</tr>
<tr>
<td valign="top">ALLOWED_SERVER</td>
<td valign="top">Ip address of your Application Server, its for securit purpose so any other server cannot link with your server</td>
</tr>
<tr>
<td valign="top">SECRET_KEY</td>
<td valign="top">Its for authentication purpose, choose a special secret key, use computer generated key.<a href="http://strongpasswordgenerator.com/" target="_blank"><strong> here is the one.<br />
</strong></a> &#8211; I used abcd1234 for demonstration purpose</td>
</tr>
<tr>
<td valign="top">CALLBACK_URL</td>
<td valign="top">callback URL of your application, where conversion server will send details to, in my case its http://applicationhost/clipbucket/plugins/cb_multi_server/api/call_back.php</td>
</tr>
</tbody>
</table>
<h3>Finally Adding A Server<a name="add_server"></a></h3>
<p>* Now goto your application server admin area, in my case its http://applicationhost/clipbucket/admin_area<br />
* Multi Servers &gt; Manage Servers &gt; Add New Server</p>
<table border="0" cellspacing="2" cellpadding="2" width="500">
<tbody>
<tr>
<td width="110" valign="top">Option</td>
<td width="376" valign="top">Purpose</td>
</tr>
<tr>
<td colspan="2" align="right" valign="top">* are required</td>
</tr>
<tr>
<td valign="top">Server Name*</td>
<td valign="top">Name your additional server, it can anything.</td>
</tr>
<tr>
<td valign="top">Server IP*</td>
<td valign="top">Ip address of your server</td>
</tr>
<tr>
<td valign="top">Server Api Path*</td>
<td valign="top">path to your server api, the same as baseurl we set in config.php , in my case http://mylocalhost/clipbucket/server1</td>
</tr>
<tr>
<td valign="top">Secret Key*</td>
<td valign="top">For Authentication Purpose, already told you before, in my case it was abcd1234</td>
</tr>
<tr>
<td valign="top">Max Usage*</td>
<td valign="top">How much space you allow to upload videos, in Gigabytes</td>
</tr>
<tr>
<td valign="top">Status</td>
<td valign="top">Set your multiserver status, set Active to make it fully functional</td>
</tr>
</tbody>
</table>
<p>ClipBucket multiserver allowed you to mass upload videos on multiservers via FTP, you need to configure it properly</p>
<table border="0" cellspacing="2" cellpadding="2" width="500">
<tbody>
<tr>
<td width="110" valign="top">Option</td>
<td width="376" valign="top">Purpose</td>
</tr>
<tr>
<td valign="top">FTP Host</td>
<td valign="top">Your ftp host for connection</td>
</tr>
<tr>
<td valign="top">FTP User</td>
<td valign="top">Your ftp username</td>
</tr>
<tr>
<td valign="top">FTP Pass</td>
<td valign="top">Your password</td>
</tr>
<tr>
<td valign="top">FTP Port</td>
<td valign="top">mostly its 21 but depends on your configurations</td>
</tr>
<tr>
<td valign="top">FTP Dir</td>
<td valign="top">path to &#8216;temp&#8217; directory of your server api, my server api is placed in /var/www/html/clipbucket/server1 and when i connect to my ftp, it takes me to /html directoty. i have set my FTP dir value to /clipbucket/server1/files/temp</td>
</tr>
</tbody>
</table>
<p>If your details are correct, your server will be added otherwise it will display error.</p>
<p>Now , i am hopeful that your server will be added, if you need more help you can contact client.clip-bucket.com.</p>
<h3>Editing Template<a name="edit_template"></a></h3>
<p>there is still 1 last step left and its simple.</p>
<p>* open global_header.html of your template , by default /styles/cbv2new/layout/global_header.html</p>
<p>find</p>
<pre class="code">flash_url : "{$js}/swfupload/swfupload.swf",
upload_url: "{$baseurl}/actions/file_uploader.php",
</pre>
<p>replace with</p>
<pre class="code">{assign var="get_api_server" value=$multi_server-&gt;get_server_api()}
{if $get_api_server}
    flash_url : "{$get_api_server.server_api_path}/js/swfupload/swfupload.swf",
    upload_url: "{$get_api_server.server_api_path}/actions/file_uploader.php",
{else}
    flash_url : "{$js}/swfupload/swfupload.swf",
    upload_url: "{$baseurl}/actions/file_uploader.php",
{/if}
</pre>
<p>Now your multiserver is ready, upload some videos and see what you get.</p>
<h2>FAQs<a name="faqs"></a></h2>
<p><strong>Q: how to limit the concurrent converting process ?</strong><br />
<strong>A : </strong>you have to do it manually by editing ffmpeg.class on conversion server , file path is &#8216;/includes/classes/conversion/ffmpeg.class.php&#8217; in this , change PROCESSESS_AT_ONCE from 4 to whatever you like</p>
<p><strong>Q: Multiserver keep using same server for uploading and conversion, whats wrong?</strong><br />
A: There is nothing wrong, clipbucket prioritize based on its space left. one with more space will be used often then the one which has low space.</p>
<p>For Troubleshooting or Assistance , Please contact http://client.clip-bucket.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/multi-server-setup-instructions-and-user-guide/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paid Subscription Module Documentation</title>
		<link>http://docs.clip-bucket.com/paid-subscription-module-documentation</link>
		<comments>http://docs.clip-bucket.com/paid-subscription-module-documentation#comments</comments>
		<pubDate>Wed, 01 Dec 2010 14:57:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Official Plugins]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=330</guid>
		<description><![CDATA[Clipbucket paid subscription is a billing option for website owner to earn money by distributing paid content. in this article i will cover following things Plugin requirments Plugin installation Plugin Configuration &#38; License Setup How to manage Packages How to manage subscriptions Troubleshoot Plugin Requirements this plugin requies following things intalled on your webserver * [...]]]></description>
			<content:encoded><![CDATA[<p>Clipbucket paid subscription is a billing option for website owner to earn money by distributing paid content. in this article i will cover following things</p>
<ol>
<li>Plugin requirments</li>
<li>Plugin installation</li>
<li>Plugin Configuration &amp; License Setup</li>
<li>How to manage Packages</li>
<li>How to manage subscriptions</li>
<li>Troubleshoot</li>
</ol>
<h3>Plugin Requirements</h3>
<p>this plugin requies following things intalled on your webserver</p>
<p>* Clipbucket 2.0.9 or greater<br />
* cURL<br />
* PHPShield (ixed loaders) <a href="http://www.phpshield.com/encrypt_php/encrypt_php.php" target="_blank">see here </a><br />
* Human Brain</p>
<h3>Plugin Installation</h3>
<p>* First you have to upload files from upload directory to your clipbucket root directory<br />
* Now goto Clipbucket admin area » Plugins » Plugin manager » Install &#8216;Paid Subscriptiob Plugin&#8217;</p>
<h3>Plugin Configuration &amp; License Setup</h3>
<p>* Now goto ClipBucket admin area » Paid Subscription » Configurations<br />
* Get your license from you <a href="http://client.clip-bucket.com/" target="_blank">client area</a>, enter it in &#8216;license key&#8217; field , save it and then refresh the page<br />
* Set your currency type, your paypal email address, uncheck &#8216;sand box&#8217; if you want to go live</p>
<h3>How to manage package</h3>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/paid-subscription-module-documentation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add new page in Clip bucket</title>
		<link>http://docs.clip-bucket.com/how-to-add-new-page-in-clip-bucket</link>
		<comments>http://docs.clip-bucket.com/how-to-add-new-page-in-clip-bucket#comments</comments>
		<pubDate>Mon, 25 Oct 2010 08:09:13 +0000</pubDate>
		<dc:creator>Fawaz</dc:creator>
				<category><![CDATA[How-To's]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=258</guid>
		<description><![CDATA[In the this How-to, we will learn how can we add a new page in Clip bucket script. First let&#8217;s see basic addition of new page. Create php file First you need to create a php file on root, where index.php is located. Name your php file on your page. For example, if you are [...]]]></description>
			<content:encoded><![CDATA[<p>In the this How-to, we will learn how can we add a new page in Clip bucket script. First let&#8217;s see basic addition of new page.</p>
<h4>Create php file</h4>
<p>First you need to create a php file on root, where index.php is located. Name your php file on your page. For example, if you are making new page for categories, your file name will be &#8216;categories.php&#8217;.</p>
<p>Now open your newly created file and paste following.</p>
<pre class="code">
&lt;?php
define("THIS_PAGE","page_name");<br/>
require 'includes/config.inc.php';<br/>
subtitle('page_name');<br/>
template_files('page_name.html');<br/>
display_it();
?&gt;
</pre>
<p>Change &#8216;page_name&#8217; with your original page name. If you go our above example, page_name will be &#8216;categories&#8217;. Let&#8217;s break down above code one by one.</p>
<pre class="code">define("THIS_PAGE","page_name");</pre>
<p>This line sets the value of THIS_PAGE to name the of your page. This way you can check if your user is on this page or not.</p>
<pre class="code">require 'includes/config.inc.php';</pre>
<p>This line enables us to use all php classes and functions written in Clipbucket.</p>
<pre class="code">subtitle('page_name');</pre>
<p>This line sets the subtitle.</p>
<pre class="code">template_files('page_name.html');</pre>
<p>This line put your template file, which we will create in a moment, in an array.</p>
<pre class="code">display_it();</pre>
<p>This function is used to display your template file.</p>
<h4>Adding HTML File</h4>
<p>Our work in php file is done. Now all you have to is create HTML file. HTML file name should be same as provided in template_files() function. This file will be created in your template layout folder. Write some content in it for testing. To access your page, open following in your browser.</p>
<pre class="code">http://site.com/page_name.php</pre>
<h4>Making SEO URL</h4>
<p>Now are going to make SEO URL for our new page. This requires adding a new line in your .htaccess file located in root folder. Open your .htaccess and add following line anywhere in it.</p>
<pre class="code">RewriteRule ^page_name      page_name.php [nc]</pre>
<p>Now your page is accessible like this : <em>http://site.com/page_name</em></p>
<pre class="tip" style="font-size:11px; text-align:center;">This is asked by </em><a href="http://forums.clip-bucket.com/member.php?14645-sixinco" target="_blank"><em>sixinco</em></a>. <a target="_blank" href="http://forums.clip-bucket.com/showthread.php?6494-How-to-create-a-new-page-with-template">Here is link to topic</a>.</pre>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/how-to-add-new-page-in-clip-bucket/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>{section } Loop</title>
		<link>http://docs.clip-bucket.com/section-loop</link>
		<comments>http://docs.clip-bucket.com/section-loop#comments</comments>
		<pubDate>Fri, 24 Sep 2010 13:06:34 +0000</pubDate>
		<dc:creator>Fawaz</dc:creator>
				<category><![CDATA[Template Functions]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[section]]></category>
		<category><![CDATA[section loop]]></category>
		<category><![CDATA[template functions]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=237</guid>
		<description><![CDATA[{section } is used to loop through an array and display the result one by one. For starters, we did not create {section } function, it is Smarty function, just like while for php. Usage {section name=loop_name loop=$array} {$array[loop_name].column_name} {/section} Let&#8217;s break it down. First {section name=loop_name loop=$array} We give our section a name, this [...]]]></description>
			<content:encoded><![CDATA[<p>{section } is used to loop through an array and display the result one by one. For starters, we did not create {section } function, it is Smarty function, just like <em>while</em> for php.</p>
<h5>Usage</h5>
<pre class="code">
{section name=loop_name loop=$array}
	{$array[loop_name].column_name}
{/section}
</pre>
<p>Let&#8217;s break it down. First</p>
<pre class="code">{section name=loop_name loop=$array}</pre>
<p>We give our section a name, this can be anything you want, like v_list or videoList. Next we provide section the array we going to loop through. Next part is to display the information you want.</p>
<pre class="code">{$array[loop_name].column_name}</pre>
<p>To display any type of information, we need follow a required syntax. First we write down the variable in which array is stored, in our case $array, then loop_name. Third is mysql database column name. Let&#8217;s say we need want to display video title. We will be using following code. <span style="font:bold 11px Tahoma;"><a href="#">List of mysql Database Column Names</a></span>.</p>
<pre class="code">{$video_array[v_list].title}</pre>
<p>Below is list of attributes you can use in {section }</p>
<table width="100%" cellpadding="3" border="0">
<tbody>
<tr>
<td width="25%">Attribute Name</td>
<td style="text-align:center;"><strong>Type</strong></td>
<td style="text-align:center;"><strong>Required</strong></td>
<td style="text-align:center;"><strong>Default</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td width="25%">name</td>
<td style="text-align:center;">string</td>
<td style="text-align:center;">Yes</td>
<td style="text-align:center;">n/a</td>
<td>The name of the section</td>
</tr>
<tr>
<td width="25%">loop</td>
<td style="text-align:center;">mixed</td>
<td style="text-align:center;">Yes</td>
<td style="text-align:center;">n/a</td>
<td>Value to determine the number of loop iterations</td>
</tr>
<tr>
<td width="25%">start</td>
<td style="text-align:center;">integer</td>
<td style="text-align:center;">no</td>
<td style="text-align:center;">0</td>
<td>The index position that the section will begin looping. If the value is negative, the start position is calculated from the end of the array. For example, if there are seven values in the loop array and start is -2, the start index is 5. Invalid values (values outside of the length of the loop array) are automatically truncated to the closest valid value.</td>
</tr>
<tr>
<td width="25%">step</td>
<td style="text-align:center;">integer</td>
<td style="text-align:center;">no</td>
<td style="text-align:center;">1</td>
<td>The step value that will be used to traverse the loop array. For example, step=2 will loop on index 0,2,4, etc. If step is negative, it will step through the array backwards.</td>
</tr>
<tr>
<td width="25%">max</td>
<td style="text-align:center;">integer</td>
<td style="text-align:center;">no</td>
<td style="text-align:center;">n/a</td>
<td>Sets the maximum number of times the section will loop.</td>
</tr>
</tbody>
</table>
<div style="height:10px"></div>
<h4>How to use {sectionelse}</h4>
<p>{sectionelse} is used when provided array is empty. For Example,</p>
<pre class="code">
{section name=loop_name loop=$array}
	{$array[loop_name].column_name}
{sectionelse}
	Do something here if $array is empty
{/section}
</pre>
<p>If {section} finds that variable $array is empty, then {sectionelse} is executed. Think of it as PHP if &amp; else conditions.</p>
<h4>{section} Variables</h4>
<p>A {section} also has its own variables that handle {section} properties. These properties are accessible as:<br />
{$smarty.section.name.property} where “name” is the attribute name. {section} properties are <span id="smarty_vars"><em><a href="#index">index</a>, <a href="#iteration">iteration</a>, <a href="#first">first</a>, <a href="#last">last</a>, <a href="#rownum">rownum</a>, <a href="#total">total</a></em></span>.</p>
<h5 id="index">.index</h5>
<p>index contains the current array index, starting with zero or the start attribute if given. It increments by one or by the step attribute if given.</p>
<pre class="tip" style="font-size:11px">If the step and start properties are not modified, then this works the same as the iteration property, except it starts at zero instead of one.</pre>
<h5>Example</h5>
<pre class="code">
{section name=loop_name loop=$array}
	Index of $array is : {$smarty.section.loop_name.index}&lt;br/&gt;
{/section}
</pre>
<p>Above code will print following,</p>
<pre class="code">
Index of $array is : 0&lt;br/&gt;
Index of $array is : 1&lt;br/&gt;
Index of $array is : 2&lt;br/&gt;
Index of $array is : 3&lt;br/&gt;
</pre>
<div style="float:right; clear:both; margin-bottom:5px"><a href="#smarty_vars" style="font:bold 11px Tahoma;">&uarr; Smarty Variables</a></div>
<h5 id="iteration">.iteration</h5>
<p>iteration contains the current loop iteration and starts at one.</p>
<pre class="tip" style="font-size:11px">This is not affected by the {section} properties start, step and max, unlike the index property. iteration also starts with one instead of zero unlike index. rownum is an alias to iteration, they are identical.</pre>
<h5>Example</h5>
<pre class="code">
{section name=loop_name loop=$array}
	$array Iteration is : {$smarty.section.loop_name.iteration}&lt;br/&gt;
{/section}
</pre>
<p>This will print following:</p>
<pre class="code">
$array Iteration is : 1&lt;br/&gt;
$array Iteration is : 2&lt;br/&gt;
$array Iteration is : 3&lt;br/&gt;
$array Iteration is : 4&lt;br/&gt;
</pre>
<div style="float:right; clear:both; margin-bottom:5px"><a href="#smarty_vars" style="font:bold 11px Tahoma;">&uarr; Smarty Variables</a></div>
<h5 id="first">.first</h5>
<p>first is set to TRUE if the current {section} iteration is the initial one.</p>
<h5 id="last">.last</h5>
<p>last is set to TRUE if the current {section} iteration is the final one.</p>
<h5>Examples of both .first and .last</h5>
<pre class="code">
{section name=loop_name loop=$array}
    {if $smarty.section.loop_name.first}(This is First) {/if}
    {if $smarty.section.loop_name.last}(This is Last) {/if}
    $array ID is : {$array[loop_name].id}&lt;br/&gt;
{/section}
</pre>
<p>Above will print following:</p>
<pre class="code">
(This is First) $array ID is : 25&lt;br/&gt;
$array ID is : 26&lt;br/&gt;
$array ID is : 27&lt;br/&gt;
(This is Last) $array ID is : 28&lt;br/&gt;
</pre>
<div style="float:right; clear:both; margin-bottom:5px"><a href="#smarty_vars" style="font:bold 11px Tahoma;">&uarr; Smarty Variables</a></div>
<h5 id="rownum">.rownum</h5>
<p>rownum contains the current loop iteration, starting with one. It is an alias to iteration, they work identically.</p>
<h5 id="total">.total</h5>
<p>total contains the number of iterations that this {section} will loop. This can be used inside or after a {section}.</p>
<h5>Example</h5>
<pre class="code">
{section name=loop_name loop=$array}
	loop id is: {$array[loop_name].id}&lt;br/&gt;
{/section}
Number of iterations: {$smarty.section.loop_name.total}
</pre>
<p>Like mentioned earlier, you can use .total outside {section}. Above code will print following</p>
<pre class="code">
loop id is: 25 &lt;br/&gt;
loop id is: 26 &lt;br/&gt;
loop id is: 27 &lt;br/&gt;
loop id is: 28 &lt;br/&gt;
Number of iteration: 4
</pre>
<div style="float:right; clear:both; margin-bottom:5px"><a href="#smarty_vars" style="font:bold 11px Tahoma;">&uarr; Smarty Variables</a></div>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/section-loop/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>{FlashPlayer } Function</title>
		<link>http://docs.clip-bucket.com/flashplayer-function</link>
		<comments>http://docs.clip-bucket.com/flashplayer-function#comments</comments>
		<pubDate>Wed, 22 Sep 2010 06:27:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Template Functions]]></category>
		<category><![CDATA[designers]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[template functions]]></category>
		<category><![CDATA[video player]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=233</guid>
		<description><![CDATA[{FlashPlayer } function is used to create flash video player. Usage {FlashPlayer parameters} It can use following parameters Parameter Name Options vdetails (Required) Video Array height Set the height of player. This will override the setting found in Admin Area. player_div Name of tag ID which will wrap player. If left empty &#8216;videoPlayer&#8216; is used [...]]]></description>
			<content:encoded><![CDATA[<p>{FlashPlayer } function is used to create flash video player.</p>
<h5>Usage</h5>
<pre class="code">{FlashPlayer <em>parameters</em>}</pre>
<p>It can use following parameters</p>
<table cellpadding="3" border="0" width="100%">
<tbody>
<tr>
<td width="25%">Parameter Name</td>
<td><strong>Options</strong></td>
</tr>
<tr>
<td width="25%">vdetails (Required)</td>
<td>Video Array</td>
</tr>
<tr>
<tr>
<td width="25%">height</td>
<td>Set the height of player. This will override the setting found in Admin Area.</td>
</tr>
<tr>
<td width="25%">player_div</td>
<td>Name of tag ID which will wrap player. If left empty &#8216;<strong>videoPlayer</strong>&#8216; is used</td>
</tr>
<tr>
<td width="25%">width</td>
<td>Set the width of player. This will override the setting found in Admin Area.</td>
</tr>
</tbody>
</table>
<div style="height:10px;"></div>
<h4>Examples</h4>
<div style="height:10px;"></div>
<h5>Example 1</h5>
<pre class="code">{FlashPlayer vdetails=$video_array}</pre>
<p>The above would simple display video player with all default settings.</p>
<div style="height:10px;"></div>
<h5>Example 2</h5>
<pre class="code">{FlashPlayer vdetails=$video_array height='300' width='300'}</pre>
<p>This code will display player with your custom height &amp; width.</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/flashplayer-function/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>{show_rating } Function</title>
		<link>http://docs.clip-bucket.com/show_rating-function</link>
		<comments>http://docs.clip-bucket.com/show_rating-function#comments</comments>
		<pubDate>Tue, 21 Sep 2010 12:13:02 +0000</pubDate>
		<dc:creator>Fawaz</dc:creator>
				<category><![CDATA[Template Functions]]></category>
		<category><![CDATA[current rating]]></category>
		<category><![CDATA[designers]]></category>
		<category><![CDATA[template functions]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=224</guid>
		<description><![CDATA[{show_rating } function is used to display current rating of video. Usage {show_rating parameters} It uses following parameters Parameter Name Details class Your CSS classname. If left empty &#8216;rating_stars&#8217; will be used. rating Current rating of object ratings Total rating received by object total Total Rating. It should be set to &#8217;10&#8242;]]></description>
			<content:encoded><![CDATA[<p>{show_rating } function is used to display current rating of video.</p>
<h5>Usage</h5>
<pre class="code">{show_rating <em>parameters</em>}</pre>
<p>It uses following parameters</p>
<div style="height:10px;"></div>
<table width="100%" border="0" cellpadding="3">
<tbody>
<tr>
<td width="25%">Parameter Name</td>
<td><strong>Details</strong></td>
</tr>
<tr>
<td width="25%">class</td>
<td>Your CSS classname. If left empty &#8216;rating_stars&#8217; will be used.</td>
</tr>
<tr>
<td width="25%">rating</td>
<td>Current rating of object</td>
</tr>
<tr>
<td width="25%">ratings</td>
<td>Total rating received by object</td>
</tr>
<tr>
<td width="25%">total</td>
<td>Total Rating. It should be set to &#8217;10&#8242;</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/show_rating-function/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

