Jump to content

Check Multiple TLD's


sohouk

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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