|
#1
|
|||
|
|||
|
Just another RSS problem
I've seen that there's many topics about problem with RSS and tried some tricks to solve my problem but nothing to do. It doesn't works.
My site running pixelpost is located there: http://www.nack.ch/pixelpost/ and i'm trying to use an external file for RSS. The url of the backend file is: http://www.nack.ch/pixelpost/rss.php (this is the file you give here). I don't understand why it's showing nothing. Did i something wrong? Congrats for your script. I find it really futureproof and well developped. :wink: |
|
#2
|
||||
|
||||
|
Something is wrong with that external file. The developer might not have updated it to suit version 1.3 of pixelpost. Your internal rss-feed is working.
I can go in and make an external file, this will not be done today however. // punk
__________________
icq: 66760929 |
|
#3
|
|||
|
|||
|
ok for the external file. I'll do without it. But I still have a problem with the internal rss-feed
. It doesn't works with firefox. Could somebody whose blog is working with firefox tell me what changes i have to do?I applied tried with or without the patch, with or without the modification suggested here but nothing works :cry: Thanks for your help |
|
#4
|
||||
|
||||
|
I am trying to figure this one out.
Can you please test my feed? http://www.pixelpunk.se/?x=rss Please let me know if it fails like your do or if it behaves otherwise. // punk
__________________
icq: 66760929 |
|
#5
|
||||
|
||||
|
I've done some searching over at mozillazine. Here's a quote:
Quote:
// punk
__________________
icq: 66760929 |
|
#6
|
|||
|
|||
|
rss
pixelpunk,
I've subscribed to your RSS feed in Firefox for days now and it's always showing an error message. I do not think it has to do with unread links. Firefox shows all links visited or not in a live bookmark. The only difference between a live bookmark and a regular one is that the feed is updated every few minutes. I did a "wget http://www.pixelpunk.se/?x=rss" and this is what I get: Code:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>pixelpunk</title>
<link>http://www.pixelpunk.se/</link>
<description>pixelpunk photoblog</description>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>pixelpost</generator>
</channel>
</rss>
|
|
#7
|
|||
|
|||
|
I think that I found the problem. When you look the code obtained with the rss feed, you can see that html markup special caracters doesn't appear correctly:
Code:
<item>
<title>Traitement croisé virtuel</title>
<link>http://www.nack.ch/pixelpost/?showimage=18</link>
<description>&lt;img src=&quot;http://www.nack.ch/pixelpost/thumbnails/thumb_dec04-02.jpg&quot; align=&quot;right&quot;&gt; Je me suis remis ce soir &Atilde;&nbsp; faire des bricolages pour essayer d'obtenir un effet ressemblant au traitement crois&Atilde;&copy; sur photoshop. Un aimable visiteur qui se reconna&Atilde;&reg;tra m'a fil&Atilde;&copy; par mail deux courbes personnalis&Atilde;&copy;es (une pour faire du E6 dans du C41 et une pour faire du C41 dans du E6). Ca donne pas encore exactement ce que je recherche (vous pouvez voir un exemple avec la photo du jour), mais &Atilde;&sect;a s'approche. Merci bien ;)
&lt;br /&gt;
&lt;br /&gt;[Listening to: Loikaemie - Dagegen sein]
&lt;br /&gt;Ben oui. On reprends les bonnes vieilles habitudes.</description>
<pubDate>Tue, 21 Dec 2004 18:10:00 +0100</pubDate>
</item>
You can see for example how it's made by word-press: Code:
<?php
if (!isset($feed)) {
$blog = 1;
$doing_rss = 1;
require('wp-blog-header.php');
}
$more = 1;
$charset = get_settings('blog_charset');
if (!$charset) $charset = 'UTF-8';
header('Content-type: text/xml', true);
?>
<?php echo '<?xml version="1.0" encoding="' . $charset . '"?'.'>'; ?>
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
>
<channel>
<title><?php bloginfo_rss('name') ?></title>
<link><?php bloginfo_rss('url') ?></link>
<description><?php bloginfo_rss("description") ?></description>
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate()); ?></copyright>
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></pubDate>
<generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator>
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
<item>
<title><?php the_title_rss() ?></title>
<link><?php permalink_single_rss() ?></link>
<comments><?php comments_link(); ?></comments>
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', $post->post_date_gmt, 0); ?></pubDate>
<?php the_category_rss() ?>
<guid><?php the_permalink($id); ?></guid>
<?php if (get_settings('rss_use_excerpt')) : ?>
<description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
<?php else : ?>
<description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
<?php endif; ?>
<wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>
</item>
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
</channel>
</rss>
|
|
#8
|
||||
|
||||
|
http://feedvalidator.org/check.cgi?u...punk.se/?x=rss
The feed validates and are working and theres nothing wrong with the markup I have found out that Firefox is not the leanest n meanest, so it don't 'get' all sorts of feeds. I will re-do the feed though, to make sure Firefox gets it. // punk
__________________
icq: 66760929 |
|
#9
|
|||
|
|||
|
http://feedvalidator.org/check.cgi?u....php%3Fx%3Drss
I tried to modify some things yesterday (novice tricks like putting out the image markup of the feed) and there's too a problem with accents :shock: |
|
#10
|
||||
|
||||
|
Add the cdata statement in the content:encoded field and try again.
<![CDATA[ ... content here ... ]]> For the record, I don't know the spec inside out. I'm going by trial and error. // punk
__________________
icq: 66760929 |
| Post Reply |
| Thread Tools | |
|
|