templater

  1. S

    XF 2.1 Rendering account_visitor_menu via templater throws error

    Hi there, here's my code, just want to display the visitor's menu somewhere else (external app): // fileDir is correct, don't get confused $fileDir = "../"; require $fileDir . '/src/XF.php'; XF::start($fileDir); $app = XF::setupApp('XF\Pub\App'); $app->start()...
  2. CMTV

    XF 2.0 How to correctly override fnAvatar function?

    Hi! I am trying to add support for my custom avatar type "minecraft". Avatar type is used in switch construction in the middle of a huge function called fnAvatar (XF\Template\Templater): /* ... a lot of code ... */ switch ($avatarType) { case 'gravatar': case 'custom': case...
Top Bottom