Hello,
I'm new to WordPress and have decided to build it into a WWW search engine I've built mainly for college students and professors. I'm almost already in love with WP after 2 days. :)
On to the question . .
First let me state that I'm using WPMU. I have a login system already on my website and I want the users to have the ability to utilize their same login, I've successfully accomplished this part by adding them to the "wp_users" table when they create an account.
Now . .
I would like to automatically create a blog for the user as well when I add them to the "wp_users" table. As I understand it the blogs are stored in the "wp_blogs" table . . . my question is: how do I link a blog in the "wp_blogs" table to a user in the "wp_user" table so the user can manage this blog upon login?
Thanks in advance!
I can maybe make my question simpler by just asking is their an API to register users and create a blog for them at the same time?
Hello Again aliixer. In site dashboard go to Site Admin > Options then in "Allow new registrations" where you can disable or enable registration and who or what can be registered. there are 4 options
- Disabled
- Enabled for all. Blogs and user accounts can be created.
- Enabled for users only. Only user account can be created.
- Enabled for blogs only. Only logged in users can create new blogs.
and then if you already have the users hooked up to your other system, you can just direct them to create a blog if they wish.
Probably the easiest way.
Excellent. I've added a button next to "View Site" in the back end for "Create a new blog". This allows me to automatically register the user in the database and upon login they can create a blog at a time of their choosing.
I appreciate the help.