Posts by timmylogue

321 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue says
With the Class file I can easliy call things I need for example, the Youtube video ID
$videoID = $youtube->watch_id($video_url);

So i would just use: $videoID

Here is what the php Class is outputting on the page. (image shown below). \\

I just now need php to generate an XML and add those titles and ID’s inside the XML structure I showed you.

I need that structure because I have a flash XML video player that will read those videos, but it has to be in that XML structure for it to understand :)

Tim

321 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue says

Thanks for the reply, I’m using http://codecanyon.net/item/youtube-channel-video-grabber/2658178 It’s a nice class file and I can pretty much get anything from the YouTube API easily…. but! the only issue i’m having is getting PHP to just output an xml structure I need it to do. Which is this:

<playlist title="">
        <item title="" id=""/>
</playlist>

... and after the XML structure is correct to just place the YouTube videos (titles and YouTube ID).

So if that class file outputs 10 youtube videos on the page because that’s what the user has uploaded, I need it to show like this inside the new XML file:

<playlist title="">
     <item title="Video Title 1" id="1vdW3452"/>
     <item title="Video Title 2" id="dSw3435"/>
     <item title="Video Title 3" id="SSDQIRsd"/>
     <item title="Video Title 4" id="SsUq230qqQ"/>
     <item title="Video Title 5" id="MmIy02eEr"/>
     <item title="Video Title 6" id="1vdW3452"/>
     <item title="Video Title 7" id="dSw3435"/>
     <item title="Video Title 8" id="SSDQIRsd"/>
     <item title="Video Title 9" id="SsUq230qqQ"/>
     <item title="Video Title 10" id="MmIy02eEr"/>
</playlist>

I know I probably keep asking the same thing, but It’s literally just the stupidest and probably the simplest issue by just having php getting to output the XML correctly and getting all YouTube videos (titles and ID’s) into the XML. All of them and not just one.

It’s giving me a HUGE headache.

Thanks!

321 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue says

OK… i thought I had it working, but I don’t . This is giving me a headache. How much would you charged to knock this out for me?

Anyone else…

321 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue says

haha I pretty much got it like 30 mins before you posted that, but I will save your code snippet for further coding.

Thanks for your help!

Tim

321 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue says

I agree haha Thanks buddy.

321 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue says

Hey, thanks for the speedy reply.

I always try to keep it simple by using SimpleXML. I just can’t figure out attributes with SimpleXML for some reason. Trial and error! Thats how I roll! haha

I’ll get it one way or another, if any other feedback you can provide me, that would be awesome :)

Thanks again, Timothy

321 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue says

Hey guys, i’m trying to put together a script that will display a YouTube user’s uploaded videos. I have the script working, but what I need it to do now is generate an xml based off what the php spits out.

The php script below shows the uploaded videos.

PHP code: http://pastebin.com/HWBNyyTz

Here is the XML structure

<playlist title=" ">
            <item title="" id=""/>
</playlist>

So…. i’m trying to get the YouTube ID of the videos inside the “id” attribute value and of course get the YouTube title inside the “title” attribute value.

and also, of course the more video’s the user have uploaded the more the xml would be, For example- if they have 10 videos uploaded it would show like this:

<playlist title=" ">
    <item title="" id=""/>
    <item title="" id=""/>
    <item title="" id=""/>
    <item title="" id=""/>
    <item title="" id=""/>
    <item title="" id=""/>
    <item title="" id=""/>
    <item title="" id=""/>
    <item title="" id=""/>
    <item title="" id=""/>
</playlist>

Any help would be greatly appreciated, Thanks.

Timothy

321 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue says

I’m bored… So I’ll be happy to figure this out for you ha. Shoot me an email if you want.

321 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue says

haha it’s all good. If you want to shoot me an email here , I can help you inside WordPress. If not I would just contact Denoizzed

321 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue says

I looked at your source-code. Now, I’m not sure how you are editing the .html or .php files, or if you using the WordPress version King Size. Anyways…

If your not using WordPress version you can just replace your kiddos page with this code: http://pastie.org/pastes/5685765/text?key=rtjkmkmm3zevltygpwfw2q

Easy fix, if you are just using straight up html.

Tim

by
by
by
by
by
by