Points 1 and 2 are part of the codechanges you quoted above.MrGroove wrote: 1 - Each item in RSS Feed should create new Topic
2 - New topic should be named the Subject line of each RSS Feed Item
3 - New Topic should not include Item Subject inside Topic body
4 - New Topic should not include Last Updated data inside Topic Body
Make sense?
Have a look her: http://www.rc-heli-fan.org/viewforum.php?f=250
btw, if someones interested, my modified version of rss_import.php, I call it via php cli.
Code: Select all
<?php
/**
*
* FIND - Atom/RSS import
*
* @package rss_import
* @version 0.2r3
* @copyright (c) 2008, 2009 PoPoutdoor
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Do not update users last page entry
$user->session_begin(false);
$user->setup('common');
$user->add_lang('mods/find');
// check if parameter there
if ($argc != 2)
{
die("no or wrong parameters!\n");
}
// get feed posted
include($phpbb_root_path . 'includes/rss_parser.'.$phpEx);
include($phpbb_root_path . 'includes/functions_find.'.$phpEx);
$feed = $argv[1];
$feed = preg_replace('/[^0-9,]/', '', $feed);
$ary = explode(",", $feed);
if (sizeof($ary))
{
$ary = array_diff($ary, array('' => 0), array('' => ''));
$ary = array_unique($ary);
$ids = implode(",", $ary);
}
else
{
$ids = ($feed) ? $feed : '';
}
if (empty($ids))
{
die($user->lang['NO_IDS']);
}
$ret = get_rss_content($ids);
?>