mixx941 Posted September 13, 2007 Share Posted September 13, 2007 Hi everyone. I just updated our WHMCS to version 3.3.0 (from 3.2.1) and I noticed that our template was not being displayed correctly. I looked into it and the files that we have included into header.tpl no longer seem to be included so the page looked way off. I have added the code from the include files directly into header.tpl for now which works fine, but is anyone else experiencing this issue of the template "include" function not working after an update? The code was like: {include file="head.inc"} {include file="navbar.js"} ...but it doesn't get included anymore. Thanks! -Mark 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 13, 2007 WHMCS CEO Share Posted September 13, 2007 Try using full paths for the file locations eg. /home/username/public_html/head.inc Matt 0 Quote Link to comment Share on other sites More sharing options...
mixx941 Posted September 13, 2007 Author Share Posted September 13, 2007 Thanks Matt, that worked fine. -Mark 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted September 13, 2007 Share Posted September 13, 2007 matt, I had this issue as well and find it very frustrating to use full paths. I did that and it works, but it obviously means that all these paths have to be changed when directories are changed. Any idea what was changed with whmcs that would require this? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 13, 2007 WHMCS CEO Share Posted September 13, 2007 I believe it was part of a Smarty security update. It's not a restriction that I've implemented. Matt 0 Quote Link to comment Share on other sites More sharing options...
generic Posted September 14, 2007 Share Posted September 14, 2007 i didnt know we could us includes...i hard coded my header and footer, thanks! will help me. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted September 14, 2007 Share Posted September 14, 2007 i didnt know we could us includes...i hard coded my header and footer, thanks! will help me. Come one generic, after all this time? =P you do {include file=""} and even {include_php file=""} and probably a couple others, but both are very useful. 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.