Jump to content

Registering .tel domains and WHMCS


Mondoir

Recommended Posts

Hi everyone

 

I had a problem with WHMCS for registering .tel domains. When you add .tel extension into your domains list, it will show in all domain registration fields. When someone wants to order a hosting package, he has to choose a domain name. what will happen if he chose a .tel domain with the hosting package?

as you know, .tel domains do not use regular hosting packages.

So I tried to remove this extension when the order is being made by a hosting package.

 

You have to find this page: configureproductdomain.tpl in your orderforms folder.

Find these codes:

 

{foreach key=num item=listtld from=$registertlds}
<option value="{$listtld}"{if $listtld eq $tld} selected="selected"{/if}>{$listtld}</option>
{/foreach}

 

then change it with this:

 

{foreach key=num item=listtld from=$registertlds}{if $listtld neq '.tel'}
<option value="{if $listtld neq '.tel'}{$listtld}{/if}"{if $listtld eq $tld} selected="selected"{/if}>{if $listtld neq '.tel'}{$listtld}{/if}</option>
{/if}
{/foreach}

 

This will hide .tel extension in domain order form after a hosting package has been chosen.

 

Next, in your client area, you can let your clients change DNS of .tel domains, also they can not register a DNS on this domain.

 

So in clientareadomaindetails.tpl, look for this code:

<td class="fieldarea" width="150">{$LANG.domainnameserver1}:</td>
           <td><input type="text" name="ns1" value="{$ns1}" size="40"></td>

 

and change it with:

 

<td class="fieldarea" width="150">{$LANG.domainnameserver1}:</td>
           <td><input type="text" name="ns1" value="{$ns1}" size="40" {if $tld eq "tel"}disabled="disabled"{/if}></td>

 

Remember that you have to make change to ns2 to ns 4 as well.

 

Also find this line for registering DNS:

<input type="submit" value="{$LANG.domainregisterns}" class="button">

 

and change to :

 

<input type="submit" value="{$LANG.domainregisterns}" class="button" {if $tld eq 'tel'}disabled="disabled"{/if}>

 

This will disable the DNS registration on .tel domains.

 

I know this is a little amature coding, but this is what I figure out ! :lol:

Link to comment
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