*

Alej

  • ***
  • 78 posts
Problem with the filters on a user's public page
« on: January 07, 2026, 05:18:58 PM »
Hi, I've encountered a problem with the filters on a user's public page. Instead of displaying the user's own "categories" and "locations," it shows the categories and locations of the logged-in user. I've attached screenshots showing the error: In the screenshots, I'm logged in as "Alej." If I view the profile of the user "Usuario," the filters display my own categories and locations (the ones I'm logged in with).

*

MB Themes

Re: Problem with the filters on a user's public page
« Reply #1 on: January 07, 2026, 05:20:48 PM »
There use to be never ending issue with mixing user id and logged user id on business profile.
Is it related just to specific theme?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Alej

  • ***
  • 78 posts
Re: Problem with the filters on a user's public page
« Reply #2 on: January 07, 2026, 06:45:08 PM »
I haven't tried other themes, I'm using the Epsilon theme.

*

MB Themes

Re: Problem with the filters on a user's public page
« Reply #3 on: January 08, 2026, 02:10:13 PM »
Thansk for feedback.
Will be fixed in Osclass v8.3.1 ... meanwhile you can update your user_public_profile.php and to functions like search_category_select, set first param to osc_user_id() ... search_category_select(osc_user_id())
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Alej

  • ***
  • 78 posts
Re: Problem with the filters on a user's public page
« Reply #4 on: January 08, 2026, 03:22:36 PM »
Hi, I changed the value you told me in both the category and location filters, but now it works fine with my profile but not with others. In the attached screenshot, I logged in as the user "usuario" and if I look at "Alej's" profile, I see the categories and locations of the user I logged in with.

*

MB Themes

Re: Problem with the filters on a user's public page
« Reply #5 on: January 08, 2026, 04:14:47 PM »
can you echo values of osc_user_id() ? maybe that one got wrong values too
You might also try
Code: [Select]
osc_esc_html(Params::getParam('id'));
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Alej

  • ***
  • 78 posts
Re: Problem with the filters on a user's public page
« Reply #6 on: January 08, 2026, 04:40:03 PM »
Could you tell me how to test it and where I should put the code?

*

MB Themes

Re: Problem with the filters on a user's public page
« Reply #7 on: January 09, 2026, 02:01:55 PM »
use osc_esc_html(Params::getParam('id')); and test (instead of osc_user_id())
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Alej

  • ***
  • 78 posts
Re: Problem with the filters on a user's public page
« Reply #8 on: January 09, 2026, 02:33:22 PM »
I just tried it, and it's still the same.

*

MB Themes

Re: Problem with the filters on a user's public page
« Reply #9 on: January 09, 2026, 03:05:16 PM »
Not possible if you would do it correctly, ID param is from url and is ID of user that owns public profile.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Alej

  • ***
  • 78 posts
Re: Problem with the filters on a user's public page
« Reply #10 on: January 09, 2026, 09:11:05 PM »
Did I do something wrong?

*

MB Themes

Re: Problem with the filters on a user's public page
« Reply #11 on: January 10, 2026, 08:28:48 AM »
Did I do something wrong?

Looks good, try to store that ID param at top of page and then reuse it, so you're sure it has not changed as code executes.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Alej

  • ***
  • 78 posts
Re: Problem with the filters on a user's public page
« Reply #12 on: January 10, 2026, 02:01:46 PM »
Hi, it's not working. Also, I noticed that if I'm not logged in and I view any user's public profile, both the category and location fields show "no value".

*

MB Themes

Re: Problem with the filters on a user's public page
« Reply #13 on: January 10, 2026, 03:33:12 PM »
Sorry that is something I cannot reproduce. There will be uodate in 8.3.1 so it make sense to wait for update.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots