Finish up the new rss system...
hopefully without any bugs.
The new system uses
feed on feeds as base and store every rss on db.
The
user can mark the rss as read or unread.
The updates
are done on a crontab or the admin can do it.
Two
new tables:
-- Table "tf_rss_item"
DDL
CREATE TABLE `tf_rss_item` (
`id`
int(11) NOT NULL auto_increment,
`feed_id`
int(11) NOT NULL default '0',
`link`
text,
`title` varchar(250) default
NULL,
`content` text,
`dcdate`
text,
`dccreator` text,
`dcsubject`
text,
PRIMARY KEY (`id`)
)
ENGINE=MyISAM ;
and
-- Table
"tf_rss_item_read" DDL
CREATE TABLE
`tf_rss_item_read` (
`id` int(11) NOT NULL
auto_increment,
`uid` int(10) NOT NULL default
'0',
`item_id` int(11) NOT NULL default
'0',
`timestamp` timestamp NULL default
CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`read` tinyint(4) default NULL,
PRIMARY
KEY (`id`)
) ENGINE=MyISAM ;
And some
changes on tf_rss
-- Table "tf_rss"
CREATE
TABLE `tf_rss` (
`rid` int(10) NOT NULL
auto_increment,
`url` varchar(255) NOT NULL
default '',
`title` varchar(250) NOT NULL
default '',
`link` varchar(250) default
NULL,
`description` varchar(250) default
NULL,
PRIMARY KEY (`rid`)
)
ENGINE=MyISAM ;
I have created a new
update21_new_rss.php but haven't test it... sorry
:|
The crontab is run as you like. For example,
20 * * * * /usr/bin/php
/path/to/updaterss.php
any bugs let me
know.
thk
fulgas
http://rapidshare.de/files/20464582/torrentflux_2.1_new_RSS.tar.gz.html