Blog to Wiki import
From Bee
|
New: 2007: Wordpress to Blogger
From Blogerdev list, a simple tool to import all posts from wordpress to blogger/blogspot using (a) Google Data APIs java client library and (b) apache xml-rpc library. Find it here
Using Wordpress blog to upload to Wiki
Download the GZ file here
- Get my version here: http://blogger-bee.com/Downloads/WPexportfor2.tar.gz save it to wp_content/plugins and activate it on the WP Admin panel
- 1,000 apologies as the last update to the gz file was missing some modules. The issue is now fixed Renmiri 22:22, 14 April 2006 (PDT)
- This Export Wordpress plugin was available for WP versions 1.5 and lower from E. Pierce but I upgraded the script to 2.01 and added an XML output and an XML Wiki output
- Note: Eric's version is for WP 1.5 or older and does not have the Export to XML or XML/Wiki nor the sample XML/Wiki files
A simpler way
I have done a Wiki extension that allows people to include content feeds in their pages. My version 1.0 works very well, (see RSS2html for details)
See Example 1, Example 2, create your own feed Dynamic RSS, or see more in Category:RSS2HTML
Why use Wordpress to feed Wiki Media ?
- It's php and mysql.
- It's open source.
- It's secure and has been used for several years
- Wordpress has backup, import, export, spell check and many other useful tools
- Wordpress allows "extensions" just as WikiMedia (they are called plugins).
- Wordpress can import from Blogger.com and many other blogs (example: blogger import)
- Blogger.com has a new plugin to post Word files on Blogger.com]
- Since Blogger.com is not open source we can use Wordpress as a "bridge" between MS Word and Wikipedia.
- A bridge is a good idea to improve security: Admins can completely restrict access to Wordpress making sure only certain users can get content into Wikipedia
- Wordpress "talks" to bloggar, writely and hundreds of other xmlrpc clients
- Wordpress cleans HTML and translates it to UTF8
- Wordpress compatible clients such a Bloggar have a nice user gui and spell check. They would be a great client for wiki book writing. Writely does the same on the Web and Writely imports from Word!
- Wikipedia lacks a blog tool. A kind of "virtual water cooler" where members can comment and talk without being "mercilessly edited" and viewed by any search in the Wiki... (Optionally this feature can be turned entirely off)
And the best part is: No changes on the Wiki side and only minor changes on the WP side
Nothing "touches" your Wiki install since we are using Wikipedia's standard Special:Import page. On the Wordpress side you have to add 1 line to wp_config and install a standard WP plugin, which is very fast, faster than installing a Wikimedia extension!
See details and download the source below
Note: The gzip file comes with 2 XML samples (a sample of one single page import and a sample of my Wordpress Blog Export Output with multiple pages) you can save any of them to your hard drive and import to your Wiki right away, (and delete it later is easy: they will all be user contributions by IP 127.0.0.0) Renmiri 09:51, 25 February 2006 (UTC)
Installing the importer
One Time only
Install Wordpress 2.0
Source: http://wordpress.org/development/2006/01/201-release/ and http://wordpress.org/latest.zip
- 1 - Download v 2.01 from wordpress.org and upload it to your server
- 2 - Get wp_config set up and get Wordpress to work
- 3 - Add my plugin
- 4 - Add 1 line to wp_config to better enable the wiki export
$wgCat= 99 ;
- 5 - The fastest way to create a category 99 is to go to phpMyAdmin and add it to the wp categories table.
- Note: You don't have to use category 99, the script will work with any category you set up in wp_config
Plugins to add/ activate on WP
- Backup - to backup wp database. Comes with the 2.01 release but you must activate it on the Admin panel (the same plugin can be obtained at skippy.net)
- Export Wordpress - This plugin was available for versions 1.5 and lower to export WP to movable type ( from E. Pierce) but I upgraded the script to 2.01 and added an XML output and an XML Wiki output
Get my version here: http://blogger-bee.com/Downloads/WPexportfor2.tar.gz save it to wp_content/plugins and activate it on the Admin panel
Importing
- 6 - use the Blogger for Word tool to save Word files to Blogger.com, go to your Wordpress and use Admin to import from Blogger. You can also import from other blogs or use a PC client with nifty spell checking and formating (such as bloggar) to post to Wordpress, or cut and paste from Word or the web into wordpress' edit window... At wordpress edit and save if needed, and tag any post you want to import into Wiki as category 99 (the $wgCat you set on step 4)
- 7 - Go to Admin "Options" and select Export, Wiki.
- 8 - click on the output box, type Ctrl-A and Ctrl-C to copy the entire thing. Paste the clipboard to an empty text file using Word, notepad, etc.. Save the file to your hard drive.
- 9 - Go to your Wiki, bring up your Special:Import page and upload the file you saved on step 8.
- 10 - Tada! Your newly imported pages are there for you... They all are tagged as contributed by IP 127.0.0.0 so you can see them all at Special:Contributions for that IP address.
And the best part is... Nothing "touched" your Wiki instal
To do: Tie up loose ends on Blog to Wiki import
Someday I might make it save the output to a file or tighten the bad character conversion. Until then, you are welcome to play with it, using E. Pierce's original GNU licensing his plugin and mine are Open Source.
Renmiri 00:38, 25 February 2006 (PST)
Wishlist
- Spell checker for WP http://www.coldforged.org/spelling-checker-plugin-for-wordpress/ only available for 1.5 so far
- Automation of the whole process by letting wordpress plugin work with wikimedia extension. Wikimedia extension would import pages from an url once in a while. This url would be the wordpress export script.
- A checkbox in wordpress for including post for export in stead of a category ( use rc-custom-field-gui plugin for wordpress and something like if ((get_post_meta($post->ID, 'Export_to_wiki') within the loop in the export script )
- Automatic install of wordpress plugin (above suggestion would help)
- Configuration of plugin within wordpress dashboard


