Importing on TextPattern
Just posting this real quick to help out anyone out there who’s having the same problem…
Having trouble importing entries from another type of blogging software into TextPattern? Nina and I sure were. We looked everywhere for documentation — third-party sites, the official TextPattern website, the TextPattern Wiki — couldn’t find a goddamn thing.
Shit, TextPattern’s own importing page doesn’t even give any help — it’s just a page with a couple of options and an import button. You can select all the options you want, click on the button ’till you’re blue in the face — it won’t do crap all. It’ll just give you an error message on the return page and that’s it.
Eh? WTF, you know? I finally came up with the idea that it was looking for a type of import file somewhere in a folder (most scripts like this that don’t ask you to specify the file on the web page do), but there is _absolutely no documentation anywhere that says this_.
So, what did I have to do?
Go into the goddamn PHP code and examine it, line by line.
And there, I found it:
*//checks the existence of a file called import.txt on the import dir.*
*// Used when importing from a file*
*function check_import_file()*
Can somebody please tell me why it would’ve been so farking hard to put a little line saying “Oh, by the way, you need to rename your data you want to upload as ‘import.txt’ and ftp it to this directory?” Someone, anyone? TextPattern people?
Well, either way, we found the solution. Now to try it.








February 7th, 2007 at 20:45
Yea, that’s what I was saying the other day.
February 10th, 2007 at 23:25
ha ha!