2009-05-06

Image

All Feeds using FeedBurner

Integrate your FeedBurner feed with your blogger beta blog.

1) Feed Auto-Detection

Go to Layout > Edit HTML and find this line of code


<b:include data='blog' name='all-head-content'/>

which actually splits out something like this


<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
<meta content='true' name='MSSmartTagsPreventParsing'/>
<meta content='blogger' name='generator'/>
<link rel="alternate" type="application/atom+xml" title="YourBlogName - Atom" href="http://yourblog.blogspot.com/feeds/posts/default" />
<link rel="alternate" type="application/rss+xml" title="YourBlogName - RSS" href="http://yourblog.blogspot.com/feeds/posts/default?alt=rss" />
<link rel="service.post" type="application/atom+xml" title="YourBlogName - Atom" href="http://www.blogger.com/feeds/yourblogid/posts/default" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://beta.blogger.com/rsd.g?blogID=yourblogid" />


when you view the page source (In Firefox click on View > Page Source).

YourBlogName stands for the title of your blog, yourblog.blogspot.com is your blog's url, and yourblogid is a long number, the id of your blog.

The two lines with link rel="alternate",

<link rel="alternate" type="application/atom+xml" title="YourBlogName - Atom" href="http://yourblog.blogspot.com/feeds/posts/default" />
<link rel="alternate" type="application/rss+xml" title="YourBlogName - RSS" href="http://yourblog.blogspot.com/feeds/posts/default?alt=rss" />

let newsreaders auto-detect your blogs feeds. So we have to change these lines to point them in the direction of your FeedBurner feed.

Remove the line:

<b:include data='blog' name='all-head-content'/>


Replace it with:

<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>

<meta content='true' name='MSSmartTagsPreventParsing'/>

<meta content='blogger' name='generator'/>

<link href='http://feeds.feedburner.com/yourblogname' rel='alternate' title='RSS' type='application/atom+xml'/>

<link rel="service.post" type="application/atom+xml" title="YourBlogName - Atom" href="http://www.blogger.com/feeds/yourblogid/posts/default" />

<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://beta.blogger.com/rsd.g?blogID=yourblogid" />


Replace http://feeds2.feedburner.com/yourblogname with the url of your FeedBurner feed.

Save Template.

Now that we have fixed the auto-detection part, there is still the issue of the feed-link on your posts page. This feed-link has to be made invisible, so that your visitor has no other option than following the link to your FeedBurner feed.

Go to Layout > Edit HTML and find this line

.feed-link {


Below the line add

display: none;


If there is no .feed-link class defined in your template, define it with:

.feed-link { display:none; }


Save Template.

Leave your comments and URL of your blog :)




التعليقات:

  1. Bake аt 350 foг 25 mіnutes oг until toothpicκ insertеd
    іn center сomeѕ out cleаn.
    There are plenty of еlectric ovenѕ that will ѕtill knoсκ your
    socks off. Most bread machines comе with a recipe book
    included.
    Take a look at my homepage : http://chirper.co.za

    ReplyDelete

Total Pageviews