Find Jobs
Hire Freelancers

Create a unique Wordpress username with Userpro plugin and its facebook connect -- 2

£10-20 GBP

已关闭
已发布大约 9 年前

£10-20 GBP

货到付款
I am using UserPro plugin to register new users. I want to use the Facebook connect feature. Problem It registers your username as your facebook username which is your email address. This unfortunately means your email address is on display in your profile url. I would like one of the following situations: I would like your wordpress username to be the first half of your email plus some sort of random number at the end of it so that you avoid duplicates. OR I would like your wordpress username to be a unique random mix of numbers or letters (to avoid duplicates). PLEASE: the most important thing is that all usernames are unique. Please - i can only deal with people who speak english fluently to communicate. I can tell you the exact file to change. Here is some of the code for reference: /* Facebook Connect */ add_action('wp_ajax_nopriv_userpro_fbconnect', 'userpro_fbconnect'); add_action('wp_ajax_userpro_fbconnect', 'userpro_fbconnect'); function userpro_fbconnect(){ global $userpro; $output = ''; if (!isset($_POST)) die(); if ($_POST['action'] != 'userpro_fbconnect') die(); if (!isset($_POST['id'])) die(); if (!isset($_POST['username']) || $_POST['username'] == '' || $_POST['username'] == 'undefined') { $username = $_POST['email']; } else { $userame = $_POST['username']; } /* Check if facebook uid exists */ if (isset($_POST['id']) && $_POST['id'] != '' && $_POST['id'] != 'undefined'){ $users = get_users(array( 'meta_key' => 'userpro_facebook_id', 'meta_value' => $_POST['id'], 'meta_compare' => '=' )); if (isset($users[0]->ID) && is_numeric($users[0]->ID) ){ $returning = $users[0]->ID; $returning_user_login = $users[0]->user_login; } else { $returning = ''; } } else { $returning = ''; } $result=get_user_meta($returning,"userpayment"); $paymentoption=get_option('userpro_payment');
项目 ID: 7463283

关于此项目

远程项目
活跃9 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作

关于客户

UNITED KINGDOM的国旗
Valencia, United Kingdom
5.0
5
付款方式已验证
会员自12月 29, 2013起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。