*

katalin2k

  • ***
  • 96 posts
Just a small fix for public profile URL
« on: February 20, 2025, 08:24:11 PM »
When clicking anywhere on the website to view public profile you get URL like this: example.com/profile/Username
It also uses caps and it looks quite bad if you ask me.
In oc-includes/osclass/helpers/hUsers.php
I replaced:
$path = osc_base_url(false, true) . osc_get_preference('rewrite_user_profile') . '/' . $user['s_username'];

With:

$path = osc_base_url(false, true) . osc_get_preference('rewrite_user_profile') . '/' . strtolower($user['s_username']);

*

MB Themes

Re: Just a small fix for public profile URL
« Reply #1 on: Yesterday at 02:47:10 PM »
Sufficient just to update username in backoffice.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

katalin2k

  • ***
  • 96 posts
Re: Just a small fix for public profile URL
« Reply #2 on: Yesterday at 09:12:52 PM »
Sufficient just to update username in backoffice.
For each and every user?

*

MB Themes

Re: Just a small fix for public profile URL
« Reply #3 on: Yesterday at 09:21:51 PM »
User itself should nit be able to define username. It should be autogenerated as slug.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots