Jump to content

Check all domains


atmark

Recommended Posts

That an once to note all ' checkbox ' TLD on page of check of domains it is necessary to make 3 steps:

 

1 - Open domainchecker.tpl in yours template:

Find:

www. <input type="text" name="domain" value="{$domain}" size="40">

Add after this field

   <input type="checkbox" name="total" value="checkbox" onClick="check_all_tld(this.form,'tlds[]',this.checked)">All TLDs

 

2 - In a file header.tpl before </head> add

<script src="all_tld.js" type="text/javascript"></script>

 

3 - Create a file all_tld.js with the code:

function check_all_tld(oForm, cbName, checked)

{ for (var i=0; i < oForm[cbName].length; i++) oForm[cbName].checked = checked; }

 

Enjoy

Link to comment
Share on other sites

  • 2 months later...
  • 4 months later...

Has anyone got this to work in v4.2.1?

 

All I can seem to get it do to is refresh the page each time I click "Lookup"

 

I am using the "security code" bit on my WHMCS so this must be entered when using the domain checker, could this be why its not working or does this just not work with v4.2.1?

 

Thanks,

Nath

Link to comment
Share on other sites

Has anyone got this to work in v4.2.1?

 

All I can seem to get it do to is refresh the page each time I click "Lookup"

 

I am using the "security code" bit on my WHMCS so this must be entered when using the domain checker, could this be why its not working or does this just not work with v4.2.1?

 

Thanks,

Nath

 

I have the same problem mate...

Link to comment
Share on other sites

Hi!

 

I was on vacation. Sorry for the silence.

 

I specifically checked the work in v4.2.1 everything works fine.

You created all_tld.js?

He should be at the root of the script or you have to change the path to the file in header.tpl

 

Please give me the link so I can examine your issue.

Link to comment
Share on other sites

  • 4 months later...
  • 9 months later...

Hi!

 

To select all domains tested, available to order -

 

Open domainchecker.tpl

Find the code

 

<form method="post" action="{$systemsslurl}cart.php?a=add&domain=register">
 <table width="100%" border="0" cellpadding="10" cellspacing="0" class="data">
   <tr>
     <th width="20">      

 

and add after it

 

<input type="checkbox" name="total" value="checkbox" onClick="check_all_tld(this.form,'domains[]',this.checked)">

 

Enjoy

Link to comment
Share on other sites

thanks for the codes.

 

Is this same thing possible to do in domain check integration code?

I would like user to only write domain name without extension and it automatically checks all available extensions (5-8 of them). Now the integration code (what i have in use) is just checking 1 tld selected from dropdown box.

Link to comment
Share on other sites

I still think that this is not possible.

The system returns a single response status verification domain.

You have to create an intermediate page on the site, which handles the request of the array, sending API requests one by one.

I solved the problem this way.

Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...

Hi!

You are talking about a pattern "modern" for cart?

Code is embedded not in the cart

 

For example template "Default"

OPEN FILE - domainchecker.tpl

FIND

<div class="domcheckertldselect hide" id="tlds">

REPLACE

<div class="domcheckertldselect hide" id="tlds">

<div><input type="checkbox" name="total" value="checkbox" onClick="check_all_tld(this.form,'tlds[]',this.checked)" />All TLDs</div>

 

ADD in file /templates/default/js/whmcs.js string:

function check_all_tld(oForm, cbName, checked) { for (var i=0; i < oForm[cbName].length; i++) oForm[cbName].checked = checked; }

Link to comment
Share on other sites

  • 8 months later...
  • 3 months later...
  • 6 months later...

I like the idea and i was thinking about doing this... However with 130 tld's that i have, wont that overtax the system? Isnt there a downside to letting them choose so many at once?

 

Im thinking maybe a choose random 20 tick box... :)

 

Also just fyi, in your download file there is a bunch of junk in there on the bottom... looks like possibly some utf8 stuff im not sure but you might want to check out your text file to see.

Edited by durangod
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