I am attaching a patch that I took against the head of the 7.x-1.x branch. This adds and fixes the following issues:
- Import tags and attach to nodes (requires taxonomy module enabled and a tags field attached to your blog content type). You select the field on the settings page before importing.
- Import node author and set to that uid if the user is in the database. Looks at the email of the user who made the original post on blogger, then searches for that email address in your database. If it finds it, that is the author of the post. If not found, then the importing user is used (this is what the old functionality was).
- Put comments in the order that they were submitted (oldest to newest).
- Dates for comments were not being saved correctly, this fixes that.
A couple of other things that I didn't include in the patch, but that I did because I couldn't figure out the options:
- Added a call to uff8_encode() on line 195 of batch.nodes.inc as I had some odd characters on my blog that were killing the import: utf8_encode(html_entity_decode($post['value']));
- Added $node->comment = 2; to line 192 of batch.nodes.inc. Not sure if this is needed or what, but it's the only way I could get the comments to show up (it may have just been a setting thing on each node, but yeah).
| Comment | File | Size | Author |
|---|---|---|---|
| bi-7x1xfixes.patch | 10.62 KB | j_ten_man |
Comments
Comment #1
ParisLiakos commentedThank you!!very appreciated.
I will check it later and commit it
Comment #2
ParisLiakos commentedI tried it,successfully imports tags..about the $node->comment = 2; you are write it is a setting..comments were imported and set to hidden to the node settings..if you change the setting there it appears correctly..
but still it was kinda a bug having the comments set to hidden,i think most people want them to appear so i did a commit adding
$node->comment = 2;like you did!thanks
i commited it here