• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Minecraft Identity Service

James

Well-known member
#1
The attached file will verify that the custom user field has a valid, paid, Minecraft user.

Download and extract the Minecraft.zip attached below.
Upload the Minecraft folder to your /library/ folder, creating /library/Minecraft/UserField.php

Create a custom user field as a single-line text box specifying whichever options you want at admin.php?user-fields.

The only requirement is that the PHP callback in the "Options for Text Fields" is set to Minecraft_UserField::verifyAccountName

You also need to create a new XenForo phrase named no_paid_minecraft_account.

It should now work.
 

Attachments

James

Well-known member
#3
Yes, but it also does extra checking to make sure that the account entered is a paid Minecraft member.

Screenshot_2.png
(That's not actually my Minecraft name - just random names I was using for testing)
 

Cezz

Well-known member
#12
I'm not sure if the $identities array is exposed in the member info. If it is, you can put it on :)
It is but it isn't an array its serialised so you would need a different mod to de-serialise the array then use the correct value! (Though this may have been changed in 1.1
 

James

Well-known member
#13
It is but it isn't an array its serialised so you would need a different mod to de-serialise the array then use the correct value! (Though this may have been changed in 1.1
I noticed this yesterday and decided to edit XenForo_ControllerPublic_Thread instead.
 

James

Well-known member
#17
You can use the custom profile fields to add them at registration, though you won't be able to validate whether or not they have paid.