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.