ChrisTERiS Posted May 20, 2017 Share Posted May 20, 2017 Hello, I'm trying to place Smarty templates in debug mode but seems that somethink does not works. What I did: - Edited vendor/smarty/smarty/libs/Smarty.class.php and modified line 452 to $debugging = true; - Added in footer.tpl: {if $smarty.session.adminid==1} {debug} {/if} but nothing happen even when I removed the adminid check. Thank you Chris 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 20, 2017 Share Posted May 20, 2017 if you were going to do that, and you only want the debug window showing to admins logged in as clients... {if $adminMasqueradingAsClient} {debug} {/if} but if it were me, and I was debugging some code in a dev, i'd just add {debug} to the end of the appropriate template and then remove it when resolved. 0 Quote Link to comment Share on other sites More sharing options...
ChrisTERiS Posted May 20, 2017 Author Share Posted May 20, 2017 if you were going to do that, and you only want the debug window showing to admins logged in as clients... {if $adminMasqueradingAsClient} {debug} {/if} but if it were me, and I was debugging some code in a dev, i'd just add {debug} to the end of the appropriate template and then remove it when resolved. Have tried all Brian but no success at all. Started without any user restriction placing {debug} at the top of the template. Nothing. Then at the end of the template. Nothing again. To make long story short I placed it in so many places and/or template files. Nothing. Finally I remember that needs debugging true. I search in the smarty class and I found it to be false. Changed it to true. Cleared browser cache. Emptied templates_c folder. Nothing worked. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 20, 2017 Share Posted May 20, 2017 as I said in the other thread, you shouldn't need to set debugging to true - all the time i've used WHMCS, i've just needed to add {debug} to the template and it's worked out of the box... there must be something preventing the window from launching, but other than the options I listed in the other thread, i'm struggling to thing what could prevent the opening. 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.