Error
Please enter your name.
else
{
// if ($path == 'full_name' || $path == 'first_name')
// $data = parent::get('display_name');
}
else
{
if ($path == 'full_name' || $path == 'first_name')
$data = parent::get('username');
}
alzander wrote: I'm not sure offhand what specific field EasySocial is trying to fill.. if they have separate first name & last name fields or just a generic full name. What you may want to try is the edit below to generate a name for the user based on what we have from Discord.
Edit the /plugins/jfbconnect/provider_discord/profile/discord.php file. Around line 84, you should see:Update that to:else { // if ($path == 'full_name' || $path == 'first_name') // $data = parent::get('display_name'); }That will return their discord username for either the full_name or first_name fields as EasySocial requests them. You can see all the fields available for a Discord user profile below:else { if ($path == 'full_name' || $path == 'first_name') $data = parent::get('username'); }
discord.com/developers/docs/resources/user
Hello!
I also use discord registration. Unfortunately, the site does not register a new user, but tries to force him to enter a username and password and asks if he was registered earlier (he certainly was not). In the settings it is worth registering automatically.
Can not understand:
discord not returning email?
or is it not configured by default to get a name from the discord user and I need to take your advice from the quote?
In fact, I need to create users with a name equal to the ID from the discord when registering.
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.