Hello, I have found a few similar questions but need further guidance to get a solution working. Similar to this, but not using CB Connect
www.joomlapolis.com/forum/255-developer-members-support/234372-set-username-on-registration-as-firstname-user-id
I am building a site with CB & CB Subs where users will register and be assigned a username. Their username will be their last name, first initial, and if that exists, add a number (beginning with 2). For instance:
John Smith = smithj
James Smith = smithj2
Joseph Smith = smithj3
I am not sure how to get just the first letter of first name, and how to add the incremented number. I would love to show the generated username on the registration page to the user, but less important as long as they get the login.
Please advise. Thank you!