gbRichEdit5

gbRichEdit5 is a rich text editor plugin for jQuery, easy to attach to HTML textarea elements. It creates the most basic…

roo! Framework Development and Future Plans

The roo! Framework plugin for WordPress has been discontinued. Here’s a bit of history. The plugin is a mix of three…

What Makes WordPress a Good SEO Tool?

Check out my latest WordPress Dublin presentation, regarding search engine optimization using my CMS of choice, WordPress. Read more here.

WordPress Primary Category

Set a primary category for your (custom) posts and query them in your template using native WordPress queries. This plugin…

Personal Livescore Development and Future Plans

The Personal Livescore plugin for WordPress has been discontinued. Here’s a bit of history. The plugin has been created years…

DragonflyJS – Vanilla JavaScript Drag and Drop

DragonflyJS is a tiny vanilla JavaScript library that enables sorting (dragging and dropping) functionality with zero dependencies.

How to Implement jQuery slideToggle() in Vanilla JavaScript

If you use jQuery for a handful of effects/animations, here’s a quick JavaScript replacement for jQuery slideToggle(). With small changes,…

How to Find Malware in Your Server Files

This script will run and display all potential malware files in your selected directory path. Make a backup before deleting…

How to Create a GDPR Modal Popup Using RoarJS

The script below will check for a localStorage variable, which is the explicit user consent. If the variable exists, the…

RoarJS – JavaScript Alert/Confirm Replacement

RoarJS is a wonderful, responsive, customisable, accessible (WAI-ARIA), zero-dependency, vanilla JavaScript alert/confirm replacement. RoarJS automatically centers itself on the page…

Google Sans

Updated on July 3d, 2019, and added the Google Fonts API URL. Google Sans (Product Sans) web font Google Sans…

How to replace jQuery.ajax() with vanilla JavaScript in WordPress

In an effort to remove all jQuery dependency from one of my plugins, I decided to turn all jQuery.ajax() requests…

Thoughts on WordPress

I need a fresh WordPress. I need a light WordPress. What would it take to fork WordPress and remove all…

Useful JavaScript String Prototypes

This is a function to remove all double whitespaces and preceding line breaks. This is a function to replace all line…

How to Create an Internationalisation System Using JavaScript

Creating an i18n system in JavaScript can be tricky. The most popular option is to use global variables, but it…

WordPress SEO

Introduction WordPress is used on ~43% of the sites out there. WordPress is very easy to install and has very…

Client-Side JavaScript Pagination

Server-side pagination is needed when you have to display hundreds of records. You may fetch results from a database using…

truthy and falsy in JavaScript

In JavaScript, any variable can be used in a logical context, such as the condition of an if statement or…

A JSON Overview

JavaScript Object Notation, or JSON, is a plain text data interchange format. It is based on a subset of the third…

Native Browser Support for JSON

JavaScript Object Notation, or JSON, is a text format used to represent JavaScript objects as strings. Like other text formats,…

A Quick Introduction to Custom Data Attributes and Vanilla JavaScript

For years, developers have needed a method for adding their own metadata to HTML elements, but no standardized technique existed.…

WordPress Management Checklist

I’ve been using this management checklist for my WordPress clients for more than 10 years, with various additions, changes, and…

Changing or Updating Your Version of PHP for WordPress

If you want to keep your website running smoothly and securely, it’s a good idea to change or update the…

JavaScript Selectors API

Dealing with the DOM can be a very tedious process. Traversing the DOM can quickly clutter your code with nested loops. For…

Promises in JavaScript

Writing code in an async programming framework like node.js becomes super complex and unbearably ugly, superfast. You are dealing with…

Custom Events in JavaScript MVC

Events are the bread and butter in UI development. They are frequently used to kick off JavaScript to deal with…

Cutting Loose: Dynamic Namespacing in JavaScript

Most of the JavaScript libraries come wrapped in an easy to refer single object. The object acts as a namespace,…

Image Beacons

Using image beacons is one of those popular techniques that you would probably know about without knowing its name. The technique helps…

Understanding JavaScript Currying

I recently fully understood the concept of utilizing Currying in JavaScript. The core concept can be grasped from these references: Wikipedia entry on…

How and Why to Avoid ‘for’ Loops

Never again use for() for looping. Using for() can be dangerous, especially if you use a library which adds attributes…

JavaScript Random String Generator

I needed a random string for various purposes. For example, to provide a unique ID to HTML elements via JavaScript.…

John Resig’s Inheritance

John Resig, the creator of jQuery, has created this JavaScript inheritance code. I am still using it now to simplify several…

Encapsulation: Private Attribute

In JavaScript OOP there are attributes called private attributes. Knowing if an attribute is private or public, an API user…

Encapsulation: Private and Public Methods

When it comes to developing APIs, self-documenting code is very important, as it simplifies the user’s effort in filtering the…

OOP In PHP (Object-Oriented Programming in PHP)

This is a basic introduction on how to use OOP – Object-Oriented Programming in PHP, as requested by a friend.…

Giving Object Context to Function Calls

JavaScript has a dynamic object named this. By default, this equals to the global object container, so if we have…

Self Documenting Flexible Parameters

When managing function parameters, it’s often more maintainable to use an options object. This allows you to pass a single…

Use ‘this’ Keyword with setTimeout()

setTimeout() is a great help to many JavaScript developers. For example, you may wish to add a delay to allow…

Load a JavaScript File on the Fly

Similar to my previous article on how to add/inject a CSS stylesheet using Vanilla JavaScript, this is how you load…

Generate HTML List From JavaScript Array

Generate an HTML list based on the contents of a JavaScript array. By modifying the makeList() function to accept parameters…

Same-Origin AJAX Request Using Vanilla JavaScript

This JavaScript function will send an AJAX request - GET or POST - with no third-party dependencies. I find it…

How to Add a CSS Stylesheet in Vanilla JavaScript

The function below will dynamically inject a CSS stylesheet in the document's using Vanilla JavaScript (no dependencies).

How to Make an Iframe Responsive Using JavaScript

Stubborn iframes can be tamed using a simple JavaScript trick and a couple of code tweaks. Use the code below…

How I cleaned up my Ubuntu server

This is how I clean up my Ubuntu server with a weekly or monthly frequency. It also applies to Debian…

Search for an element until found using JavaScript

A nice piece of code to use for A/B testing to look for a certain element every 50 milliseconds, execute…

Pure JavaScript tabbing functionality with linkable tabs

This script shows you how to create vanilla JavaScript tabs anywhere, physically linkable without any external JavaScript library. 305 bytes…

How to dynamically append a CSS file

This code snippet allows you to dynamically append a CSS file to your document's head. It can be used inside…

JavaScript String Multiline Trim/Cleanup

This small JavaScript prototypes enhance the trim() function and allow for better trimming and/or replacing line breaks with commas (or…

Page 8/9123456789