Typo and feedburner

Hey (again) guys,
If you have a look at this post (1) about Rails heroes RSS feeds you
will see that they all use feedburners. My question is how to use
feedburner with Typo?
For instance how to change the feed address that appears when clicking
on the RSS logo in firefox url bar (or its equivalent in Safari)?
How to change the address appearing in the syndication sidebar?

Thx
H

Harry S. a écrit :

Hey (again) guys,
If you have a look at this post (1) about Rails heroes RSS feeds you
will see that they all use feedburners. My question is how to use
feedburner with Typo?
For instance how to change the feed address that appears when clicking
on the RSS logo in firefox url bar (or its equivalent in Safari)?
How to change the address appearing in the syndication sidebar?

I use a rewrite url in my nginx configuration to redirect to feedburner.

Cyril M. wrote:

Harry S. a �crit :

Hey (again) guys,
If you have a look at this post (1) about Rails heroes RSS feeds you
will see that they all use feedburners. My question is how to use
feedburner with Typo?
For instance how to change the feed address that appears when clicking
on the RSS logo in firefox url bar (or its equivalent in Safari)?
How to change the address appearing in the syndication sidebar?

I use a rewrite url in my nginx configuration to redirect to feedburner.

Thx Cyril,
Heu, never heard about nginx I am on a shared host. Isn’t there a
solution using Typo? As it is really standard nowadays to use
feedburner, a simple solution would be appreciated.

Btw the (1) was for
http://harryseldon.thinkosphere.com/2009/02/03/read-your-rails-heroes .

H

Harry S. a écrit :

How to change the address appearing in the syndication sidebar?
Btw the (1) was for
http://harryseldon.thinkosphere.com/2009/02/03/read-your-rails-heroes .

If you want redirect to feedburner, you need Hack typo code.

In your app/controller/articles_controller.rb, in block format.rss {}

You need check if user-agent is feedburner or not. If not feedburner,
you need redirect to feedburner feed. Instead of you need render
partial.

A little hack (not tested is)

format.rss
{
if request.env[“HTTP_USER_AGENT”][/Feedburner/]
render :partial => ‘articles/rss20_feed’, :object =>
@article.published_feedback
else
redirect_to ‘Shingara - Actualité et News
end
}

Maybe a feature request to define that in a plugin is a good thing.


Cyril M.

Le 1 mars 09 à 16:53, de Villamil Frédéric a écrit :

you

request.env[“HTTP_USER_AGENT”][/Feedburner/]
I’ve been willing to do this for a while now.
I’ve opened a feature ticket on Lighthouse : http://fdv.lighthouseapp.com/projects/11171-typo-blog/tickets/51-add-feedburner-support-from-the-admin

This will be included in the nex release.
Cheers,
Frédéric

I had 5 minutes to kill, so if you’re following edge, maybe you’ll be
interested by

Frederic

Le 1 mars 09 à 15:53, Cyril M. a écrit :

For instance how to change the feed address that appears when
solution using Typo? As it is really standard nowadays to use
You need check if user-agent is feedburner or not. If not
else
redirect_to ‘Shingara - Actualité et News
end
}

Maybe a feature request to define that in a plugin is a good thing.

I’ve been willing to do this for a while now.
I’ve opened a feature ticket on Lighthouse :
http://fdv.lighthouseapp.com/projects/11171-typo-blog/tickets/51-add-feedburner-support-from-the-admin

This will be included in the nex release.
Cheers,
Frédéric

Cool! Thx!

I have updated to edge (on dev env). I have entered my feedburner pseudo
in Settings/Read/Feedburner ID. But when I return to the home page the
syndicate sidebar it is still the same. Idem for the RSS logo.
I swept the cache.
What am I missing?
H

Hum never mind, I had not clicked on it (just looked the url in FF
status bar). But when I click on it goes well.
Thx a lot.

Subsidiary question: what about the comment feed?
Thx

Harry S. wrote:

Hum never mind, I had not clicked on it (just looked the url in FF
status bar). But when I click on it goes well.
Thx a lot.

On Sat, Feb 28, 2009 at 2:02 PM, Harry S.
[email protected] wrote:


Posted via http://www.ruby-forum.com/.


Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list

This is what I do to redirect everyone to FeedBurner in my Apache
VirtualHost for Typo. Only FeedBurner itself is allowed to get the
feed directly. You won’t have to hack Typo itself.

RewriteEngine On

302 temporary, 301 permanent

RewriteCond %{HTTP_USER_AGENT} !^FeedBurner/.*
RewriteRule ^/xml/rss20/feed.xml$
Plasticx Blog [R=302,L]
RewriteRule ^/xml/atom/feed.xml$
Plasticx Blog [R=302,L]

Here’s the Apache docs for mod_rewrite
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html


Mike M.
Work> http://sas.quat.ch/
Blog> http://blog.mondragon.cc/

Le 5 mars 09 à 04:38, Mike M. a écrit :

Plasticx Blog [R=302,L]

Here’s the Apache docs for mod_rewrite
mod_rewrite - Apache HTTP Server Version 2.2

Hello Mike,

Feedburner support has been added to Typo edge a few days ago with
proper redirection directly in your blog, to avoid server specific
redirections.

Regards,
Frédéric

Frédéric de Villamil
“What’s mine is mine. What’s yours is still unsetteled” – Go player
proverb
[email protected] tel: +33 (0)6 62 19 1337
http://t37.net Typo : http://typosphere.org

Hi,

For info, I got some troubles with my Typo feed after activating the
Typo redirection to feedburner.
Basically feedburner was complaining about a non valid feed.
I do not have much clue about what was going on.
I am afraid there was some infinite loop like: FB needs the feed address
(http://harryseldon.thinkosphere.com/articles.rss) but this address
redirects to http://feeds2.feedburner.com/harryseldon hence the loop.
I am definitely not sure about that. So I mention it in case some other
people encounter this problem.

Here is the FB error:
PROBLEM: FeedMedic Alert for http://feeds2.feedburner.com/harryseldon
08.03.2009 18:24
FeedBurner had trouble retrieving your Source Feed:
http://harryseldon.thinkosphere.com/articles.rss
The error message is:
Error getting URL: 500 - Internal Server Error
Actions you can take:
Validate your Source Feed with Feed Validator. This service provides
additional detail about the problem, and how to repair it.
Resync your FeedBurner feed once you have repaired the source feed.
Contact FeedBurner for help with your feed if all else fails.

H

Harry S. a écrit :

people encounter this problem.
additional detail about the problem, and how to repair it.
Resync your FeedBurner feed once you have repaired the source feed.
Contact FeedBurner for help with your feed if all else fails.

In your production.log can you see some error about article.rss action ?


Cyril M.