Automate login/registration from site

Lucas Young

New member
We have a site where xenForo is integrated as a forum. We currently use code posted elsewhere to display the latest forum posts on our site, but we'd like the ability for users who register on the the site to have a forum account created automatically, and when they log in to the site, they're logged in to the forum as well.
Is this possible? Does anyone have some code or examples of how this might be done?

Many thanks in advance

Lucas Young