Jump to content
atmark

Check all domains

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

Share this post


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

Share this post


Link to post
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...

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
I have the same problem mate...

 

I checked out your site.

File all_tld.js absent.

See paragraph 3 of the first message

Share this post


Link to post
Share on other sites

Thank you atmark for the nice tuts. simple steps.

 

Works like a charm on WHMCS Version: 4.5.2

 

animated_all_TLDs.gif

 

Have a nice day!

Share this post


Link to post
Share on other sites
Hi!

 

Please let us know the address url of this page.

I must see the code.

 

http://www.kits.com.my :-)

 

Just wondering on how to display all the available domain names in the "Congratulations! yourdomain.my, yourdomain.com.my, yourdomain.org.my are available!"

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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; }

Share this post


Link to post
Share on other sites

sorry error :)

 

Have it done for DEFAULT template

as atmark adviced in 11-29-12, 06:37 PM #20

 

thank you!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines