Jump to content

Restoring the Domain Checker on Main Page


Recommended Posts

Hello,

 

My previous designer removed the check domain availability on the main page of my WHMCS. Now I would like to get it back. Unfortunately he is now uncontactable, so I am unable to know which codes he edited.

 

http://demo.whmcs.com/ (this is the example of the check domain availability that I am talking about)

 

How can I restore this back?

 

Thanks in advance!

Link to comment
Share on other sites

After using this code and inserting it into the homepage.tpl file, it does not really match what I want. This is what I see on the main page after inserting the code.

 

2014-08-09 09_41_37-Portal Home - Osprey Host.png

 

Typing a domain into it, will lead me to the actual domain checker page, which is what I want. In other words, how can I integrate the domain checker directly into the home page without the need of doing an extra step?

 

2014-08-09 09_42_00-Domain Checker - Osprey Host.png

 

This is quite frustrating for me because I had it initially until I stupidly told my designer to remove it.

Link to comment
Share on other sites

have you checked the first option in my last reply?

{if $condlinks.domainreg || $condlinks.domaintrans || $condlinks.domainown}
<div class="well">
   <div class="styled_title">
       <h1>{$LANG.domaincheckerchoosedomain}</h1>
   </div>
   <p>{$LANG.domaincheckerenterdomain}</p>
   <br />
   <div class="textcenter">
       <form method="post" action="{$systemsslurl}domainchecker.php">
       <input class="bigfield" name="domain" type="text" value="{$LANG.domaincheckerdomainexample}" onfocus="if(this.value=='{$LANG.domaincheckerdomainexample}')this.value=''" onblur="if(this.value=='')this.value='{$LANG.domaincheckerdomainexample}'" />
       {if $captcha}
       <div class="captchainput" align="center">
           <p>{$LANG.captchaverify}</p>
           {if $captcha eq "recaptcha"}
           <p>{$recaptchahtml}</p>
           {else}
           <p><img src="includes/verifyimage.php" align="middle" /> <input type="text" name="code" class="input-small" maxlength="5" /></p>
           {/if}
       </div>
       {/if}
       <div class="internalpadding">{if $condlinks.domainreg}<input type="submit" value="{$LANG.checkavailability}" class="btn btn-primary btn-large" /> {/if}{if $condlinks.domaintrans}<input type="submit" name="transfer" value="{$LANG.domainstransfer}" class="btn btn-success btn-large" />{/if}{if $condlinks.domainown} <input type="submit" name="hosting" value="{$LANG.domaincheckerhostingonly}" class="btn btn-large" />{/if}</div>
       </form>
   </div>
</div>
{/if}

place this to your homepage.tpl (at top)

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