• XEN DEVELOPMENT is a developer's resource for new developers wanting to build XenForo 2 add-ons. Experienced developers are also welcome to share their experienes and knowledge. This site is not affiliated with XenForo or a replacement for the official XenForo developer forums.

xenforo 2

  1. LPH

    How to Render a Widget Externally

    Displaying a widget included with XenForo 2 is one line using templater() and renderWidget. echo \XF::app()->templater()->renderWidget('forum_overview_members_online'); The identifier is the Widget key found in the admin panel -> Appearances -> Widget. The 'forum_verview_members_online' is the...
  2. LPH

    How to Bridge PHP and XenForo 2

    In XF2, three lines are required. Create a file named connectXenForo2.php and add the following contents. <?php /** @var $fileDir */ $fileDir = '/Absolute/Path/To/xf2'; require( $fileDir . '/src/XF.php' ); \XF::start($fileDir); $app = \XF::setupApp('XF\Pub\App'); $app->start(); Now create...
  3. LPH

    XenForo 2 Board Installed

    A basic installation of XenForo 2 is available in the development/ directory. This is for discussing the development of XenForo 2 addons.