2
I think I've found :)
In my case, xNews is cloned, I hope there is no mistake below
1. Rename your file by replacing rssfit.news.php with rssfit.yourmodulefoldername.php
2. Replace RssfitNews
... by
Rssfit
Yourmodulefoldername3. Replace var $dirname = 'news';
...by
var $dirname = 'yourmodulefoldername';
4. Replace : @include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php';
... by
@include_once XOOPS_ROOT_PATH.'/modules/yourmodulefoldername/class/class.newsstory.php';
... and
@include_once XOOPS_ROOT_PATH.'/modules/news/include/functions.php';
... by
@include_once XOOPS_ROOT_PATH.'/modules/yourmodulefoldername/include/functions.php';
5. Replace :Quote:
$news = NewsStory::getAllPublished($this->grab, 0, news_getmoduleoption('restrictindex'));
... by
Quote:
$news = nw_NewsStory::getAllPublished($this->grab, 0, nw_getmoduleoption('restrictindex'));
6. Replace :Quote:
$news = NewsStory::getAllPublished($this->grab, 0);
... by
Quote:
$news = nw_NewsStory::getAllPublished($this->grab, 0);
7. Replace
$ret[$i]['link'] = XOOPS_URL.'/modules/news/article.php?storyid='.$news[$i]->storyid();
$ret[$i]['guid'] = XOOPS_URL.'/modules/news/article.php?storyid='.$news[$i]->storyid();
... by
$ret[$i]['link'] = XOOPS_URL.'/modules/yourmodulefoldername/article.php?storyid='.$news[$i]->storyid();
$ret[$i]['guid'] = XOOPS_URL.'/modules/yourmodulefoldername/article.php?storyid='.$news[$i]->storyid();
8. Declare this new plugin in the RSSFit administrationImportant : if you use a cloned version replace
-
nw_NewsStory by nw2_NewsStory, nw3_NewsStory, etc.
-
nw_getmoduleoption by nw2_getmoduleoption, nw3_getmoduleoption, etc.