sohouk Posted February 23, 2012 Share Posted February 23, 2012 I am certain this has been discussed, but in spite of a long trawl, I could not find out the answer to my simple question; On the standard WHMCS homepage (homepage.tpl) there is a domain checker. It only offers a single check of a single tld. To check multiple tld's, the user has to first check a single domain, then on the results page they then have to click the button for 'other TLD's' which opens up a nice selection box of tld's. I would prefer to have the domain checker with (say) six other tld's shown below as check boxes that may be selected. Is there a way to show a selection of the tld option on the initial homepage checker? Trevor 0 Quote Link to comment Share on other sites More sharing options...
tripler Posted February 23, 2012 Share Posted February 23, 2012 I cant remember if we did this for our template or its from a older version and was included.... I think maybe we did this logic, not sure. We run a old version because we modified so much it would take too much time to sit down and go over the change log to map out an update so im not sure, I see your running 5 You can edit domainchecker.tpl and do a foreach + a check box example: {foreach from=$tldpricelist key=t item=info name=tlds} {if $smarty.foreach.tlds.index % 5 == 0} </tr><tr> {/if} <td> <label for="tld_{$smarty.foreach.tlds.index}"> <input {if in_array($info.tld,$smarty.post.tlds) || $info.tld|replace:'.':'' eq $smarty.get.tld} checked="checked"{/if} id="tld_{$smarty.foreach.tlds.index}" type="checkbox" name="tlds[]" value="{$info.tld}" /> {if in_array($info.tld,$smarty.post.tlds) || $info.tld|replace:'.':'' eq $smarty.get.tld} <span class="highlight">{$info.tld}</span> {else} {$info.tld} {/if} </label> </td> {/foreach} then you would have your logic for submit button or w/e 0 Quote Link to comment Share on other sites More sharing options...
satyamy Posted February 23, 2012 Share Posted February 23, 2012 yes the page /domainchecker.php has option to select multiple TLDs but not on the homepage their should be an option to check multiple tld on home page 0 Quote Link to comment Share on other sites More sharing options...
tripler Posted February 23, 2012 Share Posted February 23, 2012 Well we have domainchecker.php url rewrite to "domains.php" and apply the same logic above thats the only page we have that people an buy and lookup, less the bulk and transfer page. You still can apply the same logic I posted above on what you are calling the "homepage" just edit that tpl file. Or you could make a static home page on your root directory and link directly to domain checker ex: homepage: about -------------- Domains -------------- Hosting ------------ Contact --------------------------------------------------------------------------------- |--------------------- | ------------------------ | --------------------- | something domainchecker.php cart.php submitticket.php That will give you some freedom to allow for multiple domain searches direct, without having to modify anything. My 02c 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.