 |
 |
 |
 |
 |
| Author |
Message |
webbber
Joined: 15 May 2008 Posts: 61
|
|
rss issue |
|
I tried to add a rss for my news page, so I added:
 |  | <?
template="Default";
$number=5;
include 'path/to/news/file.php';
?> |
But I, first,added:
 |  | include 'path/to/head.php'; |
before my html header.
and what I get in the browser is just TEXT PLAIN, If I check the source, before a news is show, i get:
 |  | <?xml version="1.0" encoding="UTF-8" ?>
<rss version="0.92">
<channel>
<title>SITENAME</title>
<description>DESCRIPTION-SITENAME</description> |
any idea?
pd: the rss template is the same as default.
|
|
| Wed Jul 23, 2008 6:45 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Torstein
Joined: 03 Aug 2006 Posts: 96
|
|
|
|
Did you check out the "path/to/CNR/rss.php" file?
|
|
| Wed Jul 23, 2008 6:53 pm |
|
 |
Yoshiii
Joined: 29 Feb 2008 Posts: 58
|
|
|
|
I have the same problem, it shows all the news but in plain text and RSS feeders can't read it.
|
|
| Wed Jul 23, 2008 9:14 pm |
|
 |
Torstein
Joined: 03 Aug 2006 Posts: 96
|
|
|
|
Well my RSS.php (which works) looks like this:
 |  | <?php
include_once 'head.php';
add_filter('news-allow-commentform', 'comment_form');
function comment_form(){return false;}
header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="'.$echo['charset'].'" ?>';
?>
<rss version="2.0">
<channel>
<?
if (!$id){
?>
<title>Buekorpsene.com RSS</title>
<link><?=$config_http_home_url; ?></link>
<description>Nyheter fra buekorpsene.com</description>
<image>
<title>buekorpsene.com</title>
<url>http://buekorpsene.com/images/logo1.jpg</url>
<link>http://buekorpsene.com</link>
</image>
<?
}
?>
<language>no-nor</language>
<generator><?=$config_version_name.' '.$config_version_id; ?></generator>
<?
$template = 'rss';
$number = 15;
$category = '24';
include $cutepath.'/show_news.php';
?>
</channel>
</rss> |
It can be seen here: http://buekorpsene.com/backend/rss.php
|
|
| Wed Jul 23, 2008 9:24 pm |
|
 |
Yoshiii
Joined: 29 Feb 2008 Posts: 58
|
|
|
|
i use your php (with some changes) and the original template and i see only this:
 |  | www.wedden-op-sport.com/cn/rss.php |
|
|
| Wed Jul 23, 2008 10:30 pm |
|
 |
webbber
Joined: 15 May 2008 Posts: 61
|
|
|
|
Well, i am using the very same code as Torstein, and I get only my url and descriptions.
and If I check the source, I get url and description from my website as many times as a item is show (but only in the source)
e.g:
I get:
 |  |
<?xml version="1.0" encoding="iso-8859-2" ?><rss version="2.0">
<channel>
<title>website.com</title>
<link>http://www.site.com/</link>
<description>Description</description>
<language>no-nor</language>
<generator>CuteNews.RU 2.5.4</generator>
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="0.92">
<channel>
<title>website.com</title>
<link>http://www.site.com/</link>
<description>Description</description>
<item>
<title>new title</title>
<link>http://www.site.com/news/news-title.html</link>
<description>All about the news goes HERE</description>
<category></category>
<pubDate>Tue, 22 Jul 2008 11:11:50 -0500</pubDate>
</item>
</channel>
</rss> |
So everytime a item is gonna be show , I get
 |  | <?xml version="1.0" encoding="UTF-8" ?>
<rss version="0.92">
<channel>
<title>website.com</title>
<link>http://www.site.com/</link>
<description>Description</description>
|
over and over again
?????????
|
|
| Thu Jul 24, 2008 6:55 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|