This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

rss2 newsfeeds hack?


Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: rss2 newsfeeds hack?
avatar
OP 0
From: -
rss2 newsfeeds hack?

I had a feeling I wasn't asking the right question!
That worked! thank you!
1 Re: rss2 newsfeeds hack?
avatar
Administrator
1340
From: Vienna, Austria
rss2 newsfeeds hack?

This was a misunderstanding. I thought that you want add RSS 2.0 feeds to your website and not importing RSS 2.0 from other websites Hushed Face

The current news import feature is fully compatible with RSS 2.0. I assume that  allow_url_fopen is disabled in your php.ini. You need to enable this option to allow fopen accessing external websites.
1 Re: rss2 newsfeeds hack?
avatar
OP 0
From: -
rss2 newsfeeds hack?

I FTP'd both files up to the server as ASCII and I'm still getting
"No XML/RSS newsfeed found. You need to enter the full URL to the newsfeed (e.g. http://www.site/xml/backend.php)"
when i try to add a new rss news feed from another site - (such as http://feeds.smartmoney.com/smartmoney/headlines) - to import news into the news queue

I appreciate your patience! - Is there anything else to try?
1 Re: rss2 newsfeeds hack?
avatar
OP 0
From: -
rss2 newsfeeds hack?

It's still not working.
I copied the code into a text editor (TextPad) to get ride of any hidden code or spaces, then re-pasted it into the template editor

Could there be another fix?

Thanks!
1 Re: rss2 newsfeeds hack?
avatar
Administrator
1340
From: Vienna, Austria
rss2 newsfeeds hack?

Sound like that one of the two templates have a white space character immediately after $EST_TEMPLATE = <<<TEMPLATE which is causing a PHP error.
1 Re: rss2 newsfeeds hack?
avatar
OP 0
From: -
rss2 newsfeeds hack?

I changed the templates as noted, then tried the two newsfeeds. I keep getting this error:

No XML/RSS newsfeed found. You need to enter the full URL to the newsfeed (e.g. http://www.site/xml/backend.php)
1 Re: rss2 newsfeeds hack?
avatar
Administrator
1340
From: Vienna, Austria
rss2 newsfeeds hack?

This could be done by changing the following two templates:

xml_header

<?php

global $insert;
$EST_TEMPLATE = <<<TEMPLATE
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>$insert[site_name]</title>
<link>$insert[site_url]/index.php</link>
<description>Last 20 items on $insert[site_name]</description>
<generator>Esselbach Storyteller CMS System</generator>

TEMPLATE;
?>


xml_output

<?php

global $insert;

$insert[story_time] = date("r",strtotime($insert[story_time]));

$EST_TEMPLATE = <<<TEMPLATE

<item>
<title>$insert[story_title]</title>
<link>$insert[story_link]</link>
<description>$insert[story_text]</description>
<pubDate>$insert[story_time]</pubDate>
</item>

TEMPLATE;
?>

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.