Support Forums - Classified Ads Script Osclass

General osclass questions => Report bug => Topic started by: katalin2k on February 20, 2025, 08:24:11 PM

Title: Just a small fix for public profile URL
Post by: katalin2k 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']);
Title: Re: Just a small fix for public profile URL
Post by: MB Themes on February 21, 2025, 02:47:10 PM
Sufficient just to update username in backoffice.
Title: Re: Just a small fix for public profile URL
Post by: katalin2k on February 21, 2025, 09:12:52 PM
Sufficient just to update username in backoffice.
For each and every user?
Title: Re: Just a small fix for public profile URL
Post by: MB Themes on February 21, 2025, 09:21:51 PM
User itself should nit be able to define username. It should be autogenerated as slug.
Title: Re: Just a small fix for public profile URL
Post by: katalin2k 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.
Title: Re: Just a small fix for public profile URL
Post by: MB Themes on March 01, 2025, 01:24:33 PM
Will check it out.
Should be lowercase.
Title: Re: Just a small fix for public profile URL
Post by: MB Themes on March 04, 2025, 03:07:40 PM
Will be included in 8.3