Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to create new users without a FORM or moderation
I would like to integrate Vanilla into a webapp that I am writing. I have been trying to wrap my head around all of the complexity of People and I am failing to see the easy way to unify my logins.
What I am trying to do is add a hook in my webapp's UserRegistration function that will send off username/password to a small script that will keep the Vanilla-People tables up-to-date without all the mucking about with email-validation and vanilla-forms and role-selection and stuff. I thought about trying to go around the Vanilla code altogether and connect with the Vanilla database directly, but it seems like the People information is spread across multiple tables and I was afraid of breaking some sort of silent inter-table dependency.
Any help would be greatly appreciated.
0
This discussion has been closed.
Comments
I've been trying to do the same thing. In my case, I've been putting together a social networking app and wanted to integrate Vanilla as a support forum. Since the users registered on the socnet side, I want to have Vanilla authenticate through our member DB as well as lookup basic member info from there as well. There are a number of reasons to do more than just pass username/passord into a new record that Vanilla needs. This would need to be done whenever: new user registers, user changes password, user changes their "displayed" or real name, user changes email address, etc. Additional hooks would need to be if the user gets banned for some reason which should prevent access to the forums.
Considering the amount of coding and the availablilty of what I can provide to back to Vanilla's routines, I've been trying to break down People and stitch in some code. No luck as of yet.
I read the forum postings and and haven't yet been able to figure it out successfully.
The most important things I see are passing Vanilla the appropriate user ids and making sure some core user fields are set such as role and other specifics. There would need to be hooks to some generic functions or classes that could be swapped out. And within those, custom queries written to return to vanilla information it needs.
If anyone has anything workable, I'd love to see it. And if I can get things to work I can share what I've come up with. I think Vanilla is a great discussion tool and far exceeds anything that's currently out there.
Best,
Cent