rss in head

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
antoney
Posts: 3
Joined: Fri Nov 04, 2005 4:39 pm

rss in head

Post by antoney »

I want to change my RSS feed to point to feedburner in my head tags. What file do I need to modify?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: rss in head

Post by garvinhicking »

Using serendipity 0.9 you can configure the syndication plugin to use Feedburner links instead of s9y ones.

If you want to transparente rewrite s9y URLs you'll need to use mod_rewrite or patch the rss.php file with HTTP header redirects.

Regards
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
antoney
Posts: 3
Joined: Fri Nov 04, 2005 4:39 pm

change in head tags

Post by antoney »

I have the plug-in working with feedburner, but I want to change theses tags in the document head.

<link rel="alternate" type="application/rss+xml" title="Design Pornography RSS feed" href="http://www.designpornography.com/index. ... index.rss2" />
<link rel="alternate" type="application/x.atom+xml" title="Design Pornography Atom feed" href="http://www.designpornography.com/index. ... s/atom.xml" />

Is there a way to do this?

thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: change in head tags

Post by garvinhicking »

Ah, okay.

You can change those in the index.tpl template of your selected template!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gotchi
Regular
Posts: 53
Joined: Wed Apr 05, 2006 8:23 pm
Location: Austria
Contact:

Re: rss in head

Post by gotchi »

garvinhicking wrote:Using serendipity 0.9 you can configure the syndication plugin to use Feedburner links instead of s9y ones.

If you want to transparente rewrite s9y URLs you'll need to use mod_rewrite or patch the rss.php file with HTTP header redirects.

Regards
Garvin
Hello!!!

I have a similar Problem - I am using Feedburner since 2 month but the blog is much older - so how is it possible to geht the old subscribers to the feedburner account.

i am using 1.0beta2 and I am not familiar with mod_rewrite - so I am not able to crate the rule by myself.

can someone help me?

original rss link: http://blog.gotchi.at/index.php?/feeds/index.rss2
feedburner link: http://feeds.feedburner.com/gotchi

thanx
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: rss in head

Post by garvinhicking »

Gotchi,

did you try to just edit your index.tpl file and edit the RSS link rel tags at the top of the document, like suggested?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gotchi
Regular
Posts: 53
Joined: Wed Apr 05, 2006 8:23 pm
Location: Austria
Contact:

Post by gotchi »

the problem by fixing the rss with editing the tpl is that if I will update s9y these modifications will be deleted.

also is it a good solution for new subscribers but for old ones which subscribed to the old RSS link via a NewsReader it wont work.
feedburn will not be able to allocate them - so it is necessary to rewrite the old links to the news - for people with newsreaders.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

No, that is actually not right. If you create your own template with your own index.tpl file, this will not be touched by any upgrade.

If you don't have mod_rewrite available, you will need to patch your rss.php file to redirect to Feedburner. Of course this will be hard, because feedburner itself uses the rss.php file to get your feeds, so you would make your PHP patch exclude any redirection magic if feedburner itself reads the feeds! With mod_rewrite this would be a bit easier, I figure.

I personally have no experience with Feedburner, so I can't volunteer giving you any relocation advice in the rss.php file... but it would work something along the lines like:

Code: Select all

<?php
if ($_SERVER['HTTP_USER_AGENT'] != 'FeedBurner 1.0/xxx bla whatever') {
 header('Location: http://feedburner.com/your/feed/address');
}
?>
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gotchi
Regular
Posts: 53
Joined: Wed Apr 05, 2006 8:23 pm
Location: Austria
Contact:

Post by gotchi »

i have mod_rewrite available - but my knowledge is too small to check this regex und rewrite stuff. thats the problem :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Ah, okay. Maybe you can ask on the feedburner forums for help? I'm sure many blog owners might have such a question on how to rewrite their links to feedburner. The mod_rewrite rules from other blog systems like WordPress or TextPattern should be very similar to Serendipity's.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gotchi
Regular
Posts: 53
Joined: Wed Apr 05, 2006 8:23 pm
Location: Austria
Contact:

Post by gotchi »

ok I searched and asked - but ther wos no possibilty to find any user who can give me the right lines for the htaccess.

its a little bit strange that nobody had the same problem or wish before, serendipity is a cool blog software many people are using but nobody was able to give me the solution.
everybody meant that I should search - nice way to give away responsibiliy

perhaps someone here can help me
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

If you can research working mod_rewrite rules from wordpress or other blog systems, I might be able to help you!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I think thanks to a german posting I have an easier solution for you:

http://nopaste.php-q.net/206731

This patch for s9y 1.0 / 1.1 allows to set the syndication plugin configuration to "Force feedburner".

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gotchi
Regular
Posts: 53
Joined: Wed Apr 05, 2006 8:23 pm
Location: Austria
Contact:

Post by gotchi »

thank you for this info I will test it in some days ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

There was a bug in the patch! Instead of "Mozilla" it needs to read "FeedBurn" instead!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply