Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
rss issue

 
Reply to topic    Forum Index » Help View previous topic
View next topic
rss issue
Author Message
webbber



Joined: 15 May 2008
Posts: 61

Post rss issue Reply with quote
I tried to add a rss for my news page, so I added:
Code:
<?
template="Default";
$number=5;
include 'path/to/news/file.php';
?>

But I, first,added:
Code:
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:
Code:
<?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 View user's profile Send private message
Guest








Please login to hide the ads.

Torstein



Joined: 03 Aug 2006
Posts: 96

Post Reply with quote
Did you check out the "path/to/CNR/rss.php" file?
Wed Jul 23, 2008 6:53 pm View user's profile Send private message
Yoshiii



Joined: 29 Feb 2008
Posts: 58

Post Reply with quote
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 View user's profile Send private message
Torstein



Joined: 03 Aug 2006
Posts: 96

Post Reply with quote
Well my RSS.php (which works) looks like this:

Code:
<?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 View user's profile Send private message
Yoshiii



Joined: 29 Feb 2008
Posts: 58

Post Reply with quote
i use your php (with some changes) and the original template and i see only this:

Code:
www.wedden-op-sport.com/cn/rss.php

Wed Jul 23, 2008 10:30 pm View user's profile Send private message
webbber



Joined: 15 May 2008
Posts: 61

Post Reply with quote
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:
Code:

<?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
Code:
<?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 View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
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



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.