Faizal1 Posted July 28, 2020 Share Posted July 28, 2020 Hi there, Could someone help me add a alert message (with link to kb url) to the domain configuration page when a certain tld is selected? For example a message would only popup if a .au domain is being registered. Thanks 1 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 29, 2020 Share Posted July 29, 2020 13 hours ago, Faizal1 said: Could someone help me add a alert message (with link to kb url) to the domain configuration page when a certain tld is selected? For example a message would only popup if a .au domain is being registered. the non-programming way to do this might be to use a custom additional domain field... https://docs.whmcs.com/Additional_Domain_Fields $additionaldomainfields[".com.au"][] = array("Name" => "Further Information","Type" => "display","Default" =>"<div class=\"alert alert-success\" role=\"alert\">Click <a href=\"https://google.com\" target=\"_blank\">here</a> for important details about .au registrations.</div>"); although because of the way WHMCS have coded the feature, I think it more likely the field would be added to the end of the existing fields rather than the start... though there are some nasty ways around that if it's an issue. if you're going down the programming route, then it's either an edit to the configuredomains.tpl template (if statement), or an action hook - but whether a hook would be practical depends on how and where the alert would be shown. 1 Quote Link to comment Share on other sites More sharing options...
Faizal1 Posted July 29, 2020 Author Share Posted July 29, 2020 Always appreciate your help Brian. That worked perfectly and it did add it to the end but that's ok as long as it's there. 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.