atmark Posted October 25, 2009 Share Posted October 25, 2009 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 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted November 2, 2009 Share Posted November 2, 2009 Thank you! 0 Quote Link to comment Share on other sites More sharing options...
PaulZ Posted January 8, 2010 Share Posted January 8, 2010 Very neat - cheers. Paul 0 Quote Link to comment Share on other sites More sharing options...
SystemOAD Posted June 1, 2010 Share Posted June 1, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
MichaelDance Posted June 3, 2010 Share Posted June 3, 2010 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... 0 Quote Link to comment Share on other sites More sharing options...
FoxAudun Posted June 9, 2010 Share Posted June 9, 2010 Doesn't seem to work. 0 Quote Link to comment Share on other sites More sharing options...
atmark Posted June 9, 2010 Author Share Posted June 9, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
atmark Posted June 9, 2010 Author Share Posted June 9, 2010 I have the same problem mate... I checked out your site. File all_tld.js absent. See paragraph 3 of the first message 0 Quote Link to comment Share on other sites More sharing options...
franchard Posted October 17, 2010 Share Posted October 17, 2010 I use 4.2.1. It doesn't works since I have installed this patch for .ca domain concerning CIRA .CA Transition to EPP: http://forum.whmcs.com/showthread.php?t=32852 0 Quote Link to comment Share on other sites More sharing options...
atmark Posted October 17, 2010 Author Share Posted October 17, 2010 I use 4.2.1. It doesn't works since I have installed this patch for .ca domain concerning CIRA .CA Transition to EPP:http://forum.whmcs.com/showthread.php?t=32852 Please send me url your whmcs scripts 0 Quote Link to comment Share on other sites More sharing options...
franchard Posted October 17, 2010 Share Posted October 17, 2010 Please send me url your whmcs scripts Can I send you a private message with the URL ? 0 Quote Link to comment Share on other sites More sharing options...
kits Posted August 11, 2011 Share Posted August 11, 2011 Thank you atmark for the nice tuts. simple steps. Works like a charm on WHMCS Version: 4.5.2 Have a nice day! 0 Quote Link to comment Share on other sites More sharing options...
atmark Posted August 11, 2011 Author Share Posted August 11, 2011 Hi! Please let us know the address url of this page. I must see the code. 0 Quote Link to comment Share on other sites More sharing options...
kits Posted August 12, 2011 Share Posted August 12, 2011 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!" 0 Quote Link to comment Share on other sites More sharing options...
atmark Posted August 12, 2011 Author Share Posted August 12, 2011 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 0 Quote Link to comment Share on other sites More sharing options...
kehari Posted August 16, 2011 Share Posted August 16, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
atmark Posted August 16, 2011 Author Share Posted August 16, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
rudolfpietersma Posted October 18, 2011 Share Posted October 18, 2011 Nothing seems to work? 0 Quote Link to comment Share on other sites More sharing options...
satsuke Posted November 29, 2012 Share Posted November 29, 2012 Hello, Can you please show me Check all domain code for modern template? 0 Quote Link to comment Share on other sites More sharing options...
atmark Posted November 29, 2012 Author Share Posted November 29, 2012 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; } 0 Quote Link to comment Share on other sites More sharing options...
satsuke Posted December 4, 2012 Share Posted December 4, 2012 @atmark Thanks for help 0 Quote Link to comment Share on other sites More sharing options...
mcxlive Posted August 30, 2013 Share Posted August 30, 2013 Great Work Dear Its Working In 5.2.6 Thanks! 0 Quote Link to comment Share on other sites More sharing options...
nakata Posted December 9, 2013 Share Posted December 9, 2013 HEllo guys, please have you somebody got this working with verticalsteps template ? 0 Quote Link to comment Share on other sites More sharing options...
nakata Posted December 9, 2013 Share Posted December 9, 2013 sorry error Have it done for DEFAULT template as atmark adviced in 11-29-12, 06:37 PM #20 thank you! 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 23, 2014 Share Posted June 23, 2014 (edited) 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 June 23, 2014 by durangod 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.