ceasar supports this item


This author's response time can be up to 1 business day.

Popular questions for this item

Mobile styles

This is not a responsive player but here a small hack to make ready for mobile view. This is the first example in the index.php so adjust to you own needs.

/* target small screens (mobile devices or small desktop windows)*/
@media only screen and (max-width: 480px)
    .yt_holder, .videoyou {
        width: 300px!important;
        min-width: 100px;
    #ytvideoiframe, #ytvideo {
        width: 100%!important;
    .youtitle {
    .ytvideoright {
    .yt_holder .youplayer ul.videoyou {
    .yt_holder .youplayer ul.videoyou li a {
        padding-top: 1px!important;
        padding-left: 4px!important;
    .yt_holder .youplayer ul.videoyou li {
        margin: 2px 0 0 0;
    .yt_holder .youplayer ul.videoyou img {
    .yt_holder .youplayer .time {
    .yt_holder .youplayer ul.videoyou li p {
    .videoytright {
    #ytvideo4 {
        width: 100%!important;
    .ytfooter {


How to set for example a username or playlist

$video = new youtubelist('username'); $video->set_username('Here the username);

and a playlist

$video = new youtubelist('playlist'); $video->set_playlist('Here the username);

How can I retreive more then 50 video’s

That is really simple

Just copy and paste the complete $video = new youtubelist(‘keywords’); (till the end of the foreach)

and set the following parameter to 51


Now there a 100 video’s

Installation in wordpress

First download thepluginIncludeme http://wordpress.org/extend/plugins/include-me/

and activate

As an example unzip all the files to a new map called youtube

Upload this map to the root of your wordpress installation

Open youtube/index.php and change the path settings to the css and js files Example: ect.

script type="text/javascript" src="youtube/js/jquery.youtubeplaylist-min.js"></script>

Also change <div class="youtubeplayer"> to <div id="youtubeplayer"> Change the cache path to $video->set_xmlpath(‘youtube/cache/’); Open youtube/css/youtubeplaylist.css and put for all the css values #youtubeplayer Now go to a post or page and insert the following code <code> [includeme file="youtube/index.php"]</code> That's it folks :-)</div></div>

Clear the cache files


For myself I use an cache cleaner since I use the search option in my demo

Here the snippet

// Clear the cache of old xml searches
$xmlcaching   = "./cache/";
function cacheCleaner() {
    global $xmlcaching;
    $cacheLife = 86400; // Empty after one day 86400 (604800 1 week)
    $path = $xmlcaching;
    $handle = opendir($path);
    while ($file = readdir($handle)) {
      if ($file != '.' AND $file != '..' AND preg_match('/(.*)\.xml/i',$file)) {
        if (time()-fileatime($path.$file)>$cacheLife)

You can place this snippet in your index.php

For the search option and other languages like Hebrew for example.

Find in the index.php

$video->set_keywords(htmlspecialchars($_GET[‘q’], ENT_QUOTES));

and change to


I don’t see images and clicking brings me to the youtube website

Then you have a js error on your page. In chrome right click – check element and select the console tab to see which js errors there are In firefox – download firebug to inspect your website for js errors

Random order of your playlist

Open index.php and find

foreach ($video->get_videos() as $yKey => $yValue) {

change to

$new_array = $video->get_videos();
foreach ($new_array as $yKey => $yValue) {

Title and description are in uppercase

This is by design but if you want to change it

open the php class and find line 372

$temparray['description'] = $this->mbencoding(ucfirst(strtolower($this->truncate($xpath->query($query, $dat)->item(0)->nodeValue,'',' ..',$this->descriptionlength)))); 

just remove the ucfirst(strtolower(

$temparray['description'] = $this->mbencoding($this->truncate($xpath->query($query, $dat)->item(0)->nodeValue,'',' ..',$this->descriptionlength));

Show more

Contact the author

This author provides limited support for this item through this item's comments.

Item support includes:

  • Availability of the author to answer questions
  • Answering technical questions about item’s features
  • Assistance with reported bugs and issues
  • Help with included 3rd party assets

However, item support does not include:

  • Customization services
  • Installation services

View the item support policy