Jump to content

Default name server


Alfahmad

Recommended Posts

  • WHMCS CEO

Yes,

 

This is possible. Just edit order-stepthree.tpl template file and change the fields where it asks for nameservers from type="text" to type="hidden" so the fields are hidden and then add the value attribute containing the default values you want the nameservers to take.

 

Hope that helps!

 

Matt

Link to comment
Share on other sites

  • 1 month later...

I am attempint to also do this as most of my customers have no clue what a name server is:

I got this part done

 

<input type="text" name="domainns1" value="ns1.defaultnameserver.com"

 

And that works "ok"

 

Actually I would love to remove this all together, is this doable?

 

Thanks!

Corisa

Link to comment
Share on other sites

As matt stated, you can hide it, but you can't remove it. It must be there.

 

To hide it just change yours to:

<input type="hidden" name="domainns1" value="ns1.defaultnameserver.com" ...

 

Make sure to remove this also:


[b]{$LANG.orderdomainnameservers}[/b]</p>

{$LANG.orderdomainnameserver1}

{$LANG.orderdomainnameserver2}

looks silly to have "Name Servers:" and then nothing below it :)

Link to comment
Share on other sites

what is $domainns1 and $domainns2 that show up in the tempaltes. The values are empty by default.

 

<input type="text" name="domainns2" size="40" value="{$domainns1}">

<input type="text" name="domainns2" size="40" value="{$domainns2}">

 

I would assume that they should take the value of the default nameservers from my registrar settings, which are set. Anyone got any info on this?

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

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