gmd8 Posted February 3, 2010 Share Posted February 3, 2010 Hi there- I'm trying to add my Kayako Live Support code button to the portal template sidebar and I added the following code to my footer: (it's supposed to connect to a different department if you're logged in or not) {if $loggedin} <!-- Begin SupportSuite Javascript Code --> <script type="text/javascript" src="https://xyz.com/support/visitor/index.php?_m=livesupport&_a=htmlcode&departmentid=4"></script> <!-- End SupportSuite Javascript Code --> {else} <!-- Begin SupportSuite Javascript Code --> <script type="text/javascript" src="https://xyz.com/support/visitor/index.php?_m=livesupport&_a=htmlcode&departmentid=10"></script> <!-- End SupportSuite Javascript Code --> {/if} I've added the code right after the sidebar in my footer.tpl file but it's not showing up on my template for some reason. I did also notice many files with the names %%02^02A^02A50310%%bulkdomainchecker.tpl.php and so on in my WHMCS main directory. They all have the header below. Anybody have any ideas as to why this won't update? Thanks. <?php /* Smarty version 2.6.26, created on 2010-01-08 02:00:32 compiled from hostingbeta/bulkdomainchecker.tpl */ ?> 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted February 3, 2010 WHMCS Support Manager Share Posted February 3, 2010 If you've moved your templates_c directory you've set the $templates_compiledir path incorrectly. If you haven't moved templates_c out of your main whmcs directory then delete the $templates_compiledir line from your configuration.php file. You should delete all these template cache files. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 3, 2010 Share Posted February 3, 2010 Can you see the script in the source code? If not; try removing the files from the templates_c directory. The %%02^02A^02A50310%%bulkdomainchecker.tpl.php file which you've mentioned, is also in this directory. -- EDIT: John was first 0 Quote Link to comment Share on other sites More sharing options...
gmd8 Posted February 3, 2010 Author Share Posted February 3, 2010 Thanks for the quick reply! My config file actually had the main directory listed as the compile directory but I don't know how that happened. I changed it to the templates_c folder now that was previously empty. In terms of the supportsuite code not showing up, I looked at the footer.tpl file in that directory and the supportsuite code didn't appear, but I checked again and it is in the regular footer.tpl file in the /templates/portal directory. Why wouldn't it show? Thanks for your help. 0 Quote Link to comment Share on other sites More sharing options...
gmd8 Posted February 4, 2010 Author Share Posted February 4, 2010 I found the issue and it appeared to just be me! I had made a copy of the portal template and was editing the wrong one. Thanks for the help with the compiling issue though! 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.