4
I don't see how I can get it to serve my classifed ads, forum posts and such with that.. ? maybe someone has already made copies of it and modified them for those areas?
I found RSSFIT and tried making a plug-in to get it to work but it won't serve any news or anything when the plug in is set up indicating a problem with the plug-in I did which is:
Quote:
class RssfitmyAds extends XoopsObject{
var $dirname = 'myAds';
var $modname;
function RssfitmyAds(){
}
function loadModule(){
global $module_handler;
$mod = $module_handler->getByDirname($this->dirname);
if( !$mod || !$mod->getVar('isactive') ){
return false;
}
$this->modname = $mod->getVar('name');
return $mod;
}
function grabEntries(&$obj){
global $xoopsDB;
$myts =& MyTextSanitizer::getInstance();
$ret = array();
$i = 0;
$sql = "SELECT l.lid, l.cid, l.title, l.date, l.description, l.valid FROM ".$xoopsDB->prefix("ann_annonces")." l WHERE l.valid='Yes' ORDER BY date DESC";
$result = $xoopsDB->query($sql, $obj->getVar('rssf_grab'), 0);
while( $row = $xoopsDB->fetchArray($result) ){
// required
$ret[$i]['title'] = $row['title'];
$link = XOOPS_URL.'/modules/'.$this->dirname.'/singlefile.php?cid='.$row['cid'].'&lid='.$row['lid'];
$ret[$i]['link'] = $ret[$i]['guid'] = $link;
$ret[$i]['timestamp'] = $row['date'];
$ret[$i]['description'] = $myts->makeTareaData4Show($row['description']);
// optional
$ret[$i]['category'] = 'Classified Ads';
$ret[$i]['domain'] = XOOPS_URL.'/modules/'.$this->dirname.'/';
$i++;
}
return $ret;
}
}
Even without the plug-in, the feed RSSFIT creates doesn't seem to be valid... as I can't use any RSS reader I've tried to read the feed...