EricStone Posted October 28, 2015 Share Posted October 28, 2015 Is there a way to register smarty plugins so that custom smarty tags can be used in the clientssummary.tpl file? I've been able to register a plugin in a hook on AdminAreaPage using $aInt->smarty->registerPlugin(), and the custom smarty tag works in header.tpl, footer.tpl, homepage.tpl, menu.tpl, sidebar.tpl, and viewticket.tpl. However, the custom tag breaks the client summary page if I include it in the clientssummary.tpl file: none of the client summary information shows up. As best I can tell, the clientssummary.tpl is processed by smarty before the plugin gets registered, which means the AdminAreaPage hook isn't being run before clientssummary.tpl is processed. I've tried registering the plugin using the AdminAreaClientSummaryPage and various other hooks, but either the plugin can't be registered because $aInt->smarty doesn't exist yet, or else it's too late. 0 Quote Link to comment Share on other sites More sharing options...
EricStone Posted October 28, 2015 Author Share Posted October 28, 2015 Never mind -- I found the correct place to upload a smarty plugin file: whmcs/vendor/smarty/smarty/libs/plugins/ 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.