erwin123 Posted April 26, 2017 Share Posted April 26, 2017 How can I make sure that the whois/shoppingcart only allows a search for domains with at least three letters? People now enter a domain with one letter and the whois shows it as available and allows it to be ordered... Thanks! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 26, 2017 Share Posted April 26, 2017 How can I make sure that the whois/shoppingcart only allows a search for domains with at least three letters?People now enter a domain with one letter and the whois shows it as available and allows it to be ordered... it is possible to order 1-letter domains - though they're usual ccTLDs (e.g .be, .cc, .je etc)... but in general, the minimum length is 2 or 3. you can add additional domain length settings via the configuration.php file. http://docs.whmcs.com/Domains_Configuration#Customising_Domain_Name_Length_Restrictions The major TLDs have length limits included by default and you can specify your own for any others by adding lines such as these to the WHMCS configuration.php file: $DomainMinLengthRestrictions[".asia"] = 3; $DomainMaxLengthRestrictions[".asia"] = 64; $DomainMinLengthRestrictions[".ws"] = 4; $DomainMaxLengthRestrictions[".ws"] = 63; though whether it works often depends on which WHMCS version you're using... i've quickly tested with v7.2b, so I assume will work with v7+ 0 Quote Link to comment Share on other sites More sharing options...
erwin123 Posted April 26, 2017 Author Share Posted April 26, 2017 Dear Brian, Thank you. That is the main configuration.php file in the root of the installation with the database pw etc? There's no mention at all in this configurationfile. Can I just add it on the bottom? thanks, Erwin - - - Updated - - - Dear Brian, I've tried this but it does not seem to have any effect. I'm using v7.1.2 Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 26, 2017 Share Posted April 26, 2017 Hi Erwin, Thank you.That is the main configuration.php file in the root of the installation with the database pw etc? There's no mention at all in this configuration file. Can I just add it on the bottom? yes to both - as long as they're in there somewhere, and formatted correctly, then it'll be fine. there are lots of potential changes that you can make to the configuration.php file that aren't added/mentioned by default - Smarty security policy, timezones, specific TLD settings etc... I think WHMCS don't put them in there by default to avoid causing confusion to customers. I've tried this but it does not seem to have any effect.I'm using v7.1.2 it seems to work fine for v7.1.2 - though it's giving an incorrect error message, "Domains must begin with a letter or a number", but it's preventing 1 & 2 letter domains... what TLDs are you trying to do this with? in the above 2 devs, i'm only trying with .actor and .xyz 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.