Posts by timmylogue

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

Fixed the issue, I fixed it with a proxy script.

 

<?php

$post_data = $HTTP_RAW_POST_DATA;

$header[] = "Content-type: text/xml";
$header[] = "Content-length: ".strlen($post_data);

$ch = curl_init( $_GET['url'] ); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);

if ( strlen($post_data)>0 ){
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
}

$response = curl_exec($ch);     
$response_headers = curl_getinfo($ch);     

if (curl_errno($ch)) {
    print curl_error($ch);
} else {
    curl_close($ch);
    header( 'Content-type: ' . $response_headers['content-type']);
    print $response;
}

?>

TNL - I got your email, pretty busy though, but if you send me your info to login – I’m sure I can get to it. I’ll wait for your next email.

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

I’ve created an ActionScript 2 weather widget a year or two ago. I’ve been using weatherunderground.com API. As of today, I noticed its not loading in the data anymore.

So I opened up the project file and started to look at the code. I ran the project locally and the weather data is loaded in just fine. What could of happened? Why is it loading just fine locally and not on a server? I’ve tested this on multiple severs. Still nothing…

Why would it 2 years later decide to break?

Tim

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

I’ve been using this tool a lot lately. A color picker that doesn’t need photoshop ;)

Thought I would share with you all.

http://color.hailpixel.com
328 posts
  • Has been part of the Envato Community for over 8 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue
says

Yes!!!!!

Worked like a charm! So awesome, thanks dude. Hands down probably the best help I’ve ever gotten on a forum.

You rock!

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

Yup one sec! :)

Ok, I just sent you an email.

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

Darn, I thought that was gonna work. It’s not creating the

$xml->playlist[0]->addChild("item");
$xml->playlist[0]->item[$i-1]->addAttribute("title", $video->title);
$xml->playlist[0]->item[$i-1]->addAttribute("id", $id);

It’s just outputting this.

<?xml version="1.0" encoding="ISO-8859-1"?>
<root>
          <playlist title="KungFu-themes"/> 
</root>

I appreciate all your help so far. You rock.

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

Darn, I thought that was gonna work. It’s not creating the

$xml->playlist[0]->addChild("item");
$xml->playlist[0]->item[$i-1]->addAttribute("title", $video->title);
$xml->playlist[0]->item[$i-1]->addAttribute("id", $id);

It’s just outputting this.

<?xml version="1.0" encoding="ISO-8859-1"?>
<root>
          <playlist title="KungFu-themes"/> 
</root>

I appreciate all your help so far. You rock.

328 posts
  • Has been part of the Envato Community for over 8 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

328 posts
  • Has been part of the Envato Community for over 8 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!

328 posts
  • Has been part of the Envato Community for over 8 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…

by
by
by
by
by
by