No3x

Bootstrap Shortcodes for WordPress Alternatives

Sometimes there are support request on the WordPress plugin bootstrap shortcodes to provide advanced bootstrap components (e.g. table builder). There are 2 reasons bootstrap shortcodes is not that advanced as you might assume: You can’t edit generated shortcodes – it’s not a visual builder There are some components missing I think it’s sufficient for some people that want to take… Read more →

Secure WordPress with Fail2Ban

Fail2Ban is a neat tool that watches your logfiles and executes actions  defined by you if a filter  matches. In the following I want to explain the basic functionality of fail2ban necessary to integrate with WordPress and we will install Slack notifications:  Basics Jails Jails are like configurations for services you want to monitor. You declare services and specify filters, ports, protocol …… Read more →

Resolved Composer Namespace Issues

I actually resolved the namespace conflicts that came with composer. As described in the other post I prefixed these 3rd party libraries and commit them to my repository (I placed them in lib/vendor/<vendor>/<package> ). I also use an PSR-4 autoloader ( from fig-standards ) to load these libs (make sure you prefix the class name at least or put it in your namespace):… Read more →

WordPress + Composer = ?

Using composer to install 3rd party libraries for your WordPress plugin feels like state of the art in comparison to other php projects. To get there you set your minimum required php version up to 5.3, introduced namespaces and introduced composer. You spend hours tuning your plugin and made use of well known libraries like pimple, twig and an orm… Read more →

VNC Server / VNC Viewer

Als Alternative zu RDP unter Windows bietet sich das VNC Protokoll an, das unter Linux weit verbreitet ist. Dieses bietet erheblich mehr Konfigurationsmöglichkeiten gegenüber RDP, die jedoch nicht zwangsläufig anfasst werden müssen. Gute Erfahrung habe ich mit der Software Real VNC gemacht – diese hat VNC Server für Windows, Mac, Linux und zusätzlich VNC Viewer für die genannten und weiterhin Android, iOS… Read more →

Maintaining a WordPress Plugin

It’s about 2 years that WP Mail Logging is available in the plugin repository. In the following I want to talk about my experience with making a WordPress plugin. Scaffolding I always wanted to learn more about WordPress development and WordPress Plugin Development in first place since I started my first Website with WordPress in 2007 or so and misusing… Read more →

Controlling Nav Menu Generation

You might want to tweak the output of your menu items in WordPress. You can use this to remove or change a link from a specific item.   To do so we can make use of the filter  walker_nav_menu_start_el  – it’s called for each traversed menu item when building the menu. This is actually done in the  nav-menu-template.php script in the class  Walker_Nav_Menu and… Read more →

Child Pages Shortcode

With Child Pages Shortcode you can fetch the children of a page and arrange them in a nice list or overview. There are several ways to make use of the plugin. First you can use them in the code via hooks and second you can use shortcodes and a kind of template (that’s what I want to go into in… Read more →

Generate Javadoc with UML Diagrams

It is very useful to have UML Diagrams integrated into your javadoc – they give you a neat visual overview of the contents of you sourcecode. I want to show you how  to integrate this into an automated build. I implemented this with an ant target and my IDE Netbeans. Add this to your build.xml in the root of your… Read more →