AidanNixon Posted December 28, 2015 Share Posted December 28, 2015 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. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 28, 2015 Share Posted December 28, 2015 can you share your code so I can take a look at it? or tell us what exactly you are trying to and how? 0 Quote Link to comment Share on other sites More sharing options...
AidanNixon Posted December 28, 2015 Author Share Posted December 28, 2015 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. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 29, 2015 Share Posted December 29, 2015 Aidan, the output looks fine to me in both Chrome and Firefox - perhaps it's a cache issue at your end? 0 Quote Link to comment Share on other sites More sharing options...
AidanNixon Posted December 29, 2015 Author Share Posted December 29, 2015 Hello, Don't believe so brian! I've cleared cookies and local data many times with this issue. Perhaps, if it works with you, there's been a configuration error with WHMCS? Thank you, Aidan. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 29, 2015 Share Posted December 29, 2015 this is what i'm seeing in Firefox - it looks right to me and seems to match your code... http://prntscr.com/9ju4n9 0 Quote Link to comment Share on other sites More sharing options...
AidanNixon Posted December 29, 2015 Author Share Posted December 29, 2015 Okay. I'll take a deeper look, though I'm sure it isn't a cache issue. Thank you for all of your help so far. 0 Quote Link to comment Share on other sites More sharing options...
AidanNixon Posted December 29, 2015 Author Share Posted December 29, 2015 Hello, I don't quite know how I didn't notice this earlier, however, when I attempt to activate my footer, the secondary sidebar for all pages disappears. Could this be indicative of something? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 29, 2015 Share Posted December 29, 2015 apologies - that footer image was from your front page, which looking at it again obviously isn't a WHMCS page! 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. 0 Quote Link to comment Share on other sites More sharing options...
AidanNixon Posted December 29, 2015 Author Share Posted December 29, 2015 Thank you for all of your help brian. I'm now back on track to customising WHMCS . - - - 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 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.