beboo Posted August 30, 2009 Share Posted August 30, 2009 Hi all, I was poking around in the database working on some integration with a panel and I noticed there is a table called tbldomainsadditionalfields and was wondering what it is. It's empty and I don't see any options anywhere for adding additional fields to the Domains. If this is possible, that would be great as I am currently using the Notes field for some data and would like to have a seperate field for it on the Client's domain tab. Anyone have any insight into this? Was this left over from something or possibly a future feature? Brandon 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted August 30, 2009 Share Posted August 30, 2009 Hi, In includes/additionaldomainfields.php you can add a e.g extra field for a TLD. 0 Quote Link to comment Share on other sites More sharing options...
beboo Posted August 31, 2009 Author Share Posted August 31, 2009 Perfect! Just what I was looking for. Thanks =] Perhaps that should be somewhere else tho like under Setup? Nice feature but not pointed out anywhere. 0 Quote Link to comment Share on other sites More sharing options...
mtk Posted September 2, 2009 Share Posted September 2, 2009 great! can a validation be used here somehow? 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted September 2, 2009 Share Posted September 2, 2009 If you mean e.g min/max length, this can be added in the configuration.php $DomainMinLengthRestrictions[".ws"] = 4; $DomainMaxLengthRestrictions[".ws"] = 63; 0 Quote Link to comment Share on other sites More sharing options...
mtk Posted September 2, 2009 Share Posted September 2, 2009 no I mean a full regular expression like in the other custom fields. i.e [a-zA-Z]+ 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted September 2, 2009 Share Posted September 2, 2009 This can be added in configuredomains.tpl as a if statement, for every .TLD 0 Quote Link to comment Share on other sites More sharing options...
mtk Posted September 2, 2009 Share Posted September 2, 2009 This can be added in configuredomains.tpl as a if statement, for every .TLD yes, but this will not act as a full field validation, as if it would if it would be added as JS. 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted September 2, 2009 Share Posted September 2, 2009 That`s true, but it works for me, by doing it this way... 0 Quote Link to comment Share on other sites More sharing options...
mtk Posted September 2, 2009 Share Posted September 2, 2009 can you post a small example? also, what happens when the client inserts an invalid value? 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.