How To Install YouTube Grabber
From ClipBucket Wiki
Contents |
Preface
This tutorial will explain how to install the YouTube Grabber for ClipBucket versions below 1.7.x
- Related forum thread: Youtube Grabber Installation Instruction
Prerequisites
- Ensure you have appropriate phpShield loaders installed & functional
- Upload all the grabber files to your server
SQL Queries
ALTER TABLE `video` ADD `website` VARCHAR( 30 ) NULL AFTER `status` ,
ADD `url` TEXT NULL AFTER `website` ,
ADD `embed_code` TEXT NULL AFTER `url` ,
ADD `flv_file_url` TEXT NULL AFTER `embed_code` ,
ADD `unique_key` VARCHAR( 32 ) NULL AFTER `flv_file_url` ;
INSERT INTO `config` ( `configid` , `name` , `value` )
VALUES (
'444', 'grabber_user_data', 'no'
), (
'443', 'grabber_user_enable', 'yes'
), (
'442', 'grabber_type', 'embedding'
);
INSERT INTO `modules` (`module_id`, `module_name`, `module_file`, `active`) VALUES
('', 'CbGrabber', 'CbGrabber.instructions.php', 'yes');
File / Template Edits
find in /includes/define_php_links.php
define(edit_group_link,'/manage/group/edit/');
add below:
define(external_upload_link,'/external_upload.php');
find:
define(edit_group_link,'/edit_group.php?url=');
add below:
define(external_upload_link,'/external_upload.php');
find in /includes/defined_links.php
Assign('delete_group_link',BASEURL.'/group/delete/');
add below:
Assign('external_upload_link',BASEURL.'/external_upload.php');
find:
Assign('delete_group_link',BASEURL.'/delete_group.php?url=');
add below:
Assign('external_upload_link',BASEURL.'/external_upload.php');
find in /watch_video.php
Assign("videos",$videos);
add above:
$flv_file = BASEDIR.'/files/videos/'.$video_flv;
if(file_exists($flv_file) && filesize($flv_file) > 0){
$videos['file_exists'] = 'yes';
}
find in /styles/{your_selected_template}/layout/watch_video.html
<div id="videoplayer">
add above:
{if $videos.file_exists == yes}
find:
//-->
</script>
add below:
{else}
<embed src="{$videos.embed_code}" type="application/x-shockwave-flash" allowfullscreen="true" width="450" height="378"></embed>
{/if}
find in /styles/{your_selected_template}/layout/upload.html
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
replace with:
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
{if $CB_Grabber == yes && $CBG_AllowUser == yes}
<tr>
<td align="left">
<div id="link_button">
<ul>
<a href="{$external_upload_link}">YouTube Copy</a>
</ul>
</div>
</td>
<td> </td>
</tr>
{/if}
<tr>
find in /admin_area/styles/clipbucketblue/layout/left_menu.html
<div class="subItem"><a href="{$baseurl}/{$admindir}/email_settings.php">Email Settings</a></div>
add below:
{if $CB_Grabber == yes}
<div class="subItem"><a href="grabber_settings.php">Grabber Settings</a></div>
{/if}
Post Install
- Browse to /admin_area/main.php, you will see "Grabber Settings" on the left side
