1
ChadK
RSS Feed of my site?
  • 2004/7/12 15:45

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Ok, I wanted to submit my site to Feedster.com but I don't know how to get my site to create rss feeds.

I've seen and installed the Lycos whatever feed program (fixed version) https://xoops.org/modules/mydownloads/singlefile.php?cid=24&lid=661

That didn't do anything. It looks like, from the file, I'd have to create the rss files manually or something? The files in the cache dir there were just empty files with sample links.

Anyway.. Anyone help? Is there a better solution?

2
ChadK
Re: RSS Feed of my site?
  • 2004/7/12 15:47

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Maybe I just have the wrong directory permissions set? Anyone know what they should be? This wasn't documented in the sparse install docs.

- Oh and there's an extra } in the index.php near the end of the file that needs removed or you'll get an error.

3
ajaxbr
Re: RSS Feed of my site?
  • 2004/7/12 16:25

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


What you want is the built-in feed available at... http://www.aviary.info/backend.php

4
ChadK
Re: RSS Feed of my site?
  • 2004/7/12 17:38

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


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...

5
ajaxbr
Re: RSS Feed of my site?
  • 2004/7/16 22:04

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Quote:

ChadK wrote:
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?

Oops, sorry you're right.
You can try Lykos Syndication, in carnuke's uptated version, but I believe it won't solve your Ads problem. I hope this bump helps somehow, and if I'll try to look at this (much) later too.

Just found this one: XOOPS extention (looks good)


Login

Who's Online

441 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 441


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits