innocuous Posted November 8, 2012 Share Posted November 8, 2012 Hi, PS 1.5.2 default theme. Currently the mobile number length is set to 16. If a number is entered larger than this it generates error. Where do I change the length to 10 instead of 16? Thanks Link to comment Share on other sites More sharing options...
shacker Posted November 15, 2012 Share Posted November 15, 2012 edit in phpmyadmin the configuration table, and search & edit this field blockcontact_telnumber Link to comment Share on other sites More sharing options...
innocuous Posted November 15, 2012 Author Share Posted November 15, 2012 Hi, Currently it has the value :+33 (0)1.23.45.67.89 I am in India and we use [spam-filter] xxxxxxxxxx where x is 10 digit number. BUT isn't this field used to display contact information? How is it related to length of Mobile number entered during user signup? Link to comment Share on other sites More sharing options...
shacker Posted November 15, 2012 Share Posted November 15, 2012 this is in the tools.php file, to validate phone number Link to comment Share on other sites More sharing options...
innocuous Posted November 17, 2012 Author Share Posted November 17, 2012 Hi, Could you point me to the code? I could not find any reference to 'mobile' or '16' or 'phone' or validatephone / validatemobile. We are talking of /classes/tools.php right? Link to comment Share on other sites More sharing options...
shacker Posted November 19, 2012 Share Posted November 19, 2012 edit the validate.php, and find public static function isPhoneNumber($phoneNumber) { return preg_match('/^[+0-9. ()-]*$/', $phoneNumber); } Link to comment Share on other sites More sharing options...
Recommended Posts