PDA

View Full Version : VB5 API - Moving Users to Different UserGorup


cryptosaurus
02-05-2018, 12:41 PM
I have a situation where I have an existing website with a community of users. We are integrating a forum and need to have those existing users brought over.

The forum is private, and therefore, I've required that any new registrations be moderated.

I've already gone about being able to provide a registration mechanism using the API that will create their account but it ends up putting them in the moderated users group.

Can anyone point me in the right direction as to how I would be able to move these users from the Awaiting Moderation group to the Registered Users group via API or programatically?

If you feel there's a better approach to accomplish what I'm trying to do, I'm open to that as well.

I should note I'm using VB5 Cloud. I am a .net developer so just getting this far using PHP has already been a struggle :)

In Omnibus
02-05-2018, 01:07 PM
The easiest way would be to set up a usergroup promotion from the awaiting moderation group to the registered group after one post or after 1 day or however else you care to set it up.

No programming required.

cryptosaurus
02-05-2018, 01:19 PM
Appreciate the response. The problem with that is being it is a private forum, I don't want people outside my existing community to be able to register and post, or even see content.

I need to allow for new forum registrations thru my existing platform (via API), but I don't want people outside my platform registering.

Am I missing some sort of setup options that would allow this?

In Omnibus
02-05-2018, 02:52 PM
If you set up a question and answer as part of registration with a nonsensical answer only your members will be given you can avoid the problem of unwanted members.

cryptosaurus
02-05-2018, 03:07 PM
Ahh now we're getting somewhere. Are these answers able to be provided to the Register API function?

I have registration done thru my platform where they just enter the username they want to use to make it as painless as possible for them. The platform takes care of everything else including logging them in via a menu link.

--------------- Added 1517851782 at 1517851782 ---------------

Appears I will need to leverage the Human Verify API (https://www.vbulletin.com/forum/articles/programming-documentation/mobile-api/4023444-human-verification-mobile-api?369-Human-Verification-Mobile-API=) info to go down this route. This give me what I need to continue.

Thanks alot!

--------------- Added 1517852602 at 1517852602 ---------------

OK I was wrong - apparently registering users via API bypasses human verification. Even Easier!!