CHECKING STATUS
I AM LISTENING TO
|
  • ♩
  • ♪
  • ♫
  • ♬
  • ♩
  • ♪
  • ♫
  • ♬

BLOG.

NEWS FROM THE DEVELOPER CORNER
Let’s Talk!

Looking for a reliable partner to bring your project to the next level? Whether it’s development, design, security, or ongoing support—I’d love to chat and see how I can help.

Get in touch,
and let’s create something amazing together!

THE FLOW …

Font Face Observer is a fast and simple web font loader. You can use it to load fonts and customise your browser’s font loading behaviour. Font Face Observer gives you control over web font loading using a simple promise based interface. It doesn’t matter where your fonts come from: host them yourself, or use a […]

Due to Google AMP (Accelerated Mobile Pages) , I have been looking for a way to effectively do Syntax Highlighting without Javascript in pure PHP. I was about to write my own, when I found an older article from phoboslab. Thanks Dominic for saving me some time ;) Its not perfect, but close enough. A simple Syntax Highlighting Class that does just that. […]

Again another Google AMP article, this time dealing with Syntax Highlighting. If you have a code centric website, this is important. In one of my last articles I talked about a Generic Syntax Highlighter.   This time I want to show you, how to add Syntax Highlighting with GeSHi to a custom template in AMP-WP. FIRST SOME RESOURCES Please read up on […]

“Schema.org is a collaborative, community activity with a mission to create, maintain, and promote schemas for structured data on the Internet, on web pages, in email messages, and beyond.” This shared vocabulary from Google, Bing and Yahoo helps to understand your content! This shows how to associate your logo with your organization. BEFORE <a href=”http://www.yoursite.com/”> <img […]

add_action( ‘unload_textdomain’, ‘my_unload_textdomain’ ); function my_unload_textdomain( $domain ) { switch($domain){ case “remove_textdomain”: unload_textdomain( ‘remove_textdomain’ ); load_plugin_textdomain( ‘remove_textdomain’, false, $your_location.’/languages/’ ); break } } Sometimes you might like to store all language files in your own central location, so that translators have one easy place to access all language files. Put the above into the functions.php and add […]

When building plugins or addons, sometimes we need to save custom files within WordPress. These can be custom JavaScript or CSS files that a user edited and are loaded to override core functionality. In most cases inline styles and scripts are an option, but not always the most elegant way. Everyone has to decide that for themselves. (wp_add_inline_style) Not talking about performance […]

PHP if( !isset($_SERVER[‘PHP_AUTH_USER’]) ) { if (isset($_SERVER[‘HTTP_AUTHORIZATION’]) && (strlen($_SERVER[‘HTTP_AUTHORIZATION’]) > 0)){ list($_SERVER[‘PHP_AUTH_USER’], $_SERVER[‘PHP_AUTH_PW’]) = explode(‘:’, base64_decode(substr($_SERVER[‘HTTP_AUTHORIZATION’], 6))); if( strlen($_SERVER[‘PHP_AUTH_USER’]) == 0 || strlen($_SERVER[‘PHP_AUTH_PW’]) == 0 ) { unset($_SERVER[‘PHP_AUTH_USER’]); unset($_SERVER[‘PHP_AUTH_PW’]); } } } .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ app.php [QSA,L] </IfModule>

In the past 2 years, the e-Learning market has been exploding. Online Learning Management Systems (LMS) have become very popular, to build e-learning platforms. They not only offer text based content, quizzes, assignment management, course evaluation, social features, but also allow the integration of video, audio and other linked content.  Many support SCORM (Sharable Content Object Reference Model), […]

Some time ago I said: “My perfect framework, is a set of solid singular solutions that have proven themselves over the years. Working solo or together in harmony”. Here is a list of some of my core components, that I use in combination or standalone. CORE LAYOUT TEMPLATING OBSERVABLES ROUTER STORAGE DEPENDENCY MANAGER This is basically the […]

I am currently working on a WPLMS enhancement for a customer, that allows to simplify the payout of instructor commissions. The whole system runs on the MyCred Points System and students pay for courses with Points. The problem is how to easily payout the instructor commissions via PayPal. There is currently no addon for MyCred available that does that […]

WooCommerce provides great functionality, but loads a lot of resources even if not needed. If a site loads longer than 5-7 seconds, potential customers already loose interest :) UNLOAD ALL THAT IS NOT NEEDED Add this to your functions.php: add_action( ‘wp_enqueue_scripts’, ‘cleanup_woocommerce_includes’, 99 ); function cleanup_woocommerce_includes(){ //check that woo exists if ( function_exists( ‘is_woocommerce’ ) ) […]

WPLMS is a Learning Management System for WordPress. Translation files in WPLMS are located in These language files will be overwritten with new files on every update, destroying any custom translation changes. THE THEME Move your theme into a child theme and translate your theme there (/wp-content/themes/your-child-theme/languages/). Make sure that language files are loaded from your child theme. Add the following […]

relative sizes, so that fonts and elements resize accordingly. CURRENT RELATIVE UNITS CALCULATION If not set differently, 1 em equals 16 Pixel in most browsers, which gives us a calculation basis. Preset value = 16PX = 100% or 1EM or 1 REM So 1/16 = 0,0625 is our calculation factor. PX EM 1 = 0,0625 12 […]

When projects are getting bigger, its always nice to split things up and prepare parts of your code for general reuse. PHP Traits (PHP 5.4+) are a nice way to do this. Adding multiple Traits or classes, requires you to make sure all are being included. Here is a nice way to register both with the __autoload function […]