Glenn Henshaw, AKA thraxisp contributed a package of scripts on this patch tracker on 2003-11-13. You should not expect these to work independently of the versions used, but they should be a good help for someone that has to convert. Feel free to document better those scripts and contribute your fixes.
Scripts provided :
pn_article2tiki.php
- Migrate your postnuke articles into Tiki Articles.
I wanted a slightly different script for importing Postnuke articles over. The underlying principle was to be able to run the conversion script any number of times to update Postnuke articles into Tiki and not have to worry about balooning overlapping records into your database. Then I decided I wanted html to wiki syntax conversion built in which is when things got out of hand. pn_article2tiki.php
is my script to handle all this.
This script works on my particular installation (php-4.4.0 and MySql-4.1.15). Although I expect the code to be reasonably portable, I make no guarantees. Expect to get your hands dirty.
The program relies heavily on PHP MySQL functions and Perl-Compatible Regular Expression Functions. You'll need to have those extensions installed and be using a MySQL database then for this to work.
pn_article2tiki.php
, the colliding document from Postnuke will come in as a new articleId). Otherwise objects of identical timestamp are replaced with the Postnuke data.
html2wiki
function
html2wiki
function recognizes tags to passthru data you don't want converted. If you surround a portion of your Postnuke article with <!html2wiki
function is likely to mutilate.
MAKE A BACKUP OF YOUR DATABASE. Seriously. There's no guarantee that the script won't munge everything.
Unzip pn_article2tiki.tgz
into a directory you can point your browser to. I strongly suggest you secure this directory (eg. user authentication). It will soon contain a config file with your database password in clear text. (You could also dump the files in some private directory and parse it by php manually but the output won't be as pleasant).
Edit the pn_article2tiki_cfg.php
file. You'll basically need to change just about every line to properly configure the script for your system. The file comments will tell you what to do.
Point your browser to pn_article2tiki.php
. Perhaps it will work.
After the script has run, you must manually:
1) |
15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting |
2) |
19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting |
3) |
Tiki birthday |
4) |
17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting |
5) |
21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting |
6) |
19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting |