2 Great WordPress Plugins

I haven’t played with WP plugins for a long time because I had been very comfortable with my plugin suite :) Yesterday I did a little search to see if there are new exciting plugins out which suit my taste, and found 2!

  • GoldenGate: if you uses PicasaWeb and often inserts photos from there to WP posts, like me, you must know how painful it is to get the PicasaWeb photo URL out. This plugin makes it a breeze~ Actually I found it several months ago but at that time I failed to get it worked because of some PHP memory limit problem. This time it works somehow :) Give it a try if you uses PicasaWeb.
  • Yet Another Related Posts Plugin: I began to look for a good “related posts” plugin from the first day I started this blog. Though there are quite a few choices, no one really rocks. Some “powerful” plugins try to analyze post content and calculate the similarity, but they won’t work for Chinese. So I finally used a “full manual” plugin named “Terong Related Links“. Speaking frankly that plugin isn’t interesting at all and the author doesn’t seem to maintain it any more. This time with one or two google searching I found this post, which compared a few related posts plugins and selected YARPP out. Just by looking at the options I know this is exactly the plugin I want. YARPP leverages the category and tag information, which are what bloggers actually use to organize posts!

Still tweaking them, so much fun to play with WP~

PicasaWeb前两天新出的找人脸功能太cool了……

用PicasaWeb的同学们一定要去试一试,哈哈
我的照片里面自动找出来的脸有200来个,标记起来还是挺好玩的。尤其是自动推荐有的时候还颇准,很有意思。
在这上面标记的时候,爽快的原因主要在于它会自动提供你的gmail联系人让你选择。资源联合就是强大啊……
波波的脸也被找出来了,嗯

bobo
From Cat Bath

PicasaWeb Host Domain Changed

Several days ago I found that my pictures shown with Picasa Web Matrix plugin on blog were gone. At first I thought it was fault of PicasaWeb, because fetching the RSS link in Firefox will return a “400 Bad Request” error. But today I noticed I can still receive friends’ picture updates from PicasaWeb in Google Reader… And the RSS link in IE works well actually. So I guess the problem is on the plugin.

After a few minutes’ examination, the problem is uncovered. In the codes of Picasa Web Matrix plugin, a regular expression with “google” is used from matching the image src value, but PicasaWeb appears to just changed its host domain name from “google.com” to “ggpht.com”…. So, simply change this line

preg_match(‘/http:\/\/.*\.google\..*\/([^.]*\.(jpg|png|gif))/i’, $photos[$count][‘thumbURL’], $picasaWebSlugMatches);

to

preg_match(‘/http:\/\/.*\.ggpht\..*\/([^.]*\.(jpg|png|gif))/i’, $photos[$count][‘thumbURL’], $picasaWebSlugMatches);

and the photos are back again :)

Picasa和PicasaWeb的粗浅使用心得

使用Picasa也有一点时间了,挺喜欢用的,感觉整理照片非常方便,独特的操作方式背后算是蕴含着一种理念吧。这里简单写点儿我使用的方法,班门弄斧,希望有更多的人能enjoy这个软件。PicasaWeb是和Picasa配套的网络相册,对于我这样的纯傻瓜拍照来说,用它来共享照片给朋友看也就足够了。

文中图片如果看不清的话请点击看大图。

Continue reading Picasa和PicasaWeb的粗浅使用心得

Embed PicasaWeb Album in WordPress, XHTML 1.0 Compatible

It’s quite convenient that Google PicasaWeb released the new feature of embedding album by flash. But the same as some other places in PicasaWeb, the codes it gives out aren’t XHTML 1.0 compatible, either…

Though it’s not a big deal and I know someone thinks w3c standards stupid, I would like my own blog in clean and tidy codes, and I wish there are some more strict standards in HTML world, that will make programmers life much easier and make Internet more organized.

The more realistic problem, which drove me to do some experiments and write down this post, is that WordPress is actually quite picky with html codes. If you use PicasaWeb’s codes in WordPress, wich use “embed” tag, WordPress will change it to “ibed” tag automatically. That will lead to some annoying small bugs when you want to edit the post or switch between “Visual” and “Code” modes. So I guess I’d better feed WordPress, this picky girl, some W3C compatible codes.

Finally I chose the plugin pb-embedFlash to do that. For example, PicasWeb gives me such codes for embedding one of my albums

<embed type=”application/x-shockwave-flash”
src=”http://picasaweb.google.com/s/c/bin/slideshow.swf”
width=”400″ height=”267″
flashvars=”host=picasaweb.google.com&captions=1&RGB=0x000000&
feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F
weiwei9%2Falbumid%2F5084619049582967009%3Fkind%3Dphoto%26alt%3Drss”
pluginspage=”http://www.macromedia.com/go/getflashplayer”></embed>

Then with pb-embedFlash, what I need to do is just use codes like this

[ flash http://picasaweb.google.com/s/c/bin/slideshow.swf?
host=picasaweb.google.com&captions=1&RGB=0x000000&
feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F
weiwei9%2Falbumid%2F5084619049582967009%3Fkind%3Dphoto%26alt%3Drss w=400 h=267]

Use the swf URL followed by a question mark and the value of flashvars in codes given by PicasaWeb. Note that I leave a blank space between the “[” and “flash” to avoid being converted.

I have to admit it’s not an easy job to insert some Flash in WordPress without plugins, so I strongly suggest the plugin – pb-embedFlash.