-ExotiC- @marcozambi
I'm also trying to use this script to test the migration of a SMF board to Flarum and came across this issue (and a bunch of others). Although I can't say why, the user list is being limited by the last part of the query (the WHERE part):
WHERE
".$table_prefix."attachments.attachment_type = 0
If you remove that, it will at least select every member instead of just a few (in my case ~100 in a little over 10000).
On other issues:
I don't think anyone has mentioned importing attachments other than images using flagrow/upload, the replacement for flagrow/flarum-ext-image-upload which the script is using. I have no idea on how to approach this, so if anyone has any pointers I'd be welcome to try.
This line makes no sense: $src_dir = $attachments_dir[$idx_src_dir];and I replaced it by $src_dir = $attachments_dir[0]; and along with removing the WHEREstatement I mentioned earlier makes the import output clean and tidy. But making that change leaves me thinking what is the $idx_src_dirvariable for.
That said, so far I've imported Users, Categories (boards/sub-boards) and Posts. I'm going to check on these to see if everything is passing on as it should or not, and later on I'll try the attachments part.
Edit: Posts imported more or less ok, but it timed-out and I'm yet to verify what's missing.