UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline
I posted about this a couple of weeks ago and after quite a bit of troubleshooting I can confirm that the issue appears as follows:

Context
1) 'name' is set as not required in the profile custom fields
2) 'name' is set to not display during registration
3) 'name' is set as a single name (not first, last)

Result
1) 'name' is not saved as 'username' in database, it is saved as 'Guest'

I think that the reason is that the following code snippet only checks for the 'name' if it is displayed during registration but not required:

public function onRegisterBeforeSave(&$post)
{
if (empty($post['first_name']) && !empty($post['username']) && $this->params->get('username_fallback')) {
$post['first_name'] = $post['username'];
}

return $this->save($post);
}


This piece of code should be modified to also check if the 'name' is not displayed and not required during registration. Is there an easy fix? I could use the code on my site.

- JW
The replies under this section are restricted to logged in users or users with an active subscription with us