This topic has 1 reply, 2 voices, and was last updated 11 years by SQadmin.

  • Author
  • #3799
     BurntCorkMedia
    Participant

    I am trying to create a site that protects people’s privacy and omit real names. However, when you register with facebook, it shows their name in the URL (and of course on their profile). I have trawelled through the forum to no avail!

    Any feedback from anyone who has the answer would be great! 🙂

    #3813
     SQadmin
    Keymaster

    Hi,
    I have added a line to the facebook functions file that will allow you to customize user data before it is added to wordpress. Please replace your framework/functions/facebook_login.php content with the one from this file: https://archived.seventhqueen.com/files/facebook_login.txt

    After that you are able to modify the data that is saved for the user with a filter added to your sweetdate-child/functions.php

    COPY CODE
    
    
    add_filter('kleo_fb_register_data', 'kleo_custom_fb_data');
    function kleo_custom_fb_data($userdata)
    {
    	/*
    	 * $userdata is an array with the values that will be saved and looks like this:
    	 $userdata = array(
    	   'user_login' => 'facebook_user',
    	   'user_email' =>'emailfrom@facebook.com',
    	   'user_pass' => 'already_generated_pass',
    	   'display_name' =>'My nice name');
    	 */
    	
    	//change user data example
    	$userdata['display_name'] = 'Not a real name';
    	$userdata['user_login'] = 'generate_me_an_unreal_username';
    	
    	return $userdata;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?