Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-17 21:07:42

rblumberg
Member
From: Cincinnati
Registered: 2005-10-01
Posts: 10
Website

How to import a WordPress blog

I’d like to move the blog I’ve been maintaining at http://iswhatido.org to Textpattern.

In the almost total absence of any docs on how to do that, here’s what I’ve done:
  • dumped my wordpress database and restored it on the txp host with the name ‘wp’
  • added the following lines to the beginning of the script textpattern/include/import/import_wp.php:
    <blockquote>
    $b2dblogin = “my_login”;
    $b2db = “wp”;
    $b2dbpass = “my_password”;
    $b2dbhost = “localhost”;
    $wpdbprefix = “”;
    $insert_into_section = “article”;
    $insert_with_status = “1”;
    $default_comment_invite = “0”;
    </blockquote>
    I did that to provide what I thought would be the proper values to the doImportWP function.
  • I then entered into the browser the URL http://mysite.com/textpattern/include/import/import_wp.php

And nothing happened. The browser window went blank, and the site remained as it had been.

If anyone can give me any pointers here, I’d be most grateful.

Richard

Offline

#2 2006-04-17 22:13:34

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: How to import a WordPress blog

1) Undo the editing.

2) Login to textpattern, go to admin -> import

3) Select where to import from and enter connection-details.

Offline

#3 2006-04-18 00:40:03

rblumberg
Member
From: Cincinnati
Registered: 2005-10-01
Posts: 10
Website

Re: How to import a WordPress blog

That was entirely too easy. (I guess that accounts for the lack of articles explaining how to modify the import scripts :-)

Thanks very much.

Make that very, very much.

Richard

Offline

Board footer

Powered by FluxBB