blackvoid
Active member
How should the userfield callback function look. Ive found out that the class should extend XenForo_Model_UserField, but since I haven't a documentation for XenForo which shows which function I should extend and function variables
Currently the class looks like this.
Currently the class looks like this.
PHP:
<?php
class DynamicEffect_Minecraft extends XenForo_Model_UserField
static public function verifyAccountName(&$accountName, &$error)
{
$url = 'http://www.minecraft.net/haspaid.jsp?user='.$accountName;
$contents = trim(file_get_contents($url));
if($contents == 'false')
{
$error = new XenForo_Phrase('no_paid_minecraft_account');
return true;
} else {
return true;
}
}
}