Jump to content

Customisations to Footer.tpl Are Not Apparent


AidanNixon

Recommended Posts

Hello,

 

I’ve recently customised the 6.2.0 version of WHMCS to my liking, however, it seems I cannot quite add a footer to footer.tpl. When I attempted to add a header, it applied flawlessly. When I use a similar method (and follow WHMC’s YouTube guide) the same outcome is not discernible. When I inspect the elements of the page, Chrome doesn’t hint that there is any such footer. I am placing the footer beneath {$footeroutput} and within the body tag but it doesn’t seem to apply. There are no concurrent errors when I inspect the elements. I have however used {include file="…"} which seemed to work fine in the header but not so in the footer. Regardless of the past fact, when I paste my footer directly into footer.tpl, the same issue transpires. If I leave the current code (being the short line of code proclaiming copyright) in combination with my footer, neither appear. I’m not sure if this is a blatant confliction between my code and WHMC’s or if I have simply structured something wrong. If you’re able to guide me in the right direction, I will be forever grateful.

 

Thank you,

Aidan Nixon.

Link to comment
Share on other sites

Hello,

Here's the code:

        </div><!-- /.main-content -->
       {if !$inShoppingCart && $secondarySidebar->hasChildren()}
           <div class="col-md-3 pull-md-left sidebar">
               {include file="$template/includes/sidebar.tpl" sidebar=$secondarySidebar}
           </div>
       {/if}
   </div>
   <div class="clearfix"></div>
</section>

<script src="{$BASE_PATH_JS}/bootstrap.min.js"></script>
<script src="{$BASE_PATH_JS}/jquery-ui.min.js"></script>
<script type="text/javascript">
   var csrfToken = '{$token}';
</script>
<script src="{$WEB_ROOT}/templates/{$template}/js/whmcs.js"></script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

{$footeroutput}
<div class="wrap">

<div class="one_fourth">
	<h6>Access</h6>
	<ul class="footer_menu">
		<li><a href="#">Client Area</a></li>
		<li><a href="#">Game Control Panel</a></li>
	</ul>
</div>

<div class="one_fourth">
	<h6>Contact and support</h6>
	<ul class="footer_menu">
		<li><a href="contact">Contact Us</a></li>
		<li><a href="#">Support Ticket</a></li>
		<li><a href="knowledgebase">Knowledge Base</a></li>
	</ul>
</div>

<div class="one_fourth">
	<h6>Company Information</h6>
	<ul class="footer_menu">
		<li><a href="about">About Us</a></li>
		<li><a href="http://steamcommunity.com/groups/sourcedservers">Steam Community</a></li>
	</ul>
</div>

<div class="one_fourth last">
	<h6>Twitter Feed</h6>
		<a class="twitter-timeline" href="https://twitter.com/SourcedServers" data-widget-id="669955321562009602" data-tweet-limit="3"></a>
</div>
<div class="gateways">
	<h6>Payment Types</h6>
		<img id="gatewayoutline" src="/images/gateways.png" alt="Paypal & Stripe">
</div>
<div class="clear"></div>
</div>

<div id="footer_bottom">
<div class="wrap">

	<!-- copyright text -->
	<p>Copyright © 2015 <a href="home">SourcedServers.com</a>. All Rights Reserved. Please assimilate our <a href="tos">Terms of Service</a>.</p>

	<!-- social icons and seal -->
	<ul>
		<li><div class="seal"><span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=P53RHBrEE9o58gc3bisRiQZNF4iQKWhPtzwaoYcFO5EHYllM3Dd7BJCuypzb"></script></span></div></li>
	</ul>

	<div class="clear"></div>
</div>
</div>

<div class="clear"></div>

</body>
</html>

All of the classes have been defined in a custom css file, however, it has been defined in head.tpl in the includes folder.

Link to comment
Share on other sites

apologies - that footer image was from your front page, which looking at it again obviously isn't a WHMCS page! :roll:

 

that said, if I put your footer.tpl in my v6 dev, it works fine - obviously, layout isn't applied as I don't have your css, but it doesn't affect any sidebars... so i'd be inclined to think the issue is not with footer.tpl, but elsewhere.

 

this may be nothing to do with the problem, but in header.tpl, you have...

 

{include file="templates/$template/includes/head.tpl"}
{$headoutput}

but in the standard six/header.tpl, it uses...

 

{include file="$template/includes/head.tpl"}
{$headoutput}

though your six/header.tpl has been modified to add 'templates/' to the path - i'd look at whether that path is correct or not... and if not, see if any other includes are using the wrong path.

Link to comment
Share on other sites

Thank you for all of your help brian. I'm now back on track to customising WHMCS :D.

 

- - - Updated - - -

 

It was indeed what you thought it was. I must've been either tired or drunk when configuring it as I believe a copied that portion of code from elsewhere. Have a Happy New Year.

Thank you,

Aidan Nixon

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