• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Valid User Account Help!

#1
Hi folks,

I'm wondering, is there anyway to make it so people who register on my forums have to have a valid minecraft user account before they can register?

Will to throw a few bucks to anyone that can help!

Thanks,
Eric
 

Chris D

XenForo developer
Staff member
#2
I don't know anything about Minecraft, but if there's a public API that can check Minecraft names then in theory it's just a case of setting up a custom field that is required during registration which uses a validation callback to check the entered name against the API.
 
#3
I don't know anything about Minecraft, but if there's a public API that can check Minecraft names then in theory it's just a case of setting up a custom field that is required during registration which uses a validation callback to check the entered name against the API.
So... what you are saying is... my request is in theory possible :)?
 

Jake Bunce

XenForo moderator
Staff member
#6
Cool... I'm a forums noob. So, I'm not entirely sure how to setup a callback to validate against minecraft.
You need to be a programmer.

Here is a skeleton for the callback:

http://xenforo.com/community/resources/custom-user-field-callback-validate-value.379/

If you need to connect to a separate db for minecraft then see this post for example code to connect to the second db:

http://xenforo.com/community/resources/run-query-on-user-upgrade-code-example.396/
 
#7
You need to be a programmer.

Here is a skeleton for the callback:

http://xenforo.com/community/resources/custom-user-field-callback-validate-value.379/

If you need to connect to a separate db for minecraft then see this post for example code to connect to the second db:

http://xenforo.com/community/resources/run-query-on-user-upgrade-code-example.396/
Is there a way to make the accounts check the Minecraft URL that returns a Boolean value. I forget the address at Minecraft.net though.