Announcement

Collapse
No announcement yet.

4.0.4 & 4.0.5 - FaceBook Connect Required Fields Issue - ** The Fix **

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • moonclamp
    replied
    I have 4.0.6 and cannot apply the edits (already done in class_dm_user.php and can't find them in functions_facebook.php).

    There is still an error if the required fields are radio buttons or dropdown menus.
    Last edited by moonclamp; Sat 4 Sep '10, 11:54am.

    Leave a comment:


  • MR K
    replied
    this fixes the troubles with the 'publish' button also?

    Leave a comment:


  • hl8888
    replied
    thanks bro

    Leave a comment:


  • Rik Brown
    replied
    Anthony: Thank you so much for this information. -- Rik

    Leave a comment:


  • 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'] == 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'] == 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.
    Last edited by calorie; Fri 16 Jul '10, 3:19pm. Reason: Please do not attach vBulletin files. Thank you.

Related Topics

Collapse

Working...
X