*

Satbeer Singh

  • ****
  • 126 posts
prevent user from entering mobile number or website link
« on: May 08, 2024, 10:24:20 AM »
Hello Sir,
How can we prevent user from entering mobile number or website link in title and description of the form while posting an ad on the portal.
« Last Edit: May 08, 2024, 12:53:47 PM by Satbeer Singh »

*

MB Themes

Re: prevent user from entering mobile number or website link
« Reply #1 on: May 08, 2024, 05:55:26 PM »
You cannot.
What you could do is to make keypress/keyuo jQuery function on title that does not allow special chars to be entered - like @, numbers 1-9, dot, ...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Satbeer Singh

  • ****
  • 126 posts
Re: prevent user from entering mobile number or website link
« Reply #2 on: May 08, 2024, 07:16:37 PM »
Ok Sir i have done that already on my portal but still there are users who still post links in description and title.

*

MB Themes

Re: prevent user from entering mobile number or website link
« Reply #3 on: May 08, 2024, 07:56:53 PM »
Then its not working and you must add PHP validation (use posted_item or pre_post_item hooks)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Satbeer Singh

  • ****
  • 126 posts
Re: prevent user from entering mobile number or website link
« Reply #4 on: May 13, 2024, 11:15:00 AM »
Sir it will be very helpful if you can provide code for it.

*

MB Themes

Re: prevent user from entering mobile number or website link
« Reply #5 on: May 13, 2024, 04:01:34 PM »
I do not have it, you need to build it.
Check these for hooks:
https://docs.osclasspoint.com/hooks
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Satbeer Singh

  • ****
  • 126 posts
Re: prevent user from entering mobile number or website link
« Reply #6 on: May 15, 2024, 07:38:43 PM »
Sir how much it will cost to build code for this.