Answer the question
In order to leave comments, you need to log in
How to use your database?
There is a site with registration and authorization of users, is it possible to hook up WP and a forum to it, for example, SMF so that one user database is used? (Accordingly, when switching between the forum, blog and main site, the user remained logged in) If possible, please tell me how? I would be very grateful for examples. Thanks
Answer the question
In order to leave comments, you need to log in
session_start; if on one domain, then everything is simple. Otherwise, you will have to dance with a tambourine.
WordPress allows you to use a third-party wp_users table, but then you need to rewrite the WP_Users class to fit your structure and data (inherit or replace). You can make your own oAuth server, one common for all resources - site, forum, WP. In order to avoid additional dances with a tambourine over the forum, I would use BBPress - a forum engine based on WordPress. It will use the same user mechanism as WP, which means less work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question