02.13.07
Posted in wordpress
at 2:26 pm
Since the previous fix is not working well with IE7, I’ve come up with a new FancyTooltips fix.
Thanks to Firebug, this new fix gets rid of the CSS-Hack, directly fix on the js file, and work better with IE7.
It’s basically for some unknown reason, the oContainer is not empty when calling setContainerContent(). The fix is explicitly call removeContainerContent() in setContainerContent(), avoid the double tooltip problem in Firefox:
var oOutputNode = document.importNode(oXMLDoc.documentElement, true);
removeContainerContent(); //add this line
var oChild = oOutputNode.firstChild;
Download the new fixed package.
This also contains the previous fix for wordpress <ins> <del> time parsing problem, plus simple CSS opacity fix for IE(no round-corner support though)
FancyTooltips is released in MIT License.
Permalink
01.25.07
Posted in wordpress
at 2:49 am
Check list:
- Some of your friends doesn’t check web pages everyday, and don’t even know what is rss.
- You want you blog to be read by your friends more, but you don’t want to push them to read your entry everytime when you make a new one.
- Live Messenger will show a flower before the contact list when someone has updated his space, and you think that is a good non-aggressive way to advertise your blog.
- But you think Live Space sucks and you’re using wordpress.
If you match these conditions above, then Live Space Sync plug-in is perfectly for you.
Live Sync is a plug-in that allows you to synchronized WordPress post to Live Spaces, facilitating MetaWeblog API.
It was based on MSN Sync plug-in and original version of MSN Sync was created by William. The author hadn’t continue developing it so I modified it to complete the functions.
Download and Description.
Known issue: clear text would still be post on Live Space even with password-protected.
Permalink
01.24.07
Posted in wordpress
at 9:00 pm
When you use Spam Karma 2 with WP-Cache, cached files are not flushed after a successfully comment approval.
That’s basically because SK2 intercepts some actions, WP-Cache will not get notified.
I create a small plug-in for SK2, that will directly call wp-cache to flush cache, after a comment is approved.
Download this zip, extract and drop the php into sk2_plugins directory, it should just work.
Note:
- wp-cache 2.1.0 is out, please install 2.1.0 and delete old cache before you complain this compatibility plug-in is not working.
- Turn off ‘encrypted payload’ check in sk2, see the reason updated below.
Updated: There’s a problem discovered by Reiner), sk2 generates some dynamic hidden field to check if the page is really loaded by a browser before the comment is posted.
The ‘encrypted payload’ plug-in will cause the biggest problem, since it contains an ‘ip’ field that generated base upon client’s ip.
With wp-cache, encrypted payload will be fixed, so the ip will not match the real commenter’s ip. IP mismatch will cause a minus 2.5 karma, which will prevent many normal comments comes in.
Permalink
Posted in wordpress
at 3:46 am
In 2.1 seems there’s no way to get extra space using <br /> and linebreaks.
I love linebreaks, and wordpress dev-team hates linebreaks.
Read the rest of this entry »
Permalink
12.29.06
Posted in wordpress
at 6:06 pm
Get Recent Comments is a very popular wordpress plug-in, to allow you show recent comments and trackbacks in you sidebar.
In recent update, it adds cache function so it will reduce db access and processing a lot.
However for utf-8 users, we’re running into two problems, first is the php wordwrap function is not utf-8 aware, and will be cut incorrectly. Second is that in wordpress, update_option() will not save serialized broken utf8 values correctly, so the cache function will not work at all without utf8_wordwrap() on a CJK blog.
I’ve done quick fixes on these problem:
- using utf8_wordwrap() from php.net, to replace wordwrap().
do base64_encode() before saving the cache to avoid escaping problem.
Here is the fixed file, you can grab if you need to use it in utf8 environment.
Updated: Sorry the conclusion is too quick, the cache problem is also cause by wordwrap(), with broken characters, the option will not be correctly saved into database. So with utf8_wordwrap() we don’t need base64_encode(). You just need one of them to allow cache to work in Chinese environment. The file is updated to latest version 1.5.1 with utf8_wordwrap()
Permalink
09.01.06
Posted in wordpress
at 9:50 pm
One click-install/upgrade on dreamhost is a pretty nice feature, but from time to time, it might take a little more than one-click.
For example, if you use one-click upgrading MediaWiki 1.6.x to 1.7.x, you’ll see problems if you don’t run MediaWiki config again. And if you use the one-click install to install WordPress, it doesn’t work well with utf-8. Here’s a mini how-to to let you install wordpress and use utf-8 properly on dreamhost.
Read the rest of this entry »
Permalink
08.23.06
Posted in wordpress
at 8:30 pm
FancyTooltips, base on Nice Titles, is a popular wordpress plug-in, which creates pretty and useful tooltips for “title” attribute, and <acronym> <abbr> <ins> <del> tags.
It’s a great script, but still has two nasty problem, I don’t have solution until last week.
Read the rest of this entry »
Permalink