posts in: addons / modules
Will export all of your PSG posts, tags, and comments into the Movable Type Import / Export format. This will allow you to import this data into other blogging software, such as Moveable Type or Wordpress.
To use, you will need to configure it slightly – either copy the configuration array (which defines the location of your PSG files) from PSG’s index.php, or include a file which sets that information (for me, that was blogadmin.php). You will also need to change the ‘AUTHOR’ field in the dump_post function to whatever you want these posts to be attributed to (assuming they are all by the same person, of course).
Known issues:
- For some reason, when I imported the file generated here into Wordpress all of my comments had quotes and doublequotes escaped after import, despite them not appearing that way in the dump file. I fixed this by manually replacing those strings in the comments table in the Wordpress database.
- Permalinks inside of posts to other posts will not work, natch.
An alternate way to display archives in PSG- just include it along with psg.php, add a few lines of code, and you can browse archives by month (similar to most other blogging software).
I am now an official PSG developer, so this, along with other changes I’ve made, have been incorporated into the main codebase. It would be wise to simply install a recent version, instead of applying the module here as-is.
This is only provided here for historical purposes.


