星期六, 八月 04, 2007

利用Google Reader的共享功能实现"友博列表"的自动更新

这个方法不错,以后不用每次改模板了,只要在Google Reader中阅读文章时按按鼠标,朋友的网志就会自动出现在网志的“友博列表”中了。效果请见白花花的右侧栏,下部。

方法步骤

1、进入Google Reader的setting,默认是subscription选项卡,把想共享的网志加入新的folder,起个名字,me命名为shared_for了;然后把朋友的网志都增加到这个folder中,即都增加shared_for标签。增加folder的方法很简单,任意选中一个订阅,在右侧的change folder中选中那个new folder,然后自己命个名就行了

2、进入tag选项卡,设置"友博共享"为public(默认是private,点一下就变成public了);

3、拷贝"view public page"的链接地址,格式差不多是这样http://www.google.com/reader/shared/user/[NUMBER]/label/[FOLDERNAME]的;

4、到这个网页中,把步骤3的链接地址粘贴进去,然后build,在下面的窗口会自动生成代码;

5、把生成的代码拷贝到网志模板中。如果用的blogger,在模板中新增一个HTML/JavaScript元素,把代码贴入保存即可。

提醒转换网页存放的地方googlepages.com被墙了,如果您在国内则无法打开,解决办法:
请用记事本之类的文本编辑器打开C:\WINDOWS\system32\drivers\etc目录下的hosts文件,在末尾处添加
72.14.219.190 52good.blogspot.com
72.14.219.190 baihuahua.blogspot.com
72.14.219.190 googlesystem.googlepages.com
保存后关闭hosts文件,即可正常访问转换网页

Sent to you by heart5 via Google Reader:

via Google Operating System by Ionut Alex Chitu on Aug 04, 2007
Bloglines has a feature that lets you automatically create a blogroll from the feeds you've subscribed to. This way, you don't have to maintain your blogroll because it's permanently in sync with your subscriptions. "On many blogs, there are lists of links to other blogs. These lists are called blogrolls. You can incorporate your Bloglines subscriptions into your blog, as a blogroll, by including a small piece of HTML that loads a script from Bloglines."

Many people want the same feature in Google Reader, but don't know it's already available, albeit not in a transparent way. Because you don't want to include in a blogroll all your subscriptions, you could share a folder (in Google Reader, a feed can be placed in multiple folders). So how to convert all the subscriptions from a folder to a nice list that can be added to a blog?

1. You need to add all the blogs you want to share to a folder. This can be easily done from the settings: select the blogs, click on "more actions" and add them to that folder (Google Reader calls it a tag, but you should ignore that).

2. To make your subscriptions visible outside your account, the folder should become public. Go to the Tags tab from the settings and click on the small broadcasting icon next to your folder. The icon should become orange and the word "private" should be replaced by "public". In the screenshot below, cool-blogs is a public folder.



3. Copy the link for "view public page". It should look like this:
http://www.google.com/reader/shared/user/[NUMBER]/label/[FOLDERNAME]

Then enter the link below and click on "Build".

[The wizard is available if you view the original post]
4. Copy the code in your blog's template. In Blogger, you could paste the code in a new HTML/JavaScript element.


I've also included an option to save the blogroll as an OPML file that can be easily imported in most feed readers.

{ Code inspired by the Official Google Blog. }

Things you can do from here:

没有评论: