I'm afraid this went a bit over my head, would it still work with an .sql file backup?I am assuming there are too many forum nodes, hence you are not doing it from the backend.
Look at the actionSave method of XenForo_ControllerAdmin_Forum class. What you can do, is write a simple addon (or add a method to an existing addon) which queries your old database for the input data required by the actionSave method and then has the same code as the actionSave method to write the data. This would be quicker and would take care of all dependencies.
Yeah all the threads are still there. And when I put the node in xf_node I can see it on my node list but I cannot edit it and it shows 0 threads being there. I'd prefer to make new forum and re-associate as a last resort, is there no way to know which tables the missing node info is kept?Threads are not deleted when you delete a node. I suggest creating a new node in your Admin CP, then run a simple query to reassign the threads:
http://xenforo.com/community/threads/move-all-discussions-in-one-node-to-another.36005/#post-409341
Yeah all the threads are still there. And when I put the node in xf_node I can see it on my node list but I cannot edit it and it shows 0 threads being there. I'd prefer to make new forum and re-associate as a last resort, is there no way to know which tables the missing node info is kept?
I accidentally deleted two important nodes. Does your proposed solution for restoring threads still apply in most recent version of XF?Threads are not deleted when you delete a node. I suggest creating a new node in your Admin CP, then run a simple query to reassign the threads:
http://xenforo.com/community/threads/move-all-discussions-in-one-node-to-another.36005/#post-409341
I accidentally deleted two important nodes. Does your proposed solution for restoring threads still apply in most recent version of XF?
We use essential cookies to make this site work, and optional cookies to enhance your experience.