Author Archives: Hannes

using google analytics and retargeting, resulting in lower visitor numbers

Posted on

Just a quick post, if you are using google analytics and noticed ad decrease in visits and impressions after switching to the google retargeting tracking code [ http://support.google.com/analytics/bin/answer.py?hl=de&answer=2444872 ]. Thats due to the fact that this tracking code is blocked by most Ad Blockers.


jquery slug plugin for input fields

Posted on

A small jQuery Plugin i wrote to slug input fields, enjoy; (function( $ ){ function stringToSlug(str){ str = str.replace(/^\s+|\s+$/g, ''); // trim str = str.toLowerCase(); // remove accents, swap ñ for n, etc var from = "àáäâèéëêìíïîòóöôùúüûñç·_,:;"; var to = "aaaaeeeeiiiioooouuuunc—–"; for (var i=0, l=from.length ; i<l ; i++) { str = str.replace(new RegExp(from.charAt(i), 'g'),   …Continue Reading


Drupal hook_nodeapi op operation order

Posted on

Just in Case someone every wonders in which order drupal provides operats for the hook_nodeapi, at the time being its: ‘prepare’,’load’,’validate’,’presave’,’update’,’view’


Convert Object of class stdClass to XML Object

Posted on

I had to do that recently and since i didn’t found anything PHP native to do it i had to code it myself, just 2 SMall Functions to Convert an stdClass Object in to an XML (Writer) Object, or an XML String at the End.


replace your plesk favicon (god damn it!)

Posted on

I’ve seen it again and again, I mean, using Plesk for anything professional is bad enough in itself, but why don’t people replace this stupid default Favicon.