Forum Replies Created
-
In reply to: Vanilla import – lost nested replies
Heh, no I didn’t see that.
Thanks again for all of your help, it is impressive how quickly this was resolved 🙂
In reply to: Vanilla import – lost nested repliesI figured it out for anyone else who may need the answer. I added a new callback method to converter.php that checks for the old vanilla ID of the reply_to and returns the new post ID.
https://gist.github.com/stefanich/4f8f7b436b87287f44bf
Tested it, it works 🙂
In reply to: Vanilla import – lost nested repliesI am looking into how the “callback_method” value in the field_map array works. I see that when a reply is created, a post meta value is saved to store the old and new post IDs together. I wonder if I can use a callback_method to get the new post id for the replyto based on the _bbp_post_id meta value?
Is there any documentation I can look for to learn how to use the callback_method?
Thanks!
In reply to: Vanilla import – lost nested repliesIt looks like the ID of the parent is the old vanilla ID and not the new bbpress post ID, is there a way for me to make sure it saves the new ID as the parent?
thanks!
In reply to: Vanilla import – lost nested repliesStephen,
The import did save the _bbp_reply_to in the postmeta, but it does not seem to be affecting the nesting of the replies.
Since the data is there, maybe there is some way I can override the listing of replies to make them show in the nested list?
Thanks!
In reply to: Vanilla import – lost nested repliesStephen,
Thanks a bunch, I will try this out first thing tomorrow and let you know how it goes.