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~

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”
width=”400″ height=”267″

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?
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.

Post Levels and Terong Related Links conflict

Just now I found there are some conflicts between Post Levels and Terong Related Links . Though I don’t think too many people are using these two plugins together, I decided to write it down.

Actually a filter function called “postlevels_query” in Post Levels is very tricky and buggy, the comment of that function claims that “This is almost guaranteed to break some day”. It does some string replacements for SQL query, which is really dangerous….

Some SQL query strings from Terong use “p” as an alias of the table $wpdb->posts, so the hacks of Post Levels failed…

I changed some codes in Terong Related Links, now it works. You can download it here – Terong Related Posts changed by Wei Wei

This conflict is no one’s fault….en

写了一个tag cloud的widget……

具体效果见页面右边的那个小tag cloud咯。。

因为开始用Ultimate Tag Warrior了,这个tag插件功能强大但是好像显示方面还不够傻瓜,比如我就没找到怎么加一个tag cloud到sidebar的傻瓜方法。郁闷之下干脆拿Google Search Widget的代码改了一个Tag Cloud Widget出来……php这玩意儿写起来确实简单