On the basis that what I created was better than what was there
before, I did commit my changes.

I created a version for 0.6.3 and updated trunk for 0.7.

On Dec 18, 4:00 pm, Andy C <[email protected]> wrote:
> Chris
>
> I managed to import a Drupal 6.x site into Habari 0.6.3 using SQLite.
>
> I simply had to remove the check for a table called menu (c. line 68).
> The rest of the Drupal DB structure seems the same.
>
>                                                 if ( $has_node_type ) {
>                                                         $stage = 2;
>                                                 }
>
> Also, on SQLite, I had to populate post->id with the Drupal post id
> (otherwise the id was always 0 and a primary key violation happened
> when adding posts). I thought this was an auto-increment field but
> still.
>
>                                 $p = new Post( $post_array );
>                                 $p->id = $post_array['nid'];
>
> Both of these are hacks IMHO so I didn't bother submitting to trac but
> it may help you progress.
>
> Oh and the '$_POST->getArrayCopy()' change has to be applied for each
> occurrence of 'array_intersect_key'
> --
> Andy
>
> On Dec 18, 12:11 pm, Andy C <[email protected]> wrote:
>
>
>
> > Hi Chris
>
> > I made a couple of minor tweaks to the Drupal importer (missing PHP
> > close tag and a array type fix I merged from the WP importer).
>
> >https://trac.habariproject.org/habari-extras/changeset/2571
>
> > which means I can now activate the plugin and enter DB credentials
> > using Habari 0.6.3.
>
> > However, I only have a Drupal 6.x install and the code explicitly
> > checks for 5.x DB structure so if you're using 6.x, you may need to
> > make some additional changes.
>
> > HTH (a little).
> > --
> > Andy
>
> > On Dec 17, 8:56 pm, Chris Everest <[email protected]> wrote:
>
> > > Has anyone been able to use the drupal import plugin on Habari as of
> > > late?  I am getting an error in my plugin panel that says.
>
> > > I am using the latest version of Habari 0.6.3 and an svn version dated
> > > Oct 18 2009 for the drupalimport plugin.  Also, i have it in the
> > > user/plugins folder.
>
> > > "The plugin file
> > > /home/cex/www-habari/user/plugins/drupalimport/drupalimport.plugin.php
> > > had syntax errors and could not load."
>
> > > --
> > > Chris Everest

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

Reply via email to