Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 12-21-2004, 02:54 PM
bretzelman Offline
pp regular
 
Join Date: Dec 2004
Posts: 41
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:
Reply With Quote
  #2  
Old 12-21-2004, 04:08 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
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
Reply With Quote
  #3  
Old 12-21-2004, 04:40 PM
bretzelman Offline
pp regular
 
Join Date: Dec 2004
Posts: 41
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
Reply With Quote
  #4  
Old 12-21-2004, 05:59 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
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
Reply With Quote
  #5  
Old 12-21-2004, 06:12 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
I've done some searching over at mozillazine. Here's a quote:

Quote:
If there are no new unread messages in your mailbox, you will get "live bookmark feed failed to load." Try sending yourself a new message and then refresh the live bookmark.
Is this the problem you have? That the message that should read "No new items" is so damned idiotic it reads as if there is an error somewhere?

// punk
__________________
icq: 66760929
Reply With Quote
  #6  
Old 12-22-2004, 12:58 AM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
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>
Looks like your code is dying somewhere.
Reply With Quote
  #7  
Old 12-22-2004, 02:45 AM
bretzelman Offline
pp regular
 
Join Date: Dec 2004
Posts: 41
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><img src="http://www.nack.ch/pixelpost/thumbnails/thumb_dec04-02.jpg" align="right"> Je me suis remis ce soir à faire des bricolages pour essayer d'obtenir un effet ressemblant au traitement croisé sur photoshop. Un aimable visiteur qui se reconnaîtra m'a filé par mail deux courbes personnalisé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 ça s'approche. Merci bien ;)
<br />
<br />[Listening to: Loikaemie - Dagegen sein]
<br />Ben oui. On reprends les bonnes vieilles habitudes.</description>
        <pubDate>Tue, 21 Dec 2004 18:10:00 +0100</pubDate>
        </item>
The solution would probably be to write differently the inclusion of variables in the feed script. But I don't know what to change and how...

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>
The result is a totally compatible feed like that: http://www.nack.ch/wp-rss2.php
Reply With Quote
  #8  
Old 12-22-2004, 07:13 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
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
Reply With Quote
  #9  
Old 12-22-2004, 07:40 AM
bretzelman Offline
pp regular
 
Join Date: Dec 2004
Posts: 41
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:
Reply With Quote
  #10  
Old 12-22-2004, 07:58 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
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
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:16 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs