Category Archives for Code

namStudio

Live Space Saver v1.0.4 - capable of exporting comments

 

Change Logs:
2009-05-04 v1.0.4 Fix WP2.7 incorrect timestamp issue
2009-04-09 v1.0.3 Enable comments exporting
2009-03-09 v1.0.0 Initial release

 

Since version 1.0.3, you can use Live Space Saver to export both of your blog content and comments to an xml file and import it into your WordPress blog system, also your can save exporting logs for your reference.

LiveSpaceSaver v1.0.4 for WP2.7 (download)
LiveSpaceSaver v1.0.3 for WP2.6 (
download)

 

Usage
(Enlish) >>>
(Spanish) >>>

 

WP-Forum ???? encoding issue is resolved

WP-Forum 2.2 (http://www.fahlstad.se/wp-plugins/wp-forum/) is a pretty simple forum style plug-in for WordPress, and easy to use, of course. Annoying thing is that it doesn’t support non-latin characters like chinese by default. It displays "????" question marks when add category or forum in chinese characters.

After dig the "wpf.class.php", issue can be resolved by adding "collate utf8_general_ci" right after "varchar(255)" or "varchar(20)" or "longtext in SQL CREAT TABLE line 1012 through 1081.

Ok, go to your database control panel like phpmyadmin, drop those tables begins with "wp_forum_". Then deactivate and activate WP-Forum 2.2. Try to add one category in chinese or other non-latin characters. See, they are there, and all question marks are gone!

Changes I made:
1. Translated WPF to chinese
2. Modified SQL by set charset to UTF8 in wpf.class.php
3. Increased the font size by remove tags like <small>
4. Add feature to let you turn off forum inside a page by simply change <!–WPFORUM–> to <!–WPFORUMNO–>
5. Download it here WP-Forum 2.2 Chinese UTF8 (
download)

GasPrice MIDlet: Toronto / Ottawa / Montreal - tomorrow’s gas price ToDaY!

Owe a phone that supports Java ME?
Able to side-load MIDlet?
Are you living in Canada Toronto/Ottawa/Montreal area?
Do you have a car?
Are you care about gas price?

If all yes, then you may need this Java MIDlet.
Put it on your MIDP 1.0 / 2.0 handset, run it and grant permission, there you go, you get to know tomorrow’s gas price ToDaY!

GasPrice.zip (download)

MSN Live Space Export To WordPress XML

A simple tool with easy understandable UI to let you export your MSN Live Space blog to WordPress XML in just one click.



LiveSpaceSaver v1.0 (download)


Features:
1. Easy understandable UI
2. Activity log show exporting progress
3. Minimum input no command-line


Pre-conditions Prior Use:
1. Change your blog name, refer below "How To Use"
2. Create "Secrete Word" in your blog settings
3. Change time format to "m/d/yyyy" via your blog General Options->Date and Time format"

 

How To Use:
1. Fill your blog name in "your-blog-name" field, e.g. fill the blue string http://mytestblog.spaces.live.com, make sure that you’re using a name choosed by yourself via your Live Space in Browser, Options->More Options->Web Address
2. Fill your blog’s secrete code, you can set this via Options -> Email Publishing -> Step 2 Secrete Word
3. Choose a default category for those imported posts, default set as "MSN Space", you can change to whatever you want
4. Hit "Export" and wait, it will take a while which depends on your internet connection speed and amount of the posts

 

Change Logs:
2009-03-09 Initial release


Let me know if this tool works in your hand……Enjoy

 

Development Tool:
1. SharpDevelop v3.0.0 Build 3800
2. Microsoft MetaWeblogAPI
3. CookComputing.XmlRpcV2