10.21.07
Minor update for Live Sync
- Only Administrators see the config page
- Fix the compatibility problem in 2.3
Just another priv’s weblog
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.
Check list:
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.
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:
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.
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 »
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:
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()
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 »
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 »
Welcome to Priv’s blog.
The plan is, to write some web developments and other programming stuff here in english, to communicate more to the world than in chinese.(also, practice my poor english)
Maybe I’ll translate several entries on my original Chinese site first