Herzlich Willkommen ツ

Fix empty DFP iframes on responsive websites due to illegal repositioning

01.04.2016 - 11:11

Today I'd like to share a recent problem we had in a Drupal project where we were using dfp.module.

We were wondering that from time to time DFP ads were disappearing on some positions.

Moving ads parents containers is the reason

Apache Cordova InAppBrowser optimize (external / whatsapp / other protocols) link behaviour

30.03.2016 - 23:38

Today I'd like to share my results on a good link behaviour in Apache Cordova's (5.x in my case) link behaviour using the InAppBrowser Plugin.


First of all the cordova plugins I'm using:

  1. <gap:plugin name="cordova-plugin-inappbrowser" version="1.3.0" source="npm" />
  2. <gap:plugin name="cordova-plugin-statusbar" source="npm" />

Drupal 7 Services 3 Session Authentication with CSRF Token

14.03.2016 - 20:22

I really had a bad hour figuring out how Drupal services.module (Version 3.x) session authentication works. The documentation is poor and there are several issues stating out problems.

Finally I was able to find a way out of the Service REST jungle and I'd like to share the results with you (and myself for the future) if we should ever run into the same problems again.

Drupal 7 Commerce: Compare customer profile addresses / check address equality (shipping / billing)

04.03.2016 - 13:08

I had the requirement to check the equality of addresses in customer orders (billing / shipping) and wrote two helper functions for that.

Perhaps you'll run into the same demand one day. Then please leave a comment here and in the original issue I posted on Drupal.org to document your demand for such a solution: See https://www.drupal.org/node/2680997

Thank you!

OpenVPN: redirect-gateway not working on windows? (Sending all trafic through VPN)

03.01.2016 - 18:46

Whao, it cost me several hours to find out why I wasn't able to route all my internet traffic through an OpenVPN connection on my Windows 10 device. Now I'd like to share my solution with you:

Drupal Commerce Message

Attach documents (e.g. Terms and conditions) to Drupal Commerce Message order confirmations

31.12.2015 - 12:31

Attaching documents like PDFs to Drupal eMails is quite simple. For our specific case we needed to attach PDF documents to Drupal Commerce Message order confirmations.

This can easily be done using the hook below. Simply modify the names and path to the document to attach. That's it!

  1. function MY_MODULE_mail_alter(&$message) {

Drupal Commerce Message attachments

Dokumente (z.B. AGB,WRB) an Drupal Commerce Bestellbestätigungen anhängen

31.12.2015 - 10:42

Deutsche Onlineshops / eCommerce-Seiten müssen in der Regel AGB und WRB per E-Mail an Kunden versenden. Dies kann unter Einsatz des commerce_message.module mittels eines Hooks sehr einfach realisiert werden.

So lassen sich Dokumente ganz einfach an commerce_message.module Bestellbestätigungen z.B. als PDF anhängen. Natürlich funktioniert dies auch für beliebige andere Dokumenttypen.

ISDN Telefon an Telekom Digitalisierungsbox Premium betreiben / ISDN Telefon klingelt nicht

04.12.2015 - 11:15

Heute einmal ein Tipp in ganz anderer Richtung, da ich meinen Blog auch nutze um technische Hinweise mit der Welt zu teilen (und sie nicht selten dann bei meinen eigenen späteren Google Recherchen ein paar Jahre später wieder finde...):

Snippet: Drupal 7 render view in code and hide if empty results

28.09.2015 - 12:34

Use this simple snippet to embed a view in code and only display it if the view has at least one result (prevent rendering empty views markup):

  1. $view = views_get_view('your_view_name');
  2. $view->set_display('your_view_display');
  3. // Only display the view if it has results and the user has access.
  4. if ($view->access('your_view_display')) {        
  5.         // Example argument

Inhalt abgleichen