Skip to Content Skip to Menu

use the name instead of the username in the url

8 years 5 months ago #280826 by francosita
Hello
I am writing here to know if is possible change the url for the user profile.
Usually CB use the username field in the url but i wuold like to use the field name.
Can I do that changing any file?

Thanks
FRank
The following user(s) said Thank You: lousyfool

Please Log in or Create an account to join the conversation.

  • lousyfool
  • lousyfool
  • OFFLINE
  • Posts: 141
  • Thanks: 46
  • Karma: 5
8 years 5 months ago - 8 years 5 months ago #280842 by lousyfool
Replied by lousyfool on topic use the name instead of the username in the url
I'd like to add to this by suggesting to also find a way, or offer the option, to use the user ID instead of username. Reason being that email addresses (when the system is set to use email addresses for usernames) are resulting in "ugly" URLs, eventually.

Thanks.
Last edit: 8 years 5 months ago by lousyfool.

Please Log in or Create an account to join the conversation.

8 years 5 months ago #280849 by francosita
Replied by francosita on topic use the name instead of the username in the url
thanks for your answer.

So also with override it is not possible??

Thanks
FRank

Please Log in or Create an account to join the conversation.

  • lousyfool
  • lousyfool
  • OFFLINE
  • Posts: 141
  • Thanks: 46
  • Karma: 5
8 years 5 months ago #280851 by lousyfool
Replied by lousyfool on topic use the name instead of the username in the url
Pretty much everything is possible - with the right code.

But the question is still open, support has not responded, yet. But be prepared that if it took modding core code, we won't get it here as JP policy doesn't allow this - understandably.

Let's see what the response will be.

Please Log in or Create an account to join the conversation.

  • lousyfool
  • lousyfool
  • OFFLINE
  • Posts: 141
  • Thanks: 46
  • Karma: 5
8 years 5 months ago #280874 by lousyfool
Replied by lousyfool on topic use the name instead of the username in the url
Ok, have investigated a bit more.

Should've/could've mentioned it earlier, no clue why I didn't, but though technically possible, using the real name (not "username") is a no-no, of course, because it's not unique: two different users can have the same name, at least in the real world and, unless you made very significant changes (don't!), also in Joomla and CB.

Once we talk names, username is unique in the system, so that'll remain your best bet. And it's already the default for URLs, so no changes needed.


Anyhow, as indicated in my post above, I'm generally set for "emails as usernames" for users not needing to remember usernames and to log in with their email, promptly resulting in "ugly" URLs.

Except, I made since one small code change, and now my profile URLs are containing the user ID instead. Both client and me are happy with that.

(In case anyone wonders: the change was small but in a core file, so no posting here in respect for JP's policies.)

Please Log in or Create an account to join the conversation.

8 years 5 months ago #280879 by francosita
Replied by francosita on topic use the name instead of the username in the url
When you said "emails as usernames" that means you use email for the access right??

FRank

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum