*

katalin2k

  • ***
  • 98 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: February 21, 2025, 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

  • ***
  • 98 posts
Re: Just a small fix for public profile URL
« Reply #2 on: February 21, 2025, 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: February 21, 2025, 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

*

katalin2k

  • ***
  • 98 posts
Re: Just a small fix for public profile URL
« Reply #4 on: February 22, 2025, 06:37:47 PM »
User itself should nit be able to define username. It should be autogenerated as slug.
Yes it is but it's generated also with caps, at least make an update to generate it without caps.

*

MB Themes

Re: Just a small fix for public profile URL
« Reply #5 on: March 01, 2025, 01:24:33 PM »
Will check it out.
Should be lowercase.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: Just a small fix for public profile URL
« Reply #6 on: March 04, 2025, 03:07:40 PM »
Will be included in 8.3
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots