*

katalin2k

  • ****
  • 157 posts
Disable “Save Search” for guest users
« on: July 10, 2025, 10:15:03 PM »
How can we disable “Save search” feature for not logged in users?
I am thinking this might lead to lots of spam because bots can insert email there with ease.

*

MB Themes

Re: Disable “Save Search” for guest users
« Reply #1 on: July 13, 2025, 11:38:35 AM »
In alert-form.php you could put everything under condition osc_is_web_user_logged_in()

Alternatively you might look in core files (ajax.php or user_non_secure.php) and block form submission.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

katalin2k

  • ****
  • 157 posts
Re: Disable “Save Search” for guest users
« Reply #2 on: July 15, 2025, 04:55:58 PM »
In alert-form.php you could put everything under condition osc_is_web_user_logged_in()

Alternatively you might look in core files (ajax.php or user_non_secure.php) and block form submission.
Thanks! I would like to still have the button but be disabled or even better when not logged in and button is click redirects to log in page.

*

katalin2k

  • ****
  • 157 posts
Re: Disable “Save Search” for guest users
« Reply #3 on: July 15, 2025, 05:54:18 PM »
I would suggest this to be added as a feature either in osclass or themes.

*

MB Themes

Re: Disable “Save Search” for guest users
« Reply #4 on: July 16, 2025, 09:05:10 AM »
Thanks, will add it to list, however it might be very dependant to themes. There is not ideal handling, where Osclass instead of status & message, it just send back number 0-2...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

katalin2k

  • ****
  • 157 posts
Re: Disable “Save Search” for guest users
« Reply #5 on: July 16, 2025, 04:14:35 PM »
Thanks, will add it to list, however it might be very dependant to themes. There is not ideal handling, where Osclass instead of status & message, it just send back number 0-2...
I would be a great addition to osclass because it will potentially decrease spam.