XenForo comes with numerous Identity Services built in such as Windows Live and Skype but sometimes you may wish to let your members add others.
In this tutorial I will show you how to create a custom Identity Service to allow your members to add their XenForo Community user name to their profile.
Step 1
Before you can add a new Identity Service in the admin control panel, you will need to create a php file in library > XenForo > Model > IdentityService. You can name it whatever you wish but to keep things simple and so I can easily see what the file does, I named mine xenforo.php
In xenforo.php, you will need to add the following code.
Step 2
Now the php file is created, we can go into the admin control panel and add a custom identity service which is located at Admin Control Panel > Users > Identity Services which will look like this;

Click on Add New Identity Service which will then give you this;

Now you have to enter the details for this identity service, you can use any thing in these fields except the PHP Model Class Name which must be the same as stated in the php file.
Service ID: xenforo
PHP Model Class Name: XenForo_Model_IdentityService_xenforo
Service Name: XenForo Community
Account Name Description: Your user name

Click Save Identity Service and now your done.
Now your users will see an extra option on their contact settings page.

Once they enter their details, their profile page will look like this.

And there you have it, a working customer identity service.
I hope this little how to is helpful to you, feel free to ask questions if you're unsure of anything.
--Doctor
In this tutorial I will show you how to create a custom Identity Service to allow your members to add their XenForo Community user name to their profile.
Step 1
Before you can add a new Identity Service in the admin control panel, you will need to create a php file in library > XenForo > Model > IdentityService. You can name it whatever you wish but to keep things simple and so I can easily see what the file does, I named mine xenforo.php
In xenforo.php, you will need to add the following code.
PHP:
<?php
class XenForo_Model_IdentityService_xenforo extends XenForo_Model_IdentityService_Abstract
{
protected function _getIdentityServiceId()
{
return 'xenforo';
}
static public function verifyAccountName(&$accountName, &$error)
{
return true;
}
}
Step 2
Now the php file is created, we can go into the admin control panel and add a custom identity service which is located at Admin Control Panel > Users > Identity Services which will look like this;

Click on Add New Identity Service which will then give you this;

Now you have to enter the details for this identity service, you can use any thing in these fields except the PHP Model Class Name which must be the same as stated in the php file.
Service ID: xenforo
PHP Model Class Name: XenForo_Model_IdentityService_xenforo
Service Name: XenForo Community
Account Name Description: Your user name

Click Save Identity Service and now your done.
Now your users will see an extra option on their contact settings page.

Once they enter their details, their profile page will look like this.

And there you have it, a working customer identity service.
I hope this little how to is helpful to you, feel free to ask questions if you're unsure of anything.
--Doctor