Jump to content

Homepage.TPL


zeke

Recommended Posts

Hi Everyone,

 

I was working on some customization, and edited the wrong file.

 

Now on my Admin Summary page the layout is incorrect, and i receive the following errors;

 

Smarty Error: [in /var/www/html/whmcs_5.1.2/templates/default/homepage.tpl line 2]: syntax error: unrecognized tag:

{$LANG.domaincheckerchoosedomain

 

i beleive i have removed something in the homepage.tpl file that i shouldnt have. I will paste my code below, but if anyone could confirm what i have done incorrectly, or provide the correct syntax that would be great.

 

{if $registerdomainenabled || $transferdomainenabled || $owndomainenabled}

<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">

onfocus="if(this.value=='{$LANG.domaincheckerdomai nexample}')this.value=''" onblur="if(this.value=='')this.value='{$LANG.domai ncheckerdomainexample}'" /><br /><br />

<input type="submit" value="{$LANG.checkavailability}" class="btn primary large" /> <input type="submit" name="transfer" value="{$LANG.domainstransfer}" class="btn success large" /> <input type="submit" name="hosting" value="{$LANG.domaincheckerhostingonly}" class="btn large" />

</form>

</div>

</div>

<div class="captchainput" align="center">

<p>{$LANG.captchaverify}</p>

{if $capatacha eq "recaptcha"}

<p>{$recapatchahtml}</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 $registerdomainenabled}<input type="submit" value="{$LANG.checkavailability}" class="btn btn-primary btn-large" /> {/if}{if $transferdomainenabled}<input type="submit" name="transfer" value="{$LANG.domainstransfer}" class="btn btn-success btn-large" />{/if}{if $owndomainenabled} <input type="submit" name="hosting" value="{$LANG.domaincheckerhostingonly}" class="btn btn-large" />{/if}</div>

</form>

</div>

</div>

{/if}

 

<div class="row">

 

<div class="col2half">

<div class="internalpadding">

<div class="styled_title">

<h2>{$LANG.navservicesorder}</h2>

</div>

<p>{$LANG.clientareahomeorder}<br /><br /></p>

<form method="post" action="cart.php">

<p align="center"><input type="submit" value="{$LANG.clientareahomeorderbtn} »" class="btn" /></p>

</form>

</div>

</div>

<div class="col2half">

<div class="internalpadding">

<div class="styled_title"><h2>{$LANG.manageyouraccount}</h2></div>

<p>{$LANG.clientareahomelogin}<br /><br /></p>

<form method="post" action="clientarea.php">

<p align="center"><input type="submit" value="{$LANG.clientareahomeloginbtn} »" class="btn" /></p>

</form>

</div>

</div>

 

</div>

 

<div class="row">

 

{if $twitterusername}

<div class="styled_title">

<h2>{$LANG.twitterlatesttweets}</h2>

</div>

<div id="twitterfeed">

<p><img src="images/loading.gif"></p>

</div>

{literal}<script language="javascript">

jQuery(document).ready(function(){

jQuery.post("announcements.php", { action: "twitterfeed", numtweets: 3 },

function(data){

jQuery("#twitterfeed").html(data);

});

});

</script>{/literal}

{elseif $announcements}

<div class="styled_title">

<h2>{$LANG.latestannouncements}</h2>

</div>

{foreach from=$announcements item=announcement}

<p>{$announcement.date} - <a href="{if $seofriendlyurls}announcements/{$announcement.id}/{$announcement.urlfriendlytitle}.html{else}announcements.php?id={$announcement.id}{/if}"><b>{$announcement.title}</b></a><br />{$announcement.text|strip_tags|truncate:100:"..."}</p>

{/foreach}

{/if}

 

</div>

 

 

Thanks

Link to comment
Share on other sites

why don't you just upload the original again from your version download?

 

Also, this looks like a clientarea file but you say it has messed up your admin area ? Are you sure you weren't making editing changes in the wrong place?

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