zeke Posted April 9, 2013 Share Posted April 9, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
Si Posted April 9, 2013 Share Posted April 9, 2013 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? 0 Quote Link to comment Share on other sites More sharing options...
Pixelior Posted April 9, 2013 Share Posted April 9, 2013 What Si said was the best solution, also homepage.tpl in templates folder, shouldn't affect admin panel in any way. Maybe the issue comes from that you are using an older WHMCS version with the latest homepage.tpl with new variables. 0 Quote Link to comment Share on other sites More sharing options...
zeke Posted April 9, 2013 Author Share Posted April 9, 2013 Hi, Thank you for the reply. It looks like i got in today and everything appears to have resolved itself. I am not sure why, but still happy with the outcome. Thanks for your help! 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.