Jump to content

Header / Footer Customization produces blank page for custom client area template


Global1

Recommended Posts

I am having difficulty customizing the header and footer for the default template in the client area. I have watched the video and read the instructions (created custom template / directory named gmms), and when I attempt to view it it comes up blank, please advise. I have pasted the error code from the system activity log below. I apologize in advance for asking any simple questions but I am not a developer even though I am well versed in most technical areas. Thanks in advance. :

 

System Activity Log

 

 

Smarty Error: [in gmms/header.tpl line 45]: syntax error: mismatched tag {/if}. (Smarty_Compiler.class.php, line 2340)
Anthony	
17/08/2014 16:09	
Smarty Error: [in gmms/header.tpl line 45]: syntax error: unexpected {else} (Smarty_Compiler.class.php, line 480)
Anthony	
17/08/2014 16:09	
Smarty Error: [in gmms/header.tpl line 31]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 592)
Anthony	
17/08/2014 16:09	
Smarty Error: [in gmms/header.tpl line 31]: syntax error: unrecognized tag: ?> <a href="<?php echo esc_url(home_url()); ?>"><img src="<?php echo </div> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <div class="nav-collapse"> <ul class="nav"> <li><a id="Menu-Home" href="{if $loggedin (Smarty_Compiler.class.php, line 448)
Anthony	
17/08/2014 14:47	
Email Sending Failed - SMTP connect() failed. (User ID: 1 - Subject: Welcome)
Anthony	
17/08/2014 14:47	
Created Client Tony Wells - User ID: 1
Anthony	
17/08/2014 14:28	
Smarty Error: [in GMMS/header.tpl line 45]: syntax error: mismatched tag {/if}. (Smarty_Compiler.class.php, line 2340)
Anthony	
17/08/2014 14:28	
Smarty Error: [in GMMS/header.tpl line 45]: syntax error: unexpected {else} (Smarty_Compiler.class.php, line 480)
Anthony	
17/08/2014 14:28	
Smarty Error: [in GMMS/header.tpl line 31]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 592)
Anthony	
17/08/2014 14:28	
Smarty Error: [in GMMS/header.tpl line 31]: syntax error: unrecognized tag: ?> <a href="<?php echo esc_url(home_url()); ?>"><img src="<?php echo </div> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <div class="nav-collapse"> <ul class="nav"> <li><a id="Menu-Home" href="{if $loggedin (Smarty_Compiler.class.php, line 448)

Link to comment
Share on other sites

can you show us what you have done to your header.tpl file eg :

 

Smarty Error: [in gmms/header.tpl line 45]: syntax error: mismatched tag {/if}. (Smarty_Compiler.class.php, line 2340)

 

 

i'd start there, did you make the changes or did someone else ?

 

 

Cain

Link to comment
Share on other sites

Hello Cain,

 

I basically followed the instructions per the video tutorial where I duplicated the default folder for the default template, renamed it gmms and did a copy and paste from my website design HTML that controlled my header of my website to the header.tpl template of my custom template folder (gmms), making sure to preserve the <head> section of code in the default WHMCS template. I have pasted the changes to the header.tpl file below:

 

Before Edit

 

<head>
   <meta http-equiv="content-type" content="text/html; charset={$charset}" />
   <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title>

   {if $systemurl}<base href="{$systemurl}" />
   {/if}<script type="text/javascript" src="includes/jscript/jquery.js"></script>
   {if $livehelpjs}{$livehelpjs}
   {/if}
   <link href="templates/{$template}/css/bootstrap.css" rel="stylesheet">
   <link href="templates/{$template}/css/whmcs.css" rel="stylesheet">

   <script src="templates/{$template}/js/whmcs.js"></script>

   {$headoutput}

 </head>

 

 

After Edit

 

<head>
   <meta http-equiv="content-type" content="text/html; charset={$charset}" />
   <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title>

   <link rel="profile" href="http://gmpg.org/xfn/11" />
       <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
       <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" /> 
       <?php
       wp_head();
       ?>
 </head>

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