development

  1. XenFun

    XF 2.x Dev Guide XenForo REST API

    In XenForo 2.1, a REST API was added. This allows you to programmatically interact with many areas of a XenForo installation. Accessing the API requires generating a key via the admin control panel. There is no unauthenticated access to the API and users cannot generate their own keys to access...
  2. XenFun

    XF 2.x Dev Guide XenForo Criteria

    When XenForo needs to test something (user/page/post...) against some user-selected conditions (criteria), it uses the Criteria system. Some places, where the Criteria system is used: Trophies User-group promotions Forum notices Addons can also use this system. Criteria types Consider the...
  3. XenFun

    XF 2.x Dev Guide XenForo Add-on Structure

    In previous versions of XF, there were very few standards and conventions surrounding add-on development. We have done a lot to change that in XF 2.0. Let's look at some of the changes: Add-on IDs and add-ons path Each installed add-on must have a unique ID, and this ID dictates where on the...
  4. XenFun

    XF 2.x Dev Guide XenForo Routing basics

    Routing basics Within a PHP application, like XF2, we need a way of being able to take a user request for a specific URL, understand which controller, action and what data that URL represents, so that can present the appropriate response to the user. The concept of converting a URL to a location...
  5. XenFun

    XF 2.x Dev Guide XenForo Development tools

    XF2 provides developers with several built-in tools you can use to expedite the development of add-ons and we'll go through some of these below. Debug mode Debug mode can be enabled in your config.php which will allow you to access certain development tools in the Admin CP (such as creating...
  6. XenFun

    XF 2.x Dev Guide XenForo General concepts

    General concepts The following sections go into detail about some of the general systems and concepts you will come across while developing a XenForo add-on. If you are familiar with XenForo 1.x development, then a lot of these concepts will seem familiar to you, though it's worth reviewing them...
  7. XenFun

    XF 2.x Dev Guide Build an XenForo add-on

    Let's build an add-on For some people, getting stuck straight into a project is the best way to learn, and the aim is that in the following sections you will learn how to build an add-on, from scratch. Be prepared; this isn't a simple 'Hello world' type demo. This is actually a fairly...
Top