redhot Posted January 25, 2014 Share Posted January 25, 2014 Hi there, I have the domain checker integrated into my website in a few places with the use of the integration code. This function was working properly on v5.2.13 before my most recent update to v5.2.16 (was on holiday for a bit so it hadn't been updated yet). Whenever trying to check a domain name, it simply redirects to the client login page - even if I am already logged in on a user test account. Here is the domain /http://orbhost.co.nz/domain-names/ Both domain checkers on this page (below the navigation, and just before the footer begins) have this fault. I've looked at the domain checker integration code and it appears to no longer have the following string as it used to: <input type="hidden" name="token" value="75bf75a2261b32da9da8fdb60b64700b89f71319" /> The only difference as far as I can see with my code was the token value string, but I have tried removing this to no avail. Here is my current integration code (mixed in with CSS, this was working properly at the end of last year): <div class="domainsearch"> <div class="row"> <div class="twelve columns text-center"> <form action="https://orbhost.co.nz/clients/domainchecker.php" method="post"> <input type="hidden" name="direct" value="true" /> <div class="two columns formpadding"> <p>Domain Lookup</p> </div> <div class="six columns formpadding"> <input type="text" placeholder="(eg. business name)" name="domain" size="20" /> </div> <div class="two columns formpadding"> <select name="ext"> <option>.co.nz</option> <option>.net.nz</option> <option>.org.nz</option> <option>.geek.nz</option> <option>.com</option> <option>.net</option> <option>.org</option> <option>.com.au</option> <option>.net.au</option> <option>.org.au</option> <option>.co.uk</option> <option>.org.uk</option> </select> </div> <div class="two columns formpadding"> <input type="submit" value="Search" class="button" /> </div> </form> </div> </div> </div> Any help would be appreciated - did a search and couldn't find anything about my problem within the last 6mo. Cheers. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 25, 2014 Share Posted January 25, 2014 I don't know if this will help, but Chrome gives the following errors after submitting a test domain search to the search box near the footer... The page at 'https://orbhost.co.nz/clients/clientarea.php' was loaded over HTTPS, but ran insecure content from 'http://fonts.googleapis.com/css?family=Droid+Sans:400,700': this content should also be loaded over HTTPS. clientarea.php:21 Uncaught SyntaxError: Unexpected token , clientarea.php:28 I've quickly tested our integration code on 5.2.16 and it seems to be working fine. 0 Quote Link to comment Share on other sites More sharing options...
redhot Posted January 26, 2014 Author Share Posted January 26, 2014 Hi Brian, Thanks for the information. Can you confirm if your integration code is any different to the above, i.e. including a token value? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 26, 2014 Share Posted January 26, 2014 oh sorry forgot to mention that... the working integration code given by whmcs in v5.2.16 does NOT include a token value. <form action="http://www.mydomain.com/domainchecker.php" method="post"> <input type="hidden" name="direct" value="true" /> Domain: <input type="text" name="domain" size="20" /> <select name="ext"> <option>.com</option> <option>.net</option> <option>.org</option> </select> <input type="submit" value="Go" /> </form> 0 Quote Link to comment Share on other sites More sharing options...
redhot Posted January 26, 2014 Author Share Posted January 26, 2014 Thanks for that... have ended up changing it instead to the 'domain ordering' code as a bit of a workaround. It redirects to the domain order form successfully now, but doesn't pass the actual search text into the form on this page. Example: search test555.co.nz in one of the integrated domain checker boxes, and it redirects to the domain ordering page without the text - essentially making customers have to type it in again. (banging head against wall) May just add this to my 'to-do' list and come back to it shortly with a clear head... 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 26, 2014 Share Posted January 26, 2014 looking at your code, I think you've missed off two fields... here's the integration code from my whmcs.. <form action="http://www.mydomain.com/cart.php?a=add&domain=register" method="post"> Domain: <input type="text" name="sld" size="20" /> <select name="tld"> <option>.com</option> <option>.net</option> <option>.org</option> </select> <input type="submit" value="Go" /> </form> there is probably no need for your hidden field - and you're not passing sld & tld in your form... perhaps this is why the entered domain / tld is not being passed to the cart? 0 Quote Link to comment Share on other sites More sharing options...
redhot Posted January 26, 2014 Author Share Posted January 26, 2014 looking at your code, I think you've missed off two fields... here's the integration code from my whmcs.. <form action="http://www.mydomain.com/cart.php?a=add&domain=register" method="post"> Domain: <input type="text" name="sld" size="20" /> <select name="tld"> <option>.com</option> <option>.net</option> <option>.org</option> </select> <input type="submit" value="Go" /> </form> there is probably no need for your hidden field - and you're not passing sld & tld in your form... perhaps this is why the entered domain / tld is not being passed to the cart? ! I quickly changed the URL for the 'domain ordering' code and I hadn't noticed those other changes. It's working now - thanks Brian! I've done away with the 'domain availability lookup' code as it seems like an extra step in the ordering process anyways. Enjoy the rest of your weekend. 0 Quote Link to comment Share on other sites More sharing options...
whmcexperts Posted February 4, 2014 Share Posted February 4, 2014 Hello, I am posting to page domainchecker.php?search=bulk with POST parameters bulkdomains asd.com sd.com asd.net sd.net tld[] .com tld[] .net It shows me the login page next. What am I doing wrong? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 4, 2014 Share Posted February 4, 2014 perhaps this might help... http://forum.whmcs.com/showthread.php?75019-Bulk-transfer-page-not-accepting-POST-requets http://forum.whmcs.com/showthread.php?24638-Integration-code-Bulk-Register&highlight=bulk+post if it doesn't, then it would be helpful to see the code you're using to post to the domainchecker. 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.