Thursday, November 26, 2009

[Fixed] vBulletin Human Verification Not Working

After install Invitation System module, my board's Human Verification has not work any more for days. And now I found out how to fix this problem!

Open register.php, find:
if (fetch_require_hvcheck('register'))
{
 require_once(DIR . '/includes/class_humanverify.php');
 $verify =& vB_HumanVerify::fetch_library($vbulletin);
 if (!$verify->verify_token($vbulletin->GPC['humanverify']))
 {
  $userdata->error($verify->fetch_error());
 }
}
Replace with:
if ($_REQUEST['do'] == 'register')
{
 require_once(DIR . '/includes/class_humanverify.php');
 $verify =& vB_HumanVerify::fetch_library($vbulletin);
 if (!$verify->verify_token($vbulletin->GPC['humanverify']))
 {
  $userdata->error($verify->fetch_error());
 }
}

Then find:

if (fetch_require_hvcheck('register'))
{
 require_once(DIR . '/includes/class_humanverify.php');
 $verify =& vB_HumanVerify::fetch_library($vbulletin);
 $human_verify = $verify->output_token();
}
and replace with:
if ($_REQUEST['do'] == 'addmember')
{
 require_once(DIR . '/includes/class_humanverify.php');
 $verify =& vB_HumanVerify::fetch_library($vbulletin);
 $human_verify = $verify->output_token();
}

Done, now my board's human verification is working well :D

No comments:

Post a Comment