10376 Posts in 2191 Topics by 1708 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1550 Views |
-
Youtube Module / Widget not working

13 August 2009 at 9:56pm
Hi,
I have installed the youtube module, but it doesnt display me any videos. I have tracked the problem down to the line$results->push(new ArrayData($data));
in YoutubeService / getVideosFeed()! $data looks ok to me, also the transformation via new ArrayData.... seems to work, but result stays empty!
Any fast help is appreciated! -
Re: Youtube Module / Widget not working

14 August 2009 at 3:48am
Could figure it out now. The spelling was somehow a little bit different in YoutubeWidget.php than in YoutubeService.php!
Change YoutubeWidget.php toforeach($videos as $video) {
$videoId = array_pop(explode("/", $video->id));
$output->push(new ArrayData(array(
"Title" => $video->Title,
"Link" => $video->PlayerURL,
"Image" => $video->SmallThumbnail->URL,
"Duration" => $video->RuntimeMin
)));
}and you have it working again!
| 1550 Views | ||
|
Page:
1
|
Go to Top |

