6
I like to go more advanced to use multiple feeds
http://simplepie.org/wiki/tutorial/sort_multiple_feeds_by_time_and_date
change
$feed->set_feed_url('http://news.yahoo.com/rss');
to
$feed->set_feed_url(array(
'http://digg.com/rss/index.xml',
'http://feeds.tuaw.com/weblogsinc/tuaw',
'http://feeds.uneasysilence.com/uneasysilence/blog'
));
i tested it and worked fine
so I make table in database and insert some data
module sql file#
CREATE TABLE myfeeds_links (
lid int(11) unsigned NOT NULL auto_increment,
title varchar(100) NOT NULL default '',
url varchar(250) NOT NULL default '',
logourl varchar(60) NOT NULL default '',
status tinyint(2) NOT NULL default '0',
PRIMARY KEY (lid),
KEY status (status),
KEY title (title(40))
) ENGINE=MyISAM;
in my module index.php after that you see before
after line
require_once('class/simplepie/autoloader.php');
I add
$query = $xoopsDB->query(' SELECT url FROM ' . $xoopsDB->prefix('myfeeds_links' . ' where status="1" '));
while($myrow = $xoopsDB->fetchArray($query) )
{
$url = $myrow['url'];
echo $url.'<br>';
}
The output is same links I inserted:
Quote:
http://digg.com/rss/index.xml
http://feeds.tuaw.com/weblogsinc/tuaw
http://feeds.uneasysilence.com/uneasysilence/blog
I want to not to show the output but to move it to:
$feed->set_feed_url(array($url));
or
$feed->set_feed_url($url);
but not to work at all
thanks in advanced