Facebook Mod , unsupported by author

Discussion in 'Modifications' started by jjjason84, Feb 7, 2014.

  1. Appl Pglng

    Appl Pglng Member Donor

    Joined:
    Mar 12, 2014
    Messages:
    59
    Likes Received:
    6
    Catched up with you again Worldbetta!

    As Jason said, i added
    on top of header where it says include etc. etc. and it worked!

    Shared Link. Click Here to check.
     
  2. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    yes. It is working now. I did a few test post and it only make a post with my top banner and not the auction picture. Any idea why it is doing this. It is kinda working....
    Thank both of you for your support. Appl Pglng Thank you..... jjjason84 Thank you..... I have lots of notes and over the next week of so I will clean it up and post the files if I can figure out how to post it.
    But now it is kinda working. The post is only the banner and not the auction picture... So, I need to get the auction picture and not just the right side of my banner... The post to FB looks very very bad!
     
  3. Appl Pglng

    Appl Pglng Member Donor

    Joined:
    Mar 12, 2014
    Messages:
    59
    Likes Received:
    6
    when people share it, there is an arrow right beside the picture to choose the image. but most people never do that. im sure there are ways to fix that to maybe the featured pic on the gallery first instead of the logo but not sure how to do that.

    mine also works too, after a fashion.
    register works.
    login link on page doesnt. but login on the sidebar works.
    and edit data not working too. the connect to facebook photo not clickable.

    i used the recent file. facebook_cont file.
    also tried the attached uAuctions zip.

    i will leave it for an hour and come back for some fresh inspiration later.
     
  4. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    I think now all is working for us....I can show you the files if you need but I am testing now
    I will let you know in a few hours
    But this looks like a great mod...If it works like we hope...It is a great great mod....
     
  5. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    no we have found a new issue after mod install I think.... Parse error: syntax error, unexpected $end in /home/bakseeda/public_html/auction/edit_data.php on line 318 users can not update their personal info now?
    So is new bug we are seeing after the mod install....

    Line 318 says syntax error ?>

    How do I fix this? Now I am lost on what to do.....
     
  6. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    Appl Pglng, this is what mine looks like? Do not know if yours is the same.



    /**
    * Set custom template location (able to use directory outside of phpBB)
    * @access public
    */
    function set_custom_template($template_path, $template_name)
    {
    global $main_path;

    $this->root = $template_path;
    $this->cachepath = $main_path . 'cache/ctpl_' . str_replace('_', '-', $template_name) . '_';

    return true;
    }
     
  7. jjjason84

    jjjason84 Donor Donor

    Joined:
    Jun 26, 2012
    Messages:
    702
    Likes Received:
    61
    can you post your edit_data.php page and i will take a look at it and get it working.
     
  8. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    How do I post a file???? I do not see a option to post a zip or a file. so I will post this as text....

    PHP:
    <?php
    /***************************************************************************
     *   copyright                : (C) 2008 - 2013 WeBid
     *   site                    : [url]http://www.webidsupport.com/[/url]
     ***************************************************************************/

    /***************************************************************************
     *   This program is free software; you can redistribute it and/or modify
     *   it under the terms of the GNU General Public License as published by
     *   the Free Software Foundation; either version 2 of the License, or
     *   (at your option) any later version. Although none of the code may be
     *   sold. If you have been sold this script, get a refund.
     ***************************************************************************/

    include 'common.php';
    include 
    $include_path 'countries.inc.php';

    if (
    $system->SETTINGS['facebook_login'] == 'y')
    {
    $_SESSION['REDIRECT_AFTER_FBLOGIN'] = 'edit_data.php';
    }

    // If user is not logged in redirect to login page
    if (!$user->is_logged_in())
    {
        
    $_SESSION['REDIRECT_AFTER_LOGIN'] = 'edit_data.php';
        
    header('location: user_login.php');
        exit;
    }

    // Retrieve users signup settings
    $MANDATORY_FIELDS unserialize($system->SETTINGS['mandatory_fields']);

    function 
    generateSelect($name ''$options = array())
    {
        global 
    $selectsetting;
        
    $html '<select name="' $name '">';
        foreach (
    $options as $option => $value)
        {
            if (
    $selectsetting == $option)
            {
                
    $html .= '<option value=' $option ' selected>' $value '</option>';
            }
            else
            {
                
    $html .= '<option value=' $option '>' $value '</option>';
            }
        }
        
    $html .= '</select>';
        return 
    $html;
    }

    $TIMECORRECTION = array();
    for (
    $i 12$i > -13$i--)
    {
        
    $TIMECORRECTION[$i] = $MSG['TZ_' $i];
    }

    $query "SELECT * FROM " $DBPrefix "gateways LIMIT 1";
    $res mysql_query($query);
    $system->check_mysql($res$query__LINE____FILE__);
    $gateway_data mysql_fetch_assoc($res);

    if (isset(
    $_POST['action']) && $_POST['action'] == 'update')
    {
        
    // Check data
        
    if ($_POST['TPL_email'])
        {
            if (
    strlen($_POST['TPL_password']) < && strlen($_POST['TPL_password']) > 0)
            {
                
    $ERR $ERR_011;
            }
            elseif (
    $_POST['TPL_password'] != $_POST['TPL_repeat_password'])
            {
                
    $ERR $ERR_109;
            }
            elseif (
    strlen($_POST['TPL_email']) < 5)
            {
                
    $ERR $ERR_110;
            }
            elseif (!
    preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i'$_POST['TPL_email']))
            {
                
    $ERR $ERR_008;
            }
            elseif (
    strlen($_POST['TPL_zip']) < && $MANDATORY_FIELDS['zip'] == 'y')
            {
                
    $ERR $ERR_616;
            }
            elseif (
    strlen($_POST['TPL_phone']) < && $MANDATORY_FIELDS['tel'] == 'y')
            {
                
    $ERR $ERR_617;
            }
            elseif ((empty(
    $_POST['TPL_day']) || empty($_POST['TPL_month']) || empty($_POST['TPL_year'])) && $MANDATORY_FIELDS['birthdate'] == 'y')
            {
                
    $ERR $MSG['948'];
            }
            elseif (!empty(
    $_POST['TPL_day']) && !empty($_POST['TPL_month']) && !empty($_POST['TPL_year']) && !checkdate($_POST['TPL_month'], $_POST['TPL_day'], $_POST['TPL_year']))
            {
                
    $ERR $ERR_117;
            }
            elseif (
    $gateway_data['paypal_required'] == && (empty($_POST['TPL_pp_email']) || !preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i'$_POST['TPL_pp_email'])))
            {
                
    $ERR $MSG['810'];
            }
            elseif (
    $gateway_data['authnet_required'] == && (empty($_POST['TPL_authnet_id']) || empty($_POST['TPL_authnet_pass'])))
            {
                
    $ERR $MSG['811'];
            }
            elseif (
    $gateway_data['moneybookers_required'] == && (empty($_POST['TPL_moneybookers_email']) || !preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i'$_POST['TPL_moneybookers_email'])))
            {
                
    $ERR $MSG['822'];
            }
            elseif (
    $gateway_data['toocheckout_required'] == && (empty($_POST['TPL_toocheckout_id'])))
            {
                
    $ERR $MSG['821'];
            }
            elseif (
    $gateway_data['worldpay_required'] == && (empty($_POST['TPL_worldpay_id'])))
            {
                
    $ERR $MSG['823'];
            }
            else
            {
                if (!empty(
    $_POST['TPL_day']) && !empty($_POST['TPL_month']) && !empty($_POST['TPL_year']))
                {
                    
    $TPL_birthdate $_POST['TPL_year'] . $_POST['TPL_month'] . $_POST['TPL_day'];
                }
                else
                {
                    
    $TPL_birthdate '';
                }

                
    $query "UPDATE " $DBPrefix "users SET email='" $system->cleanvars($_POST['TPL_email']) . "',
                        birthdate = '" 
    . ((empty($TPL_birthdate)) ? $TPL_birthdate) . "',
                        address = '" 
    $system->cleanvars($_POST['TPL_address']) . "',
                        city = '" 
    $system->cleanvars($_POST['TPL_city']) . "',
                        prov = '" 
    $system->cleanvars($_POST['TPL_prov']) . "',
                        country = '" 
    $system->cleanvars($_POST['TPL_country']) . "',
                        zip = '" 
    $system->cleanvars($_POST['TPL_zip']) . "',
                        phone = '" 
    $system->cleanvars($_POST['TPL_phone']) . "',
                        timecorrection = '" 
    $system->cleanvars($_POST['TPL_timezone']) . "',
                        emailtype = '" 
    $system->cleanvars($_POST['TPL_emailtype']) . "',
                        nletter = '" 
    $system->cleanvars($_POST['TPL_nletter']) . "'";

                if (
    $gateway_data['paypal_active'] == 1)
                {
                    
    $query .= ", paypal_email = '" $system->cleanvars($_POST['TPL_pp_email']) . "'";
                }

                if (
    $gateway_data['authnet_active'] == 1)
                {
                    
    $query .= ", authnet_id = '" $system->cleanvars($_POST['TPL_authnet_id']) . "',
                                authnet_pass = '" 
    $system->cleanvars($_POST['TPL_authnet_pass']) . "'";
                }

                if (
    $gateway_data['worldpay_active'] == 1)
                {
                    
    $query .= ", worldpay_id = '" $system->cleanvars($_POST['TPL_worldpay_id']) . "'";
                }

                if (
    $gateway_data['moneybookers_active'] == 1)
                {
                    
    $query .= ", moneybookers_email = '" $system->cleanvars($_POST['TPL_moneybookers_email']) . "'";
                }

                if (
    $gateway_data['toocheckout_active'] == 1)
                {
                    
    $query .= ", toocheckout_id = '" $system->cleanvars($_POST['TPL_toocheckout_id']) . "'";
                }

                if (
    strlen($_POST['TPL_password']) > 0)
                {
                    
    $query .= ", password = '" md5($MD5_PREFIX $_POST['TPL_password']) . "'";
                }

                
    $query .= " WHERE id = " $user->user_data['id'];
                
    $system->check_mysql(mysql_query($query), $query__LINE____FILE__);
                
    $ERR $MSG['183'];
            }
    if (isset(
    $_SESSION['FBOOK_USER_IDS']))
            {
                
    $query "UPDATE " $DBPrefix "users SET fblogin_id = " $_SESSION['FBOOK_USER_IDS'] . " WHERE id = '".$user->user_data['id']."'";
                
    $system->check_mysql(mysql_query($query), $query__LINE____FILE__);
            }

            else
        {
            
    $ERR $ERR_112;
        }
    }

    // Retrieve user's data
    $query "SELECT * FROM " $DBPrefix "users WHERE id = " $user->user_data['id'];
    $result mysql_query($query);
    $system->check_mysql($result$query__LINE____FILE__);
    $USER mysql_fetch_assoc($result);
    if (
    $USER['birthdate'] != 0)
    {
        
    $TPL_day substr($USER['birthdate'], 62);
        
    $TPL_month substr($USER['birthdate'], 42);
        
    $TPL_year substr($USER['birthdate'], 04);
    }
    else
    {
        
    $TPL_day '';
        
    $TPL_month '';
        
    $TPL_year '';
    }

    $country '';
    foreach (
    $countries as $code => $name)
    {
        
    $country .= '<option value="' $name '"';
        if (
    $name == $USER['country'])
        {
            
    $country .= ' selected';
        }
        
    $country .= '>' $name '</option>' "\n";
    }
    $dobmonth '<select name="TPL_month">
            <option value=""></option>
            <option value="01"' 
    . (($TPL_month == '01') ? ' selected' '') . '>' $MSG['MON_001E'] . '</option>
            <option value="02"' 
    . (($TPL_month == '02') ? ' selected' '') . '>' $MSG['MON_002E'] . '</option>
            <option value="03"' 
    . (($TPL_month == '03') ? ' selected' '') . '>' $MSG['MON_003E'] . '</option>
            <option value="04"' 
    . (($TPL_month == '04') ? ' selected' '') . '>' $MSG['MON_004E'] . '</option>
            <option value="05"' 
    . (($TPL_month == '05') ? ' selected' '') . '>' $MSG['MON_005E'] . '</option>
            <option value="06"' 
    . (($TPL_month == '06') ? ' selected' '') . '>' $MSG['MON_006E'] . '</option>
            <option value="07"' 
    . (($TPL_month == '07') ? ' selected' '') . '>' $MSG['MON_007E'] . '</option>
            <option value="08"' 
    . (($TPL_month == '08') ? ' selected' '') . '>' $MSG['MON_008E'] . '</option>
            <option value="09"' 
    . (($TPL_month == '09') ? ' selected' '') . '>' $MSG['MON_009E'] . '</option>
            <option value="10"' 
    . (($TPL_month == '10') ? ' selected' '') . '>' $MSG['MON_010E'] . '</option>
            <option value="11"' 
    . (($TPL_month == '11') ? ' selected' '') . '>' $MSG['MON_011E'] . '</option>
            <option value="12"' 
    . (($TPL_month == '12') ? ' selected' '') . '>' $MSG['MON_012E'] . '</option>
        </select>'
    ;
    $dobday '<select name="TPL_day">
            <option value=""></option>'
    ;
    for (
    $i 1$i <= 31$i++)
    {
        
    $j = (strlen($i) == 1) ? '0' $i $i;
        
    $dobday .= '<option value="' $j '"' . (($TPL_day == $j) ? ' selected' '') . '>' $j '</option>';
    }
    $dobday .= '</select>';

    $selectsetting $USER['timecorrection'];
    $time_correction generateSelect('TPL_timezone'$TIMECORRECTION);
    ///Facebook check to see if the account is link to facebook
    $query "SELECT fblogin_id FROM " $DBPrefix "users WHERE id = " $user->user_data['id']; 
    $result mysql_query($query); 
    $system->check_mysql($result$query__LINE____FILE__); 
    $fbcheck mysql_fetch_assoc($result);
    $user_fb $fbcheck['fblogin_id'];

    $query "SELECT fb_id FROM " $DBPrefix "fblogin WHERE fb_id = " $user_fb;
    $sql mysql_query($query);
    $system->check_mysql($sql$query__LINE____FILE__);
    $fb_check mysql_fetch_assoc($sql);
    $fb_id_checked $fb_check['fb_id'];
    $check_wb_fb $user_fb == $fb_check;

    if (
    $check_wb_fb)
    {
        
    $fbconnected '<img src="images/redlogin1.png">' $MSG['350_10191'] . '<br><br>' '<img src="images/facebook-connect.png" alt="Fb Connect" title="Click this button to link your facebook account with ubidzz" style="cursor:pointer" onclick="FBLogin();">' .
         
    '<span style="float:right">
          <button  type="submit" name="Input" class="btn btn-primary">' 
    $MSG['530'] . '</button>
          <input type="hidden" name="action" value="update">
          </span>'
    ;
    }        
    else
    {
        
    $fbconnected '<img src="images/longin1.png">' $MSG['350_10190'] . '<br><br>' '<a href="edit_data.php?fbconnect=unlinked" class="btn btn-primary">Removed</a>';
    }    

    $template->assign_vars(array(
            
    'COUNTRYLIST' => $country,
            
    'NAME' => $USER['name'],
            
    'NICK' => $USER['nick'],
            
    'EMAIL' => $USER['email'],
            
    'YEAR' => $TPL_year,
            
    'ADDRESS' => $USER['address'],
            
    'CITY' => $USER['city'],
            
    'PROV' => $USER['prov'],
            
    'ZIP' => $USER['zip'],
            
    'PHONE' => $USER['phone'],
            
    'DATEFORMAT' => ($system->SETTINGS['datesformat'] == 'USA') ? $dobmonth ' ' $dobday $dobday ' ' $dobmonth,
            
    'TIMEZONE' => $time_correction,

            
    //payment stuff
            
    'PP_EMAIL' => $USER['paypal_email'],
            
    'AN_ID' => $USER['authnet_id'],
            
    'AN_PASS' => $USER['authnet_pass'],
            
    'WP_ID' => $USER['worldpay_id'],
            
    'TC_ID' => $USER['toocheckout_id'],
            
    'MB_EMAIL' => $USER['moneybookers_email'],

            
    'NLETTER1' => ($USER['nletter'] == 1) ? ' checked="checked"' '',
            
    'NLETTER2' => ($USER['nletter'] == 2) ? ' checked="checked"' '',
            
    'EMAILTYPE1' => ($USER['emailtype'] == 'html') ? ' checked="checked"' '',
            
    'EMAILTYPE2' => ($USER['emailtype'] == 'text') ? ' checked="checked"' '',

            
    'B_NEWLETTER' => ($system->SETTINGS['newsletter'] == 1),
            
    'B_PAYPAL' => ($gateway_data['paypal_active'] == 1),
            
    'B_AUTHNET' => ($gateway_data['authnet_active'] == 1),
            
    'B_WORLDPAY' => ($gateway_data['worldpay_active'] == 1),
            
    'B_TOOCHECKOUT' => ($gateway_data['toocheckout_active'] == 1),
            
    'B_MONEYBOOKERS' => ($gateway_data['moneybookers_active'] == 1),
            
            
    'FBOOK_EMAIL' => $fbconnected,
            
    'FBOOK_ID' => (isset($_SESSION['FBOOK_USER_IDS'])) ? $_SESSION['FBOOK_USER_IDS'] : 0,
            ));

    $TMP_usmenutitle $MSG['509'];
    include 
    'header.php';
    include 
    $include_path 'user_cp.php';
    $template->set_filenames(array(
            
    'body' => 'edit_data.tpl'
            
    ));
    $template->display('body');
    include 
    'footer.php';
    ?>
     
    Last edited: Apr 3, 2014
  9. jjjason84

    jjjason84 Donor Donor

    Joined:
    Jun 26, 2012
    Messages:
    702
    Likes Received:
    61
    use [PHP ]your code here [/PHP]

    and try this code
    PHP:
    <?php
    /************************************************** *************************
    * copyright     : (C) 2008 - 2013 WeBid
    * site     : http://www.webidsupport.com/
    ************************************************** *************************/

    /************************************************** *************************
    * This program is free software; you can redistribute it and/or modify
    * it under the terms of the GNU General Public License as published by
    * the Free Software Foundation; either version 2 of the License, or
    * (at your option) any later version. Although none of the code may be
    * sold. If you have been sold this script, get a refund.
    ************************************************** *************************/

    include 'common.php';
    include 
    $include_path 'countries.inc.php';


    if (
    $system->SETTINGS['facebook_login'] == 'y')
    {
         
    $_SESSION['REDIRECT_AFTER_FBLOGIN'] = 'edit_data.php';
    }
     
    // If user is not logged in redirect to login page
    if (!$user->is_logged_in())
    {
        
    $_SESSION['REDIRECT_AFTER_LOGIN'] = 'edit_data.php';
        
    header('location: user_login.php');
        exit;
    }

    // Retrieve users signup settings
    $MANDATORY_FIELDS unserialize($system->SETTINGS['mandatory_fields']);

    function 
    generateSelect($name ''$options = array())
    {
        global 
    $selectsetting;
        
    $html '<select name="' $name '">';
        foreach (
    $options as $option => $value)
        {
            if (
    $selectsetting == $option)
            {
                
    $html .= '<option value=' $option ' selected>' $value '</option>';
            }
            else
            {
                
    $html .= '<option value=' $option '>' $value '</option>';
            }
        }
        
    $html .= '</select>';
        return 
    $html;
    }

    $TIMECORRECTION = array();
    for (
    $i 12$i > -13$i--)
    {
        
    $TIMECORRECTION[$i] = $MSG['TZ_' $i];
    }

    $query "SELECT * FROM " $DBPrefix "gateways LIMIT 1";
    $res mysql_query($query);
    $system->check_mysql($res$query__LINE____FILE__);
    $gateway_data mysql_fetch_assoc($res);

    if (isset(
    $_POST['action']) && $_POST['action'] == 'update')
    {
        
    // Check data
        
    if ($_POST['TPL_email'])
        {
            if (
    strlen($_POST['TPL_password']) < && strlen($_POST['TPL_password']) > 0)
            {
                
    $ERR $ERR_011;
            }
            elseif (
    $_POST['TPL_password'] != $_POST['TPL_repeat_password'])
            {
                
    $ERR $ERR_109;
            }
            elseif (
    strlen($_POST['TPL_email']) < 5)
            {
                
    $ERR $ERR_110;
            }
            elseif (!
    preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i'$_POST['TPL_email']))
            {
                
    $ERR $ERR_008;
            }
            elseif (
    strlen($_POST['TPL_zip']) < && $MANDATORY_FIELDS['zip'] == 'y')
            {
                
    $ERR $ERR_616;
            }
            elseif (
    strlen($_POST['TPL_phone']) < && $MANDATORY_FIELDS['tel'] == 'y')
            {
                
    $ERR $ERR_617;
            }
            elseif ((empty(
    $_POST['TPL_day']) || empty($_POST['TPL_month']) || empty($_POST['TPL_year'])) && $MANDATORY_FIELDS['birthdate'] == 'y')
            {
                
    $ERR $MSG['948'];
            }
            elseif (!empty(
    $_POST['TPL_day']) && !empty($_POST['TPL_month']) && !empty($_POST['TPL_year']) && !checkdate($_POST['TPL_month'], $_POST['TPL_day'], $_POST['TPL_year']))
            {
                
    $ERR $ERR_117;
            }
            elseif (
    $gateway_data['paypal_required'] == && (empty($_POST['TPL_pp_email']) || !preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i'$_POST['TPL_pp_email'])))
            {
                
    $ERR $MSG['810'];
            }
            elseif (
    $gateway_data['authnet_required'] == && (empty($_POST['TPL_authnet_id']) || empty($_POST['TPL_authnet_pass'])))
            {
                
    $ERR $MSG['811'];
            }
            elseif (
    $gateway_data['moneybookers_required'] == && (empty($_POST['TPL_moneybookers_email']) || !preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i'$_POST['TPL_moneybookers_email'])))
            {
                
    $ERR $MSG['822'];
            }
            elseif (
    $gateway_data['toocheckout_required'] == && (empty($_POST['TPL_toocheckout_id'])))
            {
                
    $ERR $MSG['821'];
            }
            elseif (
    $gateway_data['worldpay_required'] == && (empty($_POST['TPL_worldpay_id'])))
            {
                
    $ERR $MSG['823'];
            }
            elseif (
    $gateway_data['bank_transfer_required'] == && (empty($_POST['TPL_bank']) || empty($_POST['TPL_bank_account']) || empty($_POST['TPL_bank_routing'])))  
            {  
                
    $ERR $MSG['30_0223'];  
            }  
            else
            {
                if (!empty(
    $_POST['TPL_day']) && !empty($_POST['TPL_month']) && !empty($_POST['TPL_year']))
                {
                    
    $TPL_birthdate $_POST['TPL_year'] . $_POST['TPL_month'] . $_POST['TPL_day'];
                }
                else
                {
                    
    $TPL_birthdate '';
                }

                
    $query "UPDATE " $DBPrefix "users SET email='" $system->cleanvars($_POST['TPL_email']) . "',
                        birthdate = '" 
    . ((empty($TPL_birthdate)) ? $TPL_birthdate) . "',
                        address = '" 
    $system->cleanvars($_POST['TPL_address']) . "',
                        city = '" 
    $system->cleanvars($_POST['TPL_city']) . "',
                        prov = '" 
    $system->cleanvars($_POST['TPL_prov']) . "',
                        country = '" 
    $system->cleanvars($_POST['TPL_country']) . "',
                        zip = '" 
    $system->cleanvars($_POST['TPL_zip']) . "',
                        phone = '" 
    $system->cleanvars($_POST['TPL_phone']) . "',
                        timecorrection = '" 
    $system->cleanvars($_POST['TPL_timezone']) . "',
                        emailtype = '" 
    $system->cleanvars($_POST['TPL_emailtype']) . "',
                        nletter = '" 
    $system->cleanvars($_POST['TPL_nletter']) . "'";

                if (
    $gateway_data['paypal_active'] == 1)
                {
                    
    $query .= ", paypal_email = '" $system->cleanvars($_POST['TPL_pp_email']) . "'";
                }

                if (
    $gateway_data['authnet_active'] == 1)
                {
                    
    $query .= ", authnet_id = '" $system->cleanvars($_POST['TPL_authnet_id']) . "',
                                authnet_pass = '" 
    $system->cleanvars($_POST['TPL_authnet_pass']) . "'";
                }

                if (
    $gateway_data['worldpay_active'] == 1)
                {
                    
    $query .= ", worldpay_id = '" $system->cleanvars($_POST['TPL_worldpay_id']) . "'";
                }

                if (
    $gateway_data['moneybookers_active'] == 1)
                {
                    
    $query .= ", moneybookers_email = '" $system->cleanvars($_POST['TPL_moneybookers_email']) . "'";
                }
                   if (
    strlen($_POST['TPL_password']) > 0)
                {
                    
    $query .= ", password = '" md5($MD5_PREFIX $_POST['TPL_password']) . "'";
                }

                
    $query .= " WHERE id = " $user->user_data['id'];
                
    $system->check_mysql(mysql_query($query), $query__LINE____FILE__);
                
    $ERR $MSG['183'];
            }
            if (isset(
    $_SESSION['FBOOK_USER_IDS']))
            {
                
    $query "UPDATE " $DBPrefix "users SET fblogin_id = " $_SESSION['FBOOK_USER_IDS'] . " WHERE id = '".$user->user_data['id']."'";
                
    $system->check_mysql(mysql_query($query), $query__LINE____FILE__);    
            }
        }
        else
        {
            
    $ERR $ERR_112;
        }
    }

    // Retrieve user's data
    $query "SELECT * FROM " $DBPrefix "users WHERE id = " $user->user_data['id'];
    $result mysql_query($query);
    $system->check_mysql($result$query__LINE____FILE__);
    $USER mysql_fetch_assoc($result);
    if (
    $USER['birthdate'] != 0)
    {
        
    $TPL_day substr($USER['birthdate'], 62);
        
    $TPL_month substr($USER['birthdate'], 42);
        
    $TPL_year substr($USER['birthdate'], 04);
    }
    else
    {
        
    $TPL_day '';
        
    $TPL_month '';
        
    $TPL_year '';
    }

    $country '';
    foreach (
    $countries as $code => $name)
    {
        
    $country .= '<option value="' $name '"';
        if (
    $name == $USER['country'])
        {
            
    $country .= ' selected';
        }
        
    $country .= '>' $name '</option>' "\n";
    }
    $dobmonth '<select name="TPL_month">
            <option value=""></option>
            <option value="01"' 
    . (($TPL_month == '01') ? ' selected' '') . '>' $MSG['MON_001E'] . '</option>
            <option value="02"' 
    . (($TPL_month == '02') ? ' selected' '') . '>' $MSG['MON_002E'] . '</option>
            <option value="03"' 
    . (($TPL_month == '03') ? ' selected' '') . '>' $MSG['MON_003E'] . '</option>
            <option value="04"' 
    . (($TPL_month == '04') ? ' selected' '') . '>' $MSG['MON_004E'] . '</option>
            <option value="05"' 
    . (($TPL_month == '05') ? ' selected' '') . '>' $MSG['MON_005E'] . '</option>
            <option value="06"' 
    . (($TPL_month == '06') ? ' selected' '') . '>' $MSG['MON_006E'] . '</option>
            <option value="07"' 
    . (($TPL_month == '07') ? ' selected' '') . '>' $MSG['MON_007E'] . '</option>
            <option value="08"' 
    . (($TPL_month == '08') ? ' selected' '') . '>' $MSG['MON_008E'] . '</option>
            <option value="09"' 
    . (($TPL_month == '09') ? ' selected' '') . '>' $MSG['MON_009E'] . '</option>
            <option value="10"' 
    . (($TPL_month == '10') ? ' selected' '') . '>' $MSG['MON_010E'] . '</option>
            <option value="11"' 
    . (($TPL_month == '11') ? ' selected' '') . '>' $MSG['MON_011E'] . '</option>
            <option value="12"' 
    . (($TPL_month == '12') ? ' selected' '') . '>' $MSG['MON_012E'] . '</option>
        </select>'
    ;
    $dobday '<select name="TPL_day">
            <option value=""></option>'
    ;
    for (
    $i 1$i <= 31$i++)
    {
        
    $j = (strlen($i) == 1) ? '0' $i $i;
        
    $dobday .= '<option value="' $j '"' . (($TPL_day == $j) ? ' selected' '') . '>' $j '</option>';
    }
    $dobday .= '</select>';

    $selectsetting $USER['timecorrection'];
    $time_correction generateSelect('TPL_timezone'$TIMECORRECTION);

    ///Facebook check to see if the account is link to facebook
    $query "SELECT fblogin_id FROM " $DBPrefix "users WHERE id = " $user->user_data['id']; 
    $result mysql_query($query); 
    $system->check_mysql($result$query__LINE____FILE__); 
    $fbcheck mysql_fetch_assoc($result);
    $user_fb $fbcheck['fblogin_id'];

    $id_checked $_SESSION['FBOOK_USER_IDS'];
    $id_checked $user_fb;

    $query "SELECT fb_id FROM " $DBPrefix "fblogin WHERE fb_id = " $id_checked;
    $sql mysql_query($query);
    $system->check_mysql($sql$query__LINE____FILE__);
    $fb_check mysql_fetch_assoc($sql);
    $fb_id_checked $fb_check['fb_id'];
    $check_wb_fb $user_fb == $fb_id_checked;

    if (
    $check_wb_fb)
    {
        
    $fbconnected '<img src="images/longin1.png">' $MSG['350_10190'] . '<br><br>' '<a href="edit_data.php?fbconnect=unlinked">Removed</a>';

    }    
    elseif ((isset(
    $_SESSION['FBOOK_USER_IDS'])) && $user_fb == '0')
    {
        
    $fbconnected '<img src="images/loadingAnimation.gif" style="float: left">&nbsp;' $MSG['350_10203'] . '<br><br><span style="float:left"><button  type="submit" name="Input">' $MSG['530'] . '</button><input type="hidden" name="action" value="update"></span>';
        
    }
    elseif (
    $user_fb == '0')
    {
        
    $fbconnected '<img src="images/redlogin1.png">' $MSG['350_10191'] . '<br><br>' '<img src="images/facebook-connect.png" alt="Fb Connect" style="cursor:pointer" onclick="EditFBLogin();">';
    }

    $template->assign_vars(array(
            
    'COUNTRYLIST' => $country,
            
    'NAME' => $USER['name'],
            
    'NICK' => $USER['nick'],
            
    'EMAIL' => $USER['email'],
            
    'YEAR' => $TPL_year,
            
    'ADDRESS' => $USER['address'],
            
    'CITY' => $USER['city'],
            
    'PROV' => $USER['prov'],
            
    'ZIP' => $USER['zip'],
            
    'PHONE' => $USER['phone'],
            
    'DATEFORMAT' => ($system->SETTINGS['datesformat'] == 'USA') ? $dobmonth ' ' $dobday $dobday ' ' $dobmonth,
            
    'TIMEZONE' => $time_correction,

            
    //payment stuff
            
    'PP_EMAIL' => $USER['paypal_email'],
            
    'AN_ID' => $USER['authnet_id'],
            
    'AN_PASS' => $USER['authnet_pass'],
            
    'WP_ID' => $USER['worldpay_id'],
            
    'TC_ID' => $USER['toocheckout_id'],
            
    'MB_EMAIL' => $USER['moneybookers_email'],
            
            
    'NLETTER1' => ($USER['nletter'] == 1) ? ' checked="checked"' '',
            
    'NLETTER2' => ($USER['nletter'] == 2) ? ' checked="checked"' '',
            
    'EMAILTYPE1' => ($USER['emailtype'] == 'html') ? ' checked="checked"' '',
            
    'EMAILTYPE2' => ($USER['emailtype'] == 'text') ? ' checked="checked"' '',

            
    'B_NEWLETTER' => ($system->SETTINGS['newsletter'] == 1),
            
    'B_PAYPAL' => ($gateway_data['paypal_active'] == 1),
            
    'B_AUTHNET' => ($gateway_data['authnet_active'] == 1),
            
    'B_WORLDPAY' => ($gateway_data['worldpay_active'] == 1),
            
    'B_TOOCHECKOUT' => ($gateway_data['toocheckout_active'] == 1),
            
    'B_MONEYBOOKERS' => ($gateway_data['moneybookers_active'] == 1),
            
    'FBOOK_EMAIL' => $fbconnected,
            
    'FBOOK_ID' => (isset($_SESSION['FBOOK_USER_IDS'])) ? $_SESSION['FBOOK_USER_IDS'] : 0
            
    ));

    $TMP_usmenutitle $MSG['509'];
    include 
    'header.php';
    include 
    $include_path 'user_cp.php';
    $template->set_filenames(array(
            
    'body' => 'edit_data.tpl'
            
    ));
    $template->display('body');
    include 
    'footer.php';
    ?>
     
    Last edited: Apr 3, 2014
  10. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    This is what I get now?

    FireShot-Screen-Capture-#039---'World-Betta-Society'---www_worldbettasociety_org_auction_edit_da.jpg
     
  11. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    jjjason84 I am so sorry to make you help us so much...If we knew how hard it was to do this facebook app we might not have ever started it. With out the help from you and app we would have given up a few days ago.... My promise to give back to webid will hold true. We will stay with our current theme and face book app and once done will not change for a while we think.

    edit_data.php
    the connect with facebook doesnot work. You can click it but it goes no place. No link nothing. So you can not connect a account to facebook......lol
     
    Last edited: Apr 3, 2014
  12. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    register.tpl

    PHP:
    <div class="content">
        <
    div class="tableContent2">
            <
    div class="titTable2">
                <
    img src="{SITEURL}themes/dark_orange/icons/newuser.png" width="32" height="32" align="absmiddle" /> {L_001}
            </
    div>
            <
    script type="text/javascript">
    window.fbAsyncInit = function() {
        
    FB.init({
        
    appId      '{FBOOK_APPID}',  
        
    status     true
        
    cookie     true
        
    xfbml      true  
        
    });
    };
    (function(
    d){
        var 
    jsid 'facebook-jssdk'ref d.getElementsByTagName('script')[0];
        if (
    d.getElementById(id)) {return;}
        
    js d.createElement('script'); js.id idjs.async true;
        
    js.src "//connect.facebook.net/en_US/all.js";
        
    ref.parentNode.insertBefore(jsref);
    }(
    document));

    function 
    FBLogin(){
        
    FB.login(function(response){
            if(
    response.authResponse){
                
    window.location.href "register.php?fbconnect=fblogin";
            }
        }, {
    scope'email,user_likes'});
    }

    </
    script>
    <!-- IF 
    B_FIRST -->
        <!-- IF 
    ERROR ne '' -->
            <
    div class="error-box">
                {
    ERROR}
            </
    div>
        <!-- ENDIF -->
            <
    div class="table2">
                <
    form name="registration" action="{SSLURL}register.php" method="post">
                <
    input type="hidden" name="csrftoken" value="{_CSRFTOKEN}">
                <
    input type="hidden" name="FB_ids" value="{FBOOK_ID}">
                    <
    table width="90%" border="0" cellpadding="4" cellspacing="0">
                    <
    td align="center">
                        <
    tr><center><img src="{SITEURL}themes/dark_orange/icons/newuser.png" width="128" height="128" align="absmiddle" /></center></tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_002}</b> *</td>
                            <
    td width="60%">
                                <
    input type="text" name="TPL_name" <!-- IF MISSING0 eq 1 -->class="missing"<!-- ENDIF --> size=40 maxlength=255 value="{V_YNAME}" autofocus>
                                <!-- IF 
    MISSING0 eq 1 --><div class="error-box missing">{L_937}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
                        <
    tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_003}</b> *</td>
                            <
    td width="60%">
                                <
    input type="text" name="TPL_nick" size=20 maxlength=20  value="{V_UNAME}" <!-- IF MISSING1 eq 1 -->class="missing"<!-- ENDIF -->> {L_050}
                                <!-- IF 
    MISSING1 eq 1 --><div class="error-box missing">{L_938}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
                        <
    tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_004}</b> *</td>
                            <
    td width="60%">
                                <
    input type="password" name="TPL_password" size=20 maxlength=20 <!-- IF MISSING2 eq 1 -->class="missing"<!-- ENDIF -->> {L_050}
                                <!-- IF 
    MISSING2 eq 1 --><div class="error-box missing">{L_939}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
                        <
    tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_005}</b> *</td>
                            <
    td width="60%">
                                <
    input type="password" name="TPL_repeat_password" size=20 maxlength=20 <!-- IF MISSING3 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING3 eq 1 --><div class="error-box missing">{L_940}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
                        <
    tr>
                            <
    td width="40%"  valign="top" align="right"><b>{L_006}</b> *</td>
                            <
    td width="60%">
                                <
    input type="email" name="TPL_email" size=50 maxlength=50 value="{V_EMAIL}" <!-- IF MISSING4 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING4 eq 1 --><div class="error-box missing">{L_941}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
            <!-- IF 
    BIRTHDATE -->
                        <
    tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_252}</b>{REQUIRED(0)}</td>
                            <
    td width="60%">
                                {
    L_DATEFORMAT} <input type="text" name="TPL_year" size="4" maxlength="4" value="{V_YEAR}" <!-- IF MISSING5 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING5 eq 1 --><div class="error-box missing">{L_948}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
            <!-- ENDIF -->
            <!-- IF 
    ADDRESS -->
                        <
    tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_009}</b>{REQUIRED(1)}</td>
                            <
    td width="60%">
                                <
    input type="text" name="TPL_address" size=40 maxlength=255 value="{V_ADDRE}" <!-- IF MISSING6 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING6 eq 1 --><div class="error-box missing">{L_942}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
            <!-- ENDIF -->
            <!-- IF 
    CITY -->
                        <
    tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_010}</b>{REQUIRED(2)}</td>
                            <
    td width="60%">
                                <
    input type="text" name="TPL_city" size=25 maxlength=25 value="{V_CITY}" <!-- IF MISSING7 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING7 eq 1 --><div class="error-box missing">{L_943}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
            <!-- ENDIF -->
            <!-- IF 
    PROV -->
                        <
    tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_011}</b>{REQUIRED(3)}</td>
                            <
    td width="60%">
                                <
    input type="text" name="TPL_prov" size=10 maxlength=10 value="{V_PROV}" <!-- IF MISSING8 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING8 eq 1 --><div class="error-box missing">{L_944}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
            <!-- ENDIF -->
            <!-- IF 
    COUNTRY -->
                        <
    tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_014}</b>{REQUIRED(4)}</td>
                            <
    td width="60%">
                                <
    select name="TPL_country" <!-- IF MISSING9 eq 1 -->class="missing"<!-- ENDIF -->>
                                    <
    option value="">{L_251}</option>
                                    {
    L_COUNTRIES}
                                </
    select>
                                <!-- IF 
    MISSING9 eq 1 --><div class="error-box missing">{L_945}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
            <!-- ENDIF -->
            <!-- IF 
    ZIP -->
                        <
    tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_012}</b>{REQUIRED(5)}</td>
                            <
    td width="60%">
                                <
    input type="text" name="TPL_zip" size=8 value="{V_POSTCODE}" <!-- IF MISSING10 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING10 eq 1 --><div class="error-box missing">{L_946}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
            <!-- ENDIF -->
            <!-- IF 
    TEL -->
                        <
    tr>
                            <
    td width="40%" valign="top" align="right"><b>{L_013}</b>{REQUIRED(6)}</td>
                            <
    td width="60%">
                                <
    input type="text" name="TPL_phone" size=40 maxlength=40 value="{V_PHONE}" <!-- IF MISSING11 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING11 eq 1 --><div class="error-box missing">{L_947}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
            <!-- ENDIF -->
                        <
    tr>
                            <
    td valign="top" align="right">{L_346}</td>
                            <
    td>
                                {
    TIMEZONE}
                            </
    td>
                        </
    tr>
            <!-- IF 
    B_NLETTER -->
                        <
    tr>
                            <
    td width="40%" align=right><b>{L_608}</b></td>
                            <
    td width="60%">
                                <
    input type="radio" name="TPL_nletter" value="1" {V_YNEWSL}>
                                {
    L_030}
                                <
    input type="radio" name="TPL_nletter" value="2" {V_NNEWSL}>
                                {
    L_029}
                            </
    td>
                        </
    tr>
            <!-- ENDIF -->
                    </
    table>

                    <
    table width="90%" border="0" cellpadding="4" cellspacing="0">
                    <
    tr>
                        <
    td width="40%" valign="top" align="right"></td>
                        <
    td width="60%" ><h2>{L_719}</h2></td>
                    </
    tr>
                    <!-- IF 
    B_PAYPAL -->
                        <
    tr>
                            <
    td align="right" width="30%">{L_720}{REQUIRED(7)}</td>
                            <
    td>
                                <
    input type="text" name="TPL_pp_email" size=40 value="{PP_EMAIL}" <!-- IF MISSING12 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING12 eq 1 --><div class="error-box missing">{L_810}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
                    <!-- ENDIF -->
                    <!-- IF 
    B_AUTHNET -->
                        <
    tr>
                            <
    td align="right" width="30%">{L_773}{REQUIRED(8)}</td>
                            <
    td>
                                <
    input type="text" name="TPL_authnet_id" size=40 value="{AN_ID}" <!-- IF MISSING13 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING13 eq 1 --><div class="error-box missing">{L_811}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
                        <
    tr>
                            <
    td align="right" width="30%">{L_774}{REQUIRED(8)}</td>
                            <
    td>
                                <
    input type="text" name="TPL_authnet_pass" size=40 value="{AN_PASS}" <!-- IF MISSING13 eq 1 -->class="missing"<!-- ENDIF -->>
                            </
    td>
                        </
    tr>
                    <!-- ENDIF -->
                    <!-- IF 
    B_WORLDPAY -->
                        <
    tr>
                            <
    td align="right" width="30%">{L_824}{REQUIRED(9)}</td>
                            <
    td>
                                <
    input type="text" name="TPL_worldpay_id" size=40 value="{WP_ID}" <!-- IF MISSING14 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING14 eq 1 --><div class="error-box missing">{L_823}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
                    <!-- ENDIF -->
                    <!-- IF 
    B_TOOCHECKOUT -->
                        <
    tr>
                            <
    td align="right" width="30%">{L_826}{REQUIRED(10)}</td>
                            <
    td>
                                <
    input type="text" name="TPL_toocheckout_id" size=40 value="{TC_ID}" <!-- IF MISSING15 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING15 eq 1 --><div class="error-box missing">{L_821}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
                    <!-- ENDIF -->
                    <!-- IF 
    B_MONEYBOOKERS -->
                        <
    tr>
                            <
    td align="right" width="30%">{L_825}{REQUIRED(11)}</td>
                            <
    td>
                                <
    input type="text" name="TPL_moneybookers_email" size=40 value="{MB_EMAIL}" <!-- IF MISSING16 eq 1 -->class="missing"<!-- ENDIF -->>
                                <!-- IF 
    MISSING16 eq 1 --><div class="error-box missing">{L_822}</div><!-- ENDIF -->
                            </
    td>
                        </
    tr>
                    <!-- ENDIF -->
                        <
    tr>
                            <
    td colspan="2">{CAPCHA}</td>
                        </
    tr>
                    </
    table>

                    <
    div style="text-align:center">
                        <
    p><input type="checkbox" name="terms_check" id="terms_check"> {L_858}</p>
                        <
    input type="hidden" name="action" value="first">
                        <
    input type="submit" name="" value="{L_235}" class="button">
                        <
    input type="reset" name="" value="{L_035}" class="button">
                    <!-- IF 
    B_FBOOK_LOGIN -->
    <
    div align="center">{L_350_10188}<br><br>
    <!-- IF 
    FBOOK_EMAIL --><img src="images/longin1.png"> {L_350_10186}<br><br><!-- ELSE --><img src="images/redlogin1.png"> {L_350_10187} <br><br><!-- ENDIF -->
    <
    img src="https://ubidzz.com/images/facebook-connect.png" alt="Fb Connect" title="Click this button to link your facebook account with our website" style="cursor:pointer" onclick="FBLogin();">
    <
    br></div>
    <!-- ENDIF --></
    div>
                </
    form>
            </
    div>
    <!-- ELSE -->
            <
    div class="padding">
                <
    h2>{L_HEADER}</h2>
                <
    p>{L_MESSAGE}</p>
                <
    p>{L_860}</p>
            </
    div>
    <!-- ENDIF -->
        </
    div>
    </
    div>
     
    Last edited: Apr 3, 2014
  13. Appl Pglng

    Appl Pglng Member Donor

    Joined:
    Mar 12, 2014
    Messages:
    59
    Likes Received:
    6
    Either of the edit data file does not work when clicked.

    But:

    Connect thru edit user works if link used is the one from Home.tpl

    which directs to Edit user.

    You have to click save after for it to be connected.

    So I copied the script on top of home.tpl and pasted it on top of edit data.ttpl

    now the facebook box opens when you click the button.

    still, you have to remember to click save for it to connect.

    :)
     
  14. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    App you have it working 100% now? We still do not...Can you confirm you have 100% working yet? When we get this working we will need to post the fix and files to webid so every one can enjoy this mod and let people know it is working with v1.1.1. Right now it is a code mess I think. Every one is asking how to use it after they sign up. If they do before they sign up I think it is working kinda. But we have new auctions now every day and it is hard to tell every one to sign up again to use fb connect. Let me know if you have it working for you....I am sure jjason is working on it. His site is very very nice. The code seems to work for him but he is very good with the code. But I am hoping when he has time he will figure out the code for 1.1.1 and we will have a great mod that a lot of people will use...For now my FB connect is a mess and only works part way.
     
  15. jjjason84

    jjjason84 Donor Donor

    Joined:
    Jun 26, 2012
    Messages:
    702
    Likes Received:
    61
    Hello worldbetta

    Can you post a link to your webid with a test account so i can login to your webid and test it out to see what problems you are having with it. I also gave renloking a working facebook mod so he can added it to a new webid version.
     
  16. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    HI jjjason84
    http://www.worldbettasociety.org/auction
    i did not add a account so you can see was a user see's when they sign up...you will need to make 2 accounts. 1 with fb connect at sign up and another and try to add fb connect after sign up...So you can see what we are talking about...We will also be setting up a new server for webid testing for every one to use later this month...and post the pasword to ftp and we bid admin to webid if its ok....
     
  17. jjjason84

    jjjason84 Donor Donor

    Joined:
    Jun 26, 2012
    Messages:
    702
    Likes Received:
    61
    we don't need the ftp we just need a webid test account so we can login with out registering for a account.
     
  18. worldbetta

    worldbetta New Member

    Joined:
    Mar 5, 2014
    Messages:
    59
    Likes Received:
    3
    ok, I set up a user.
    Username: webids
    Pass: webid123

    should work

    Let me know what else I need to do...I will help any way I can......You are welcome to any info or code or what ever at our webid site....
     
    Last edited: Apr 5, 2014
  19. Appl Pglng

    Appl Pglng Member Donor

    Joined:
    Mar 12, 2014
    Messages:
    59
    Likes Received:
    6
    No I havent got it 100 percent working yet.

    1. Register now works.
    2. Edit data works.

    Login still having trouble.

    In your ubidzz site, Jason, login link goes directly to account if there is detected facebook account.

    In my home link, it goes to login. On login it goes back to index. Im a bit lost already on what I did so far.

    Here is my user login if you can kindly take a look Jason.

    PHP:
    <script type="text/javascript">
    window.fbAsyncInit = function() {
        
    FB.init({
        
    appId      '{FBOOK_APPID}',  
        
    status     true
        
    cookie     true
        
    xfbml      true  
        
    });
    };
    (function(
    d){
        var 
    jsid 'facebook-jssdk'ref d.getElementsByTagName('script')[0];
        if (
    d.getElementById(id)) {return;}
        
    js d.createElement('script'); js.id idjs.async true;
        
    js.src "//connect.facebook.net/en_US/all.js";
        
    ref.parentNode.insertBefore(jsref);
    }(
    document));

    function 
    FBLogin(){
        
    FB.login(function(response){
            if(
    response.authResponse){
                
    window.location.href "user_login.php?fbconnect=fblogin";
            }
        }, {
    scope'email,user_likes'});
    }

    </
    script>    
    <
    div class="content">
      <
    div class="yellow-header">{L_181}</div>
      
      <
    div id="user-login">
        <!-- IF 
    ERROR ne '' -->
        <
    div class="error-box">{ERROR}</div>
        <!-- ENDIF -->

        <
    div class="inner">
          <
    div class="left-block">
              <
    h2>{L_862}</h2>
                 <!-- IF 
    B_FBOOK_LOGIN -->

    <
    img align="middle"src="images/LoginWithFacebook.png" alt="Fb Connect" title="You must have an account at MyDivisoria to use the Login with Facebook" style="cursor:pointer" onclick="FBLogin();">

    <!-- ENDIF -->           
          
                        <
    form name="user_login" action="{SSLURL}user_login.php" method="post">
                            <
    class="smallpadding">{L_187}<br>
                            <
    input type="text" name="username" size="20" maxlength="20" value="{USER}"></p>
                            <
    class="smallpadding">{L_004}<br>
                            <
    input type="password" name="password" size="20" maxlength="20" value=""></p>
                            <
    p>
                            <
    input type="submit" name="input" value="Login" class="button">
                            <
    input type="hidden" name="action" value="login">
                            <
    input type="checkbox" name="rememberme" value="1">&nbsp;{L_25_0085}</p>
                            <
    p><a href="forgotpasswd.php">{L_215}</a></p>
                        </
    form>
                        <
    br>
                        
                        </
    div>
                       
          <
    div class="right-block">
            <
    h2>{L_863_f1}</h2>
            <
    div class="left-long" style="padding-top:0"><a style="font-size:16px;font-weight:bold;margin-right:10px;" href="{SSLURL}register.php?">{L_235}!</a>{L_863_f2}</div>
            <
    div class="left-long" style="font-weight:bold;">{L_863_f3}</div>
            {
    L_863}
          </
    div>
        </
    div>
      </
    div>
      <
    div class="ad-login">
    <
    script type="text/javascript"><!--
    google_ad_client "ca-pub-6049281437088522";
    /* sofia-home */
    google_ad_slot "7454555263";
    google_ad_width 250;
    google_ad_height 250;
    //-->
    </script>
    <
    script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </
    script>
      </
    div>
    </
    div>
    If I put the <!-- IF FBOOK_EMAIL -->, the whole link does not show up.
     
    Last edited: Apr 4, 2014
  20. Appl Pglng

    Appl Pglng Member Donor

    Joined:
    Mar 12, 2014
    Messages:
    59
    Likes Received:
    6
    @worldbetta

    tried to sign in with your test user account. it seems its not working.

    also tried to register thru FB. no confirmation has arrived yet.

    were you able to fix your edit data?

    ill share mine after everything is fixed. :)
     

Share This Page