Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8195571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:10:55+00:00 2026-06-07T05:10:55+00:00

Hi I have created a YouTube video browser from a playlist, you can view

  • 0

Hi I have created a YouTube video browser from a playlist, you can view the current progress on this page. A few things I need help with though!

  1. The thumbnails aren’t showing, videos are there (hover, you’ll see the titles).
  2. How can I order the videos by most recent first? It’s currently doing the opposite.

Help would be greatly apreciated! Visual of what it’s going to look like in the end: i.stack.imgur.com/xKpVg.png

The code currently is:

<style type="text/css">
#videos{background:gray;width:299px}
#videos a:hover
</style>

<div id="videos">
<?php get_playlists(); ?>
</div>

<?php

function get_playlists(){
$data = file_get_contents("http://gdata.youtube.com/feeds/api/playlists/C82EBDAC0429B6A2?max-results=12");
$xml = simplexml_load_string($data);

foreach($xml->entry as $playlist){
    $media = $playlist->children('http://search.yahoo.com/mrss/');
    $attrs = $media->group->thumbnail[0]->attributes();
    $thumb = $attrs['url'];
    $attrs = $media->group->player->attributes();
    $video = $attrs['url'];
    $title = $media->group->title;

$url = $video;
parse_str( parse_url( $url, PHP_URL_QUERY ), $my_array_of_vars );
$vid_Id = $my_array_of_vars['v'];

$thumbnail .= '<div style="float:left; cursor:pointer;">
<a href="/tutorials/view_tutorial.php?id=' . $vid_Id . '">
<img src="' .$thumb . '" title="' . $title . '" width="74" height="42"
</a>
</div>';

    }

    print $thumbnail;
}

?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:10:57+00:00Added an answer on June 7, 2026 at 5:10 am

    Your image img tag is missing a = on the src attribute.

    <img src"' .$thumb . '" title="' . $title . '" width="74" height="42"
    

    Should be

    <img src="' .$thumb . '" title="' . $title . '" width="74" height="42"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created code for download video from Youtube, but this code doesn't work with
I have a scenario where users can upload an image, OR a video (from
Hi i have created the following ckeditor plugin to insert a youtube video: (function()
I'm trying to learn C# from some YouTube videos, but I have a few
I've created drop down menus using CSS and I have a YouTube video placed
I have an IFrame embedding a youtube video. I want to create a textbox
I have created 3 classes as following Ext.mine.TextParent - Inherting from Textfield Ext.mine.child.TextChildA -
I have created a custom post type named People. I have created a page
I have a video playing on my page. I want to show and hide
I am trying to create a table view similar to the YouTube video uploader

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.