Leapje Posted July 26, 2013 Share Posted July 26, 2013 Hi, Is it possible to add custom statusses for the domains. For example quarantaine? The reason for this is that with .nl domains getting the status quarantaine seems to be impossible so I like to be able to set it in my custom registrar module... I'm able to add the status to the database, only WHMCS doesn't pick it up that way. Anybody any ideas? 0 Quote Link to comment Share on other sites More sharing options...
stormy Posted July 26, 2013 Share Posted July 26, 2013 We've been asking WHMCS to add a status "Transferred away" for a few years. I suppose that answers your question 0 Quote Link to comment Share on other sites More sharing options...
Leapje Posted July 26, 2013 Author Share Posted July 26, 2013 Yeah, I saw that post... It was so old I sort of hoped it was resolved... I'm now trying to fix it myself, it's looking promising! If it works I shall post the tweaks so you can use it to! 0 Quote Link to comment Share on other sites More sharing options...
Leapje Posted July 26, 2013 Author Share Posted July 26, 2013 I've got it... It not exactly the cleanest option, however it does the trick! 1. In the database change the values for the status field in the domains table and add the value you want (only one is possible with my code). 2. In the header.tpl for the active admin template I've added the following javascript code: <script> if (window.location.pathname == '/sales/admin/clientsdomains.php') { var selObj = $('select[name=status]'); var optObj = $('<option>').attr('value', 'Quarantaine').text('Quarantaine'); if (selObj.find('option[selected]').length <= 0) selObj.append(optObj.attr('selected', true)); else selObj.append(optObj); } </script> You can change Quarantaine to the value you need/want. We got a custom template which includes a js file, in the tpl file you might need to escape some characters. 3. In the active client template add the following javascript to clientareadomains.tpl: <script> $('span.quarantaine').text('Quarantaine'); </script> Again, change quarantaine to the value you need/want. You now have a custom domain status. 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.