I AM LISTENING TO
|
WHAT I LIKE
  • English
  • German


BLOG FILTER



29. September 2015

Emulate click in Safari Mobile

This often comes up, when you work with jQuery and try to do a simple $(“#YourElementID”).trigger(“click”); or similar.

Enjoy coding …

readmore
17. September 2015

SSL finally fixed

Our SSL setup is final fixed, after some back and forth.

The Certificate formatting was broken and failed to load ;) Its all in the detail ….

readmore

Simple SSL certificates are easily obtained and installed these days. Here some simple first steps to get a Comodo SSL certificate installed.

  1. Generate a Certificate Signing Request (CSR) with OpenSSL
  2. Choose and register your certificate, with the CSR created.
  3. You will receive your Domain Certificate and the Comodo CA Certificates
  4. Many apps need your Certificate Authority Chain (CA) in a single file, something that you easily forget ! Combine the files from Comodo into a single file:
  5. Now you can install your files and activate SSL. DocumentationApache / NGINX
  6. Some hosts allow you to add certificates through a simple interface, asking for Certificate, Private Key, CSR and the CA chain.

VERIFY YOUR SSL SETUP

Some options to check your SSL setup:

  1. https://verifysslcertificate.com
  2. https://www.ssllabs.com/ssltest/analyze.html
  3. https://sslanalyzer.comodoca.com/

  4.  

CREATE CERTIFICATE CHAIN AUTOMATICALLY

This can be done manually, as shown above or you can use a shell script,  which downloads the certificates for you and combines them. SSL certificate chain resolver – This shell script downloads all intermediate CA certificates for a given SSL server certificate. There is even an online version, but I rather do that on my own machine :) … certificatechain.io

Enjoy coding …

readmore

Event registration page for Nutricia de VeranderFabriek 2015 (Danone).

 

  1. WordPress
  2. 2 Languages (NL, EN – custom switch)
  3. Custom Theme
  4. Custom plugin
  5. Fullpage navigation
  6. Responsive design
  7. CSS3 / Javascript animations
  8. Legacy browser support (IE8)
  9. Registration + Confirmation
  10. Location Information
  11. Event Image Gallery
  12. Data Export (Excel)
  13. Maintenance

 

readmore

Since version 5.6PHP is verifying peer certificates and host names by default when using SSL/TLS. This is causing problems on some servers / websites, where the config has not been setup correctly. If you can not fix the setup yourself, make sure to talk to your server host to fix that issue.

For PHPMailer (Github) there is a workaround:

This should only be a workaround until your configuration has been fixed. You are suppressing certificate verification and compromising your security!

As WordPress is using PHPMailer as its main email library, this can be tweaked by using the phpmailer_init hook:

Add this to your themes functions.php.

BASIC PHPMAILER SETUP

And here is how phpmailer->smtpOptions should be used,  on a properly configured server:

SSL changes in PHP 5.6: http://php.net/manual/en/migration56.openssl.php
SSL context options in PHP: http://php.net/manual/en/context.ssl.php

Enjoy coding…

readmore

Chrome 45+ is glitching on  WordPress admin menus.

Github Plugin version

readmore

Online Course Academy. Video Learning platform for universities in the Netherlands.

 

  1. WordPress design / code tweaks
  2. WPLMS (Learning Management System) setup / tweaks / fixes
  3. WooCommerce tweaks / fixes / optimization
  4. CSS tweaks
  5. Responsive tweaks
  6. Visual Composer integration
  7. Video integration
  8. Maintenance & Upgrades
  9. Setup for split classes / instructors (Courses by Groups)
  10. Language setup
  11. Optimization

 

Social Island

readmore

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:

Like always, make sure that nothing breaks. If things break or are required by certain pages add an exception for that!

Check WordPress Condional Tags.

Sources:

  1. How to Load WooCommerce Scripts and Styles Conditionally to Improve Page Load Speed
  2. Only load WooCommerce scripts on shop pages and checkout + cart

REMOVE GENERATOR META TAG

Enjoy coding …

readmore

SINGLE WEBSITE SETUP

Simple add this to your wp-config.php

MULTISITE SETUP

Use the MU-Domain-Mapping plugin for that.

Enjoy coding …

readmore

With inline content being loaded via ajax, you are loosing a lot of interesting usage data. These can be tracked using Google Analytics Events or by sending a Pageview.

LETS SHOW IT ALL FIRST

The above allows to automate tracking by attaching simple classes and use HTML5 data attributes to assign category, action and label.  Direct tracking is also possible. Lets split it up :)

EVENT TRACKING INIT

This monitors links with the class .trackEVENT attached and fills the event data using HTML5 data attributes. All attributes have default values assigned.

A possible link would look like this:

The sendEvent function than sends this to Google Analytics.

PAGEVIEW TRACKING

Much simpler,  this just gets the element text and submits the click as a new Pageview. The label gets the pagename attached and the actual page url is constructed from the label. The sendPageview function than sends this to Google Analytics.

DIRECT USE

Really simple and effective way within a simple OnePager or a bigger web application. BTW I am using delegation to make sure that also links within AJAX content can be tracked.

Enjoy coding …

readmore