Support Forums - Classified Ads Script Osclass

General osclass questions => General discussion => Topic started by: Satbeer Singh on May 08, 2024, 10:24:20 AM

Title: prevent user from entering mobile number or website link
Post by: Satbeer Singh 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.
Title: Re: prevent user from entering mobile number or website link
Post by: MB Themes 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, ...
Title: Re: prevent user from entering mobile number or website link
Post by: Satbeer Singh 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.
Title: Re: prevent user from entering mobile number or website link
Post by: MB Themes 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)
Title: Re: prevent user from entering mobile number or website link
Post by: Satbeer Singh on May 13, 2024, 11:15:00 AM
Sir it will be very helpful if you can provide code for it.
Title: Re: prevent user from entering mobile number or website link
Post by: MB Themes 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
Title: Re: prevent user from entering mobile number or website link
Post by: Satbeer Singh on May 15, 2024, 07:38:43 PM
Sir how much it will cost to build code for this.