Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Update Vanilla User Status from within WordPress
I coded a wordpress widget that shows different things depending if the user is logged in or not. Since I have Vanilla and Wordpress accounts as one cluster thingy, meaning that if you're logged in on Wordpress, you are logged in on Vanilla and vice-versa.
Now my real problem is this - is there some way, some sort of request or post form that I can use to update the current status of the currently logged in user in vanilla? I've tried to take the code from the profile page, but it just re-directs me there with the field filled in, which is not what I want. I want it to actually post the update, and then re-direct back to the page the user was in previously.
How would I go about doing this? Something like User IDs? Because I can easily get the wordpress user ID, and then give it to Vanilla, find the correct user, and update the status.
I know how I want to do it, but I just don't know what APIs or calls I need to make to do this on the Vanilla side.
Any help is appreciated.
Now my real problem is this - is there some way, some sort of request or post form that I can use to update the current status of the currently logged in user in vanilla? I've tried to take the code from the profile page, but it just re-directs me there with the field filled in, which is not what I want. I want it to actually post the update, and then re-direct back to the page the user was in previously.
How would I go about doing this? Something like User IDs? Because I can easily get the wordpress user ID, and then give it to Vanilla, find the correct user, and update the status.
I know how I want to do it, but I just don't know what APIs or calls I need to make to do this on the Vanilla side.
Any help is appreciated.
Tagged:
1
Comments