Jump to content

Manage NameServers


Guest vuzuggu

Recommended Posts

Guest vuzuggu

I use enom as a registrar and the module is great. For .com (and pretty much all domains) the manage nameservers form works perfectly.

 

However for one TLD the name-servers have to be changed manually with the registrar. How do I remove the form for these TLD domains?

Link to comment
Share on other sites

I would suggest that one possible solution would be along similar lines to the thread below...

 

http://forum.whmcs.com/showthread.php?108094-Disable-Registrar-Lock-option-for-unsupported-TLD

 

although for your issue, you wouldn't necessarily use a hook - as it's not a sidebar/navbar issue, nor is there an existing variable that you can manipulate to tweak the output.

 

it would require 2 or 3 template changes... e.g if you wanted to remove the "Manage Nameservers" dropdown link (My Domains - clientarea.php?action=domains) for each domain entry that used this particular TLD, you could modify clientareadomains.tps and replace...

 

<ul class="dropdown-menu text-left" role="menu">
                                       {if $domain.status eq 'Active'}
                                            <li><a  href="clientarea.php?action=domaindetails&id={$domain.id}#tabNameservers"><i  class="glyphicon glyphicon-globe"></i>  {$LANG.domainmanagens}</a></li>
                                            <li><a  href="clientarea.php?action=domaincontacts&domainid={$domain.id}"><i  class="glyphicon glyphicon-user"></i>  {$LANG.domaincontactinfoedit}</a></li>
                                            <li><a  href="clientarea.php?action=domaindetails&id={$domain.id}#tabAutorenew"><i  class="glyphicon glyphicon-globe"></i>  {$LANG.domainautorenewstatus}</a></li>
                                           <li class="divider"></li>
                                       {/if}
                                        <li><a  href="clientarea.php?action=domaindetails&id={$domain.id}"><i  class="glyphicon glyphicon-pencil"></i>  {$LANG.managedomain}</a></li>
                                   </ul>

with..

 

<ul class="dropdown-menu text-left" role="menu">
                                       {if $domain.status eq 'Active'}
                                           {$tld=substr($domain.domain, strrpos($domain.domain, ".")+1)}
                                           {$blockedtlds=['info']}
                                           {if !in_array($tld,$blockedtlds)}
                                            <li><a  href="clientarea.php?action=domaindetails&id={$domain.id}#tabNameservers"><i  class="glyphicon glyphicon-globe"></i>  {$LANG.domainmanagens}</a></li>{/if} 
                                            <li><a  href="clientarea.php?action=domaincontacts&domainid={$domain.id}"><i  class="glyphicon glyphicon-user"></i>  {$LANG.domaincontactinfoedit}</a></li>
                                            <li><a  href="clientarea.php?action=domaindetails&id={$domain.id}#tabAutorenew"><i  class="glyphicon glyphicon-globe"></i>  {$LANG.domainautorenewstatus}</a></li>
                                           <li class="divider"></li>
                                       {/if}
                                        <li><a  href="clientarea.php?action=domaindetails&id={$domain.id}"><i  class="glyphicon glyphicon-pencil"></i>  {$LANG.managedomain}</a></li>
                                   </ul>

that will prevent the link appearing for any TLD that you have listed as being blocked - in the above code it will block .info domains from showing the link... your troublesome TLD will likely be something else... you can add more than one TLD to that array to block.

 

I think the other way to the Manage nameservers page is through the bulk dropdown at the bottom of the page - the simplest solution would be to remove the link...

 

<li><a href="#" id="nameservers"  class="setBulkAction"><i class="glyphicon  glyphicon-globe"></i>  {$LANG.domainmanagens}</a></li>

if you don't remove the link, then you may be looking at doing some serious modification to the bulkdomainmanagement.tpl template - wholly in the template itself, or with the additional help of an action hook.

 

if it were me, and for just one troublesome TLD, i'd just remove the bulk link! :)

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