Alofoxx
Member
ftp in to your web host and go to where you installed xenforo.Hmm how did you guys do this? I was trying to set up the same thing for my forum.
then go to library/xenforo/datawriter/user.php
open it in your favorite texteditor
scroll down and find:
PHP:
/**
* Verification callback to check that a username is valid
*
* @param string Username
*
* @return bool
*/
protected function _verifyUsername(&$username)
like this
PHP:
// compare against romanized name to help reduce confusable issues
$romanized = utf8_deaccent(utf8_romanize($username));
if ($romanized != $username)
{
$existingUser = $this->_getUserModel()->getUserByName($romanized);
if ($existingUser && $existingUser['user_id'] != $this->get('user_id'))
{
$this->error(new XenForo_Phrase('usernames_must_be_unique'), 'username');
return false;
}
}
//Alo minecraft verification
/*** 2012-01-07 BEGIN AmigoJack
Check username: has Minecraft nick paid? ***/
$sRes= file_get_contents( 'http://www.minecraft.net/haspaid.jsp?user='. rawurlencode($username) );
{
if( strpos( $sRes, 'true' )=== FALSE )
{
$this->error(new XenForo_Phrase('The username must be a valid Minecraft ID. Check your spelling, name is Case Sensitive.'), 'username');
return false;
}
}
//End alo code
return true;
}
/**
* Verification callback to check the email address is in a valid form
*
* @param string Email Address
*
* @return bool
*/
protected function _verifyEmail(&$email)
Once you do that you need to go to your web host and modify the php to allow_url_fopen or you will get a server error.
this is easy to do with most hosts.
test out the code here: http://fsrminecraft.com/index.php?login/