CaRP Evolution Documentation
CaRP Evolution Documentation
twitter youtube linkedin google-plus
CaRP Evolution Box
Web This Site

CaRP: Caching RSS Parser - Documentation


CaRP Interactive FAQ
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates

YouTube

YouTube is a plugin bundled with CaRP Evolution. Use it to display videos from YouTube. Since YouTube no longer supports RSS output from its API, generting a YouTube feed requires a third-party tool like Grouper Evolution and its YouTube plugin.
Add-on Script:
YesTube is an add-on script that uses CaRP Evolution and the YouTube plugin to create custom branded YouTube video players. Click to see YesTube in action.

Example Feed:
Here's an example of using the YouTube plugin (not YesTube) to display videos about "internet marketing":

A FORMA MAIS RÁPIDA PARA TER RENDA EXTRA NA INTERNET 02 #dinheiroextra #dinhe...
4 Dec 2024 at 1:38pm
Learn how to work with brands like nike, adobe and xerox by being your best self
4 Dec 2024 at 1:30pm
Internet marketing websites inaccessible with braille and speech. ?
4 Dec 2024 at 1:23pm
 
Installation:
To install YouTube, put youtube.php into the "plugins" folder inside the folder containing carp.php. (If no plugins folder exists, create one.)
 
Use:
To tell CaRP Evolution to use YouTube, first, enter the following command into your webpage after "require_once '/path/to/carp.php';":
 
     CarpLoadPlugin('youtube.php');
Then use the CarpConf function to change your iorder configuration setting to something containing "youtube" -- for example:
 
     CarpConf('iorder', 'link,youtube');
 
Configuration:
The YouTube plugin has the following settings:

To set the above settings, use code like this:

$youtubeconf['width']=400;
$youtubeconf['height']=300;


Example Code:
Here's an example of the full code for a simple webpage that uses this plugin:

<html>
<head>
<title>YouTube Videos Tagged "geckotribe"</title>
</head>
<body>
<?php
require_once '/YOUR/PATH/TO/carp/carp.php';
CarpLoadPlugin('youtube.php');
CarpConf('iorder','title,youtube');
CarpConf('maxitems',3);
$youtubeconf['width']=300;
$youtubeconf['height']=250;
$youtubeconf['language']='de';
$youtubeconf['after']='<hr>';
$youtubeconf['show-border']=1;
$youtubeconf['show-related']=0;
$youtubeconf['color-1']='000066';
$youtubeconf['color-2']='006633';
CarpCacheShow('http://example.com/youtube2rss.php?query=internet+marketing');
?>
</body>
</html>