Support

  1. anei-levski
  2. Support
  3. Sunday, August 21 2016, 03:10 PM
Hi,

first time user of Easy Profile and so far I like it :p

But I have a question regarding the auto creation of username when the login is set as email.

As I see the component creates the username from the Name field and instead of spaces uses - sign.

I have found this post on your forum (https://www.easy-profile.com/support/auto-generate-username.html) where you instructed to edit two files. But one of those files is not there (route.php) and in the other (jsn_users.php) there is no code like the one you posted... or at least I cannot find it as I presume you changed a few things since then...

Now we would like to have so the component generates username the same way but instead of - sign just use the dot.

How can I do that or should I say where do I have to edit the code to achieve that...

BR
admin Accepted Answer
Admin
Hi,
sorry for late reply, it was a weekend for us :D

link at https://www.easy-profile.com/support/auto-generate-username.html was too old.

The code that generate username from name is into file /plugins/user/jsn_users/jsn_users.php at line 422:

$username=JApplication::stringURLSafe( $name );

You can replace it with something like this:

$username=str_replace( '-' , '.' , JApplication::stringURLSafe( $name ) );
  1. more than a month ago
  2. Support
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Online

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.