• 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.

Technology

Even though I'm still going through the widgets, I started looking at this method in the class XenWord_XF_Users, which strangely sits in the file name class-xenword-add-wpusers.php. This needs to be fixed. I quickly decided the method breaks way too many of my new coding guidelines that were...
LPH
Views
2K
Reaction score
1
Comments
3
Technology
It's been quite some time since looking at widgets. Before opening PhpStorm, I was thinking this might be an opportunity to use Views. After opening PhpStorm and reading about WP_Widget::form on the developer documentation site, I quickly saw the return 'noform' was missing in the majority of...
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...
Instead of using a deactivation hook or the register_uninstall_hook, XenWord has an uninstall.php file that runs automatically if a user deletes the XenWord plugin. This was rewritten this afternoon to include a conditional for checking if the column exists. <?php /** * Filename...
Purpose The bootstrap file for WordPress plugins can be done in many different ways. I recently changed the PHP file but am always on the lookout for a better way. Considerations Proper Hook No God Class (Uh oh.) No hooks in constructors Use Namespaces Don't mix types (Interfaces, Classes)...
The PHP Documentation Site is the first place to look for OOP information An awesome list of resources on GitHub
LPH
Views
2K
Reaction score
2
Comments
1
Technology
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...
In passing a parameter to a function or method, type declaration or hinting can be useful to ensure the correct parameter type is passed to the function. For example, a requirement to pass an array involves placing the word array in front of the parameter. Create a file named...
The top of all bootstrap files for WordPress plugins begin with an important comment block. Below is a sample of a multiline comment block which describes the plugin and provides name, URI, Author, Author URI, and Version. Create a file named fabulous.php and place it in the wp-content/plugins...
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...
A simple XenWord development log was kept as a thread in the XenWord Announcements forums for almost a full year. In the beginning a new thread was created for each month via WordPress. The thread would be closed to others but allow me to post comments as updates. Eventually I posted the start...
November 2016 was very productive for releasing a few bug fixes for XenWord as well as adding a few new features. WordPress is expected to ship version 4.7. XenWord has been tested with up to 4.7-beta 4. The greatest advantage to 4.7 will be the addition of the Custom CSS area in the...
LPH
Updated
Views
3K
Technology
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...
Top