Help - Make a RSS Feed Reader for Blogger....

Post here is you are having problems with any of the tutorials.
Post Reply
Chathula
Posts: 2
Joined: Fri Jun 22, 2012 1:30 pm

Help - Make a RSS Feed Reader for Blogger....

Post by Chathula »

Hello i wanta big help to make a rss Feed reader to blogger...not only to my blog..i want to add more blogs to it...

i make a RSS reader using Better php TUT..it works well..but if i add my feed url...it shows...



Fatal error: Call to a member function attributes() on a non-object in C:\xampp\htdocs\rss\core\inc\rssr.inc.php on line 14


i want to fix that or make a myown blogger reader...

as a example can anyone tell me how to make a blog reader like this...this is not in english..but in our countrey language(sri lanka) + english...



Please help me this is emergency...

this is the my error page PHP codes...

[syntax=php]<?php

function fetch_news () {
$data = file_get_contents('http://feeds.feedburner.com/CheaTax');
$data = simplexml_load_string($data);

$articles = array();

foreach ($data->channel->item as $item) {
$media = $item->children('http://search.yahoo.com/mrss/');

$image = array();

foreach ($media->thumbnail[0]->attributes() as $key => $value) {
$image[$key] = (string)$value;
}

$articles[] = array(
'title' => (string)$item->title,
'description' => (string)$item->description,
'link' => (string)$item->link,
'date' => (string)$item->pubDate,
'image' => $image,

);
}


return $articles;
}

?>[/syntax]

Thanx for All..help me dears.....
Last edited by jacek on Fri Jun 22, 2012 3:25 pm, edited 1 time in total.
Reason: Removed demand for fast replies.
User avatar
Helx
Posts: 350
Joined: Thu May 17, 2012 6:45 am
Location: Auckland, New Zealand

Re: Help - Make a RSS Feed Reader for Blogger....

Post by Helx »

Look at the error, then the line its on...
And maybe search it on Google / PHP.net
(I have no idea how to help because I've not worked with RSS)
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: Help - Make a RSS Feed Reader for Blogger....

Post by Temor »

I initially had no idea what was wrong but after reading a couple of other topics addressing the same issue I figured out that it is because [syntax=php]$media->thumbnail[0][/syntax] is empty, i.e there is no thumbnail.
Could you do a [syntax=php]print_r($media->thumbnail[0]);[/syntax]
and see what happens?
Chathula
Posts: 2
Joined: Fri Jun 22, 2012 1:30 pm

Re: Help - Make a RSS Feed Reader for Blogger....

Post by Chathula »

I Fixed this error..it is a error of rss version...i fixed it..

i want to know can anyone give a source code for use many feed urls with publish date update...

i think it wants mysql too...can anyone help me....
Post Reply