Recent Topics

1 Jan 02, 2005 09:33    

I've written a plugin to import blogs from Blogger. It is available for version [url=http://homepage.mac.com/danielmorrison/b2e/tools.php.zip]0.9.0.10 (and newer)(sort of a hack)[/url], and for the [url=http://homepage.mac.com/danielmorrison/b2e/_bloggerimport.plugin.php.zip]newer CVS plugin architecture[/url].

INSTALL for NEW CVS PLUGIN
Simply unzip the file, and place in your blogs/plugins directory. Then go to your admin->Settings->Plug-ins page to install it. Finally, you will see a Blogger Import section on your Tools page.

INSTALL for 0.9.0.10
Simply unzip the file, and replace your blogs/admin/tools.php file with the one provided. You will see a Blogger Import section on your Tools page.

NOTES
- The Plugin version will see the most updating, but I'll try to update both if I make any big changes. (I had no idea how much the codebase had actually changed from 0.9.0.10. Great work guys, keep it up!)

- It has only seen limited testing! I need help testing on some more Blogger sites, so if anyone can try it, I'd really appreciate it.

- It has minimal error checking. If something goes wrong, you'll likely get some ugly red SQL error message. Sorry. Maybe later.

- Is it dangerous? Gee, not really. The worst it can do is add some posts/comments/users to the DB that you'll have to delete.

Enjoy! Let me know if there are some amazing features I missed, or large problems to fix. :D

2 Jan 11, 2005 21:46

Hi daniel, I tried to use your plugin (0.9.0.10 version). Everything worked great until I actually got to Step 4 of importing the new Blogger file. The message I got was this:

Warning: file(http://www.sportswebconsulting.ca/vsport/project/): failed to open stream: Operation timed out in /home/virtual/sportswebconsulting.ca/webroot/htdocs/b2evolution/blogs/admin/tools.php on line 172

I am pretty much a newbie, so not really sure what happened. Do I have to explicitly name the file that is being imported??

3 Jan 11, 2005 21:56

Actually, it looks similar to a timeout message I am having with Mambo, which is also on the same domain.

I know this isn't the place for that question, but I am wondering of they are inter-related and I am doing something wrong, or there is a server setting that I don't have on/off.

1. Can't get the Blogger file (which is on sportswebconsulting.ca) into the Plugin.
2. Can't get any RSS feeds that are also on sportswebconsulting.ca to appear in my Mambo site.

Is there a setting that allows me to pull things from the same domain?? Thanks for any help that can be offered. ;)

4 Jan 11, 2005 22:07

OK, I changed the filename for import to a relative one (ie. "../../../index.html") and it worked fine!!

However, I ran into problems at the next step, importing users. I tried to import everyone from that blog as a new user, and I got:

Warning: array_unique(): The argument should be an array in /home/virtual/sportswebconsulting.ca/webroot/htdocs/b2evolution/blogs/admin/tools.php on line 274

Warning: Invalid argument supplied for foreach() in /home/virtual/sportswebconsulting.ca/webroot/htdocs/b2evolution/blogs/admin/tools.php on line 274

I just assigned everyone to user:admin and hit continue. All of my posts came in fine, I'm pleased to say!

Don't know if any of this is helpful or not. I've got some other old blogs at Blogger that I can try again if there's something specific you want me to look for.

5 Jan 17, 2005 09:53

This tool was fairly easy to use. Thanks for developing it! I wish I would've went straight from blogger to b2evolution now. I have a few months of posts on Nucleus I need to migrate over somehow now...

6 Jan 18, 2005 06:56

I updated the code. Based on smithers' problems, I found that I was not testing for a blog without comments.

That is fixed. Use the links above.

7 Feb 11, 2005 12:53

I did what you said
I got this errror

Fatal error: Maximum execution time of 30 seconds exceeded in c:\program files\easyphp1-7\www\rojbash\admin\tools.php on line 172

mind that I am testing it on my local host .

8 Feb 11, 2005 14:54

It's just timing out. Try changing the length of time php takes to time out in your php.ini file (I think).

9 Mar 21, 2005 13:28

I tried using this plugin. I followed all the steps (with 0. 9.0.10), and at the end got the message that the blog had imported successfully. Unfortunately, none of the posts had actually been added. Any idea what went wrong?

10 Mar 21, 2005 13:36

Are they in the database? Have a look using phpmyadmin or whatever your host provides.

11 Mar 21, 2005 16:12

Which table should I look in?

12 Mar 21, 2005 16:14

evo_posts, if you haven't changed anything from the defaults.

13 Mar 21, 2005 16:20

Just tried it again (third or fourth time), and this time it seems to have worked perfectly, which is great. What is not so great is that I don't know why it didn't work before.

14 Mar 21, 2005 17:09

Sorry you were having problems.

I wish I had some easy answer, but I don't.

If you forward me your hosting setup and the import file, I'd be glad to give it some thought.

15 Mar 21, 2005 17:30

Thinking about it, I was having problems with Blogger originally. It could be the problem was there, rather than with the plugin.

16 Mar 29, 2005 22:37

I can't get my dates to import from Blogger - is there a way to do this or something I am missing in setting up the blogs for import?

18 Apr 02, 2005 06:53

Catbabe, my only guess is that you aren't setting the date settings correctly. Doublecheck, and let me know if you still have problems!

19 Apr 22, 2005 20:23

I followed the instructions and I can't get it to work. It doesn't show up in the plugin list...

20 Apr 22, 2005 20:26

Are you speaking of the MT import script (which also works for blogger) or the custom blogger import script. I've had some success with the MT importer and you can find it under the tools tab in the b2evo backoffice.

21 Apr 22, 2005 21:04

I was talking about the custom blogger import thing.

22 Apr 23, 2005 05:41

Thanks for this, I'm goign to recommend it to a friend. Hope it helps for him.

23 May 09, 2005 06:19

This is a GREAT tool! I would like to know, however, if there is a way to customize this script to import new posts every time it is executed (via cron tab) It would always be importing from the same blog on blogger.com. I want to do this because my blog on blogger.com is an [url=http://www.audioblogger.com]audioblog[/url] (mp3) that I post to with a cell phone.

24 May 09, 2005 06:59

kraemers,

That is an interesting idea. It could definitely be done with some hacks to the script. Specifically, I'd remove all the preliminary steps, and maybe change it to use some more friendly template (since I'd assume that every post would look the same).

Are you a PHP coder? If so, I'd be happy to give you hints. If not, maybe I can look into it sometime this week.

25 May 10, 2005 19:18

danielmorrison wrote:

kraemers,

That is an interesting idea. It could definitely be done with some hacks to the script. Specifically, I'd remove all the preliminary steps, and maybe change it to use some more friendly template (since I'd assume that every post would look the same).

Are you a PHP coder? If so, I'd be happy to give you hints. If not, maybe I can look into it sometime this week.

I can change hacks pretty well, but I am not very at writing new code. I would appreciate help on this. Can this script run by itself without logging in to the admin section?

26 Aug 28, 2005 00:17

I can't make this work with 0.9.0.12
Is it me or its not made to work with the latest version?
It just doesn't show in the plugin section.

27 Nov 29, 2005 01:45

Firstly thanks for your work.
Secondly It has a problem with post with images, because blogger insert code when you download an image. Who can I solve that?

A blogger image code example:
<div style="clear:both;"></div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4144/950/1600/Esasypodcast.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://photos1.blogger.com/blogger/4144/950/200/Esasypodcast.jpg" border="0" alt="" /></a><div style="clear:both; padding-bottom: 0.25em;"></div>


Form is loading...