Hagai Posted March 8, 2015 Share Posted March 8, 2015 Hi guys My website is working via wordpress cms. I tried to integrate wordpress in the header.tpl and footer.tpl in my custome template I am creating. I am using smarty and it generates the errors. Firstly I tried to do it using the tutorial: http://docs.whmcs.com/Client_Area_Template_Files (I followed the tutorial and copied the relevant files of .js and .css to the template directory) I received the following error from the cache file created by whmcs: "Notice: Undefined index: livehelp in /home/XXX/XXX/templates_c/%%02^027^0277F14F%%header.tpl.php on line ..." The code that creating this is <?php if ($this->_tpl_vars['loggedin']): ?> and it created by the original code {if $loggedin} inside the header.tpl that resides in my custome template in line 43. Also the main menu did not apear in the client area webpages. Then I used this post: https://squidix.com/library/how-to-include-wordpress-header-footer-in-whmcs/ * every time I am adding the following code: {php} define('WP_USE_THEMES', FALSE); require('mypath/wp-load.php'); {/php} only before the {if $loggedin} then it generates the error: "Notice: Undefined index: loggedin in /home/XXX/XXX/templates_c/%%02^027^0277F14F%%header.tpl.php on line". Also if I am adding the following code {php} get_header(); {/php} only before the {if $loggedin} then it generates the following errors: "Notice: Undefined index: livehelp in /home/XXX/XXX/templates_c/%%02^027^0277F14F%%header.tpl.php on line" But here the main menu is shown in the client area webpage. Please help. I will appreciate any assistans. Thanks 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.