Jump to content
Faizal1

Add a message to 'domain configuration' page

Recommended Posts

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

Share this post


Link to post
Share on other sites
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>");

QguOK9Y.png

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated