Jump to content

EricStone

Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by EricStone

  1. Never mind -- I found the correct place to upload a smarty plugin file: whmcs/vendor/smarty/smarty/libs/plugins/
  2. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated