![]() |
Forum 4.0.4 & 4.0.5 - FaceBook Connect Required Fields Issue - ** The Fix ** Direct from David Grove within the support ticket for this issue, the fix is a simple edit within 2 files for 4.0.4 & 4.0.5 until the next release comes out with it as default. ** These are PHP file edits, not template edits ** Original fix by David: http://tracker.vbulletin.com/browse/VBIV-7489 (1) Find the following code in /includes/class_dm_user.php PHP Code: // check for empty required fields if (($profilefield['required'] == 1 OR $profilefield['required'] == 3) AND $value === false AND $verify) { $this->error('required_field_x_missing_or_invalid', $profilefield['title']); } And replace with this: PHP Code: // check for empty required fields if (($profilefield['required'] == 1 OR $profilefield['required'] == 3) AND $value === false AND $verify) { if ($_POST['do'] == 'fbconnect' AND $this->registry->GPC['link'] AND !isset($values["$varname"])) { continue; } $this->error('required_field_x_missing_or_invalid', $profilefield['title']); } (2) Find the following code in /includes/functions_facebook.php PHP Code: $customfields = $userdata->set_userfields($vbulletin->GPC['userfield'], true, 'register'); Replace it with the following: PHP Code: if ($_POST['do'] == 'fbconnect' AND $vbulletin->GPC['link']) { $customfields = $userdata->set_userfields($vbulletin->GPC['userfield'], true, 'normal'); } else { $customfields = $userdata->set_userfields($vbulletin->GPC['userfield'], true, 'register'); } Thank you David for providing this prior to the next version. |
الساعة الآن 09:43 PM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir