You should use the vB5 API to create nodes instead of directly inserting records in the database.
http://vb5support.com/resources/api/
There's a blog on how to login to vB5 using the API. This is not exactly what you need but it will show you how to use the API.
https://www.vbulletin.com/forum/blog...n-your-website
Hope this helps you get started.
No members have liked this post.