Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.
XenForo 2 includes a means to call widgets from an external PHP page. The key is the templater() method.
$templater = $app->templater();
/** @var \XF\Widget\WidgetRenderer $widgetRenderer */
$widgetRenderer = $templater->renderWidget('forum_overview_new_posts', [])...
The new documentation for XenForo 2 includes an explanation for building an add-on. I'm walking through the process right now and plan to update this post as new items are learned.
Adding the add-on through the terminal was painless. It was simply a matter of answering questions and the...
In XF1, several lines were required to bridge. In XF2, only four lines are required.
Create a file named connectXenForo2.php and add the following contents.
<?php
/** @var $fileDir */
$fileDir = '/Users/layneheiny/Documents/Sites/xf2';
require($fileDir . '/src/XF.php')...
There are many ways to replace the front end of a XenForo driven website. To learn more about developing add-ons for XenForo, I've been playing around with a simple add-on with its own templates.
The add-on is far from complete. Below the five WordPress posts will be the latest threads. Below...
XenLate is a simple addon to show WordPress posts in the sidebar of XenForo. The first release simply added a listener to the model. A template did a xen:callback. Everything was very basic and the model was actually jammed with HTML as well as PHP code. Nothing was clean but it moved the idea...
In the first two parts to this beginner's series I started with a way to read and interact with XenForo code then did a quick breakdown of the index file. Part 3 looks at the directory structure.
In my view, reading XenForo code is an important first step to building a simple or complex XenForo...
XenForo 2.0 is being completely rewritten. It's a huge project and will have an impact on addon development. The XF Development Team will release a developer version and allow addon developers the opportunity to learn how the 2.0 will influence addon development.
On the 2.0 alpha demo site...
The following post shares some of the tools I currently use for PHP development and learning PHP. The list is dynamic and shifts as my knowledge shifts. I'll try to update it as I make changes to my preferences. After all, the decisions to use one tool over another are highly personal. You may...
I posted code in the first entry for this series that allowed you to test and read XenForo code. I called the file connectXenForo.php. If you haven't read the first entry for this series then please do so now and return after you have set up your local environment.
Today we'll look at the...
Information in this post is packed with PHP terms. Ask in the comments if you are unclear about a term or something that is written.
Sometimes I stick a var_dump into a section of the XenWord code, click on a local test site, and look for the returned values. There is an easier way to handle...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.