PHP webdeveloper and frontend developer



Get the depth of the current page in WordPress

Category : PHP, Wordpress · (1) Comment · by Jun 26th, 2013

If you want to get the level of the current page in WordPress you can use this 

 This function will echo the depth of the current page. If the depth returned is zero then you’re on a parent page.

jQuery HTML5 Twitter plugin for iPad using Localstorage

Category : Web development · (1) Comment · by Apr 13th, 2013
jQuery HTML5 Twitter plugin for iPad using Localstorage

I wrote a small jQuery plugin that gets it’s parameters from html 5 data attributes, so configuration is simple. It needs some cleanup but I’ll do that later 😉 You can download a zip of the files You can add 3 html5 data attributes to configure the plugin: data-twitter-username (required / used to set the username) data-twitter-tweet-count (optional / the…

Email harvesting of a domain using Linux Backtrack

Category : Mac and Apple stuff, Other · (1) Comment · by Apr 13th, 2013
Email harvesting of a domain using Linux Backtrack

A while ago I wanted to scan which email addresses can be found by spambots because that domain received a lot of spam. You can prevent users from capturing your email addresses from your website by encrypting the characters with html or javascript. This tools can encrypt your email address with javascript http://hivelogic.com/enkoder/ and this website http://www.wbwip.com/wbw/emailencoder.html does this through using character entities. To…

Jagged edges with CSS transform in Google Chrome (webkit)

Category : Web development · (1) Comment · by Mar 24th, 2013

When applying css transform on an element with a background image, the edges will appear jagged in Google Chrome. Also the image will appear pixelated. To fix this you can add this to your css selector: (this will only work for webkit browsers)

 I’ve added a small demo here The first image in the screenshot below doesn’t use the…

Running database queries in WordPress

Category : Web development, MySQL, Wordpress · (5) Comments · by Feb 24th, 2013

WordPress has a built-in object class for dealing with database queries. It’s called wpdb and it’s found in the includes/wp-db.php file. When you’re running queries you should always use this class to execute them. To use this class you first need to define $wpdb as a global variable before you can use it. Just place this line of code before…

How to enable the WordPress maintenance mode

Category : PHP, Wordpress · No Comments · by Feb 17th, 2013

WordPress has a built-in maintenance feature. By adding a “.maintenance” file to your website’s root directory with the piece of code WordPress will trigger its maintenance mode.

This file is also used during the auto-update process. By using the maintenance mode, users will not see any error messages while you’re updating your WordPress installation or theme. It will generate…

Limit the number of post revisions in WordPress

Category : PHP, Wordpress · (3) Comments · by Feb 17th, 2013

For each saved edit made to a post or a page, WordPress saves a revision in the database. This can really increase the size of your database when your working with a lot of posts or pages. WordPress has a built-in revisions option which you can set in the wp-config.php file. You can also disable revisions altogether. To disable revisions…

Show the signal strength of your iphone instead of the default signal strength bars

Show the signal strength of your iphone instead of the default signal strength bars

By just going through these steps you’ll be able to see your signal reception of your iPhone in decibels (dBm). Normally the value should be between -60 and -90 dBm. Where I live the strength is only -95.  First you need to dial *3001#12345#* and press call. Now you’ll enter “Field test mode“. When you press the home button you’ll see…

visible area within the iPhone and iPad browser

Category : jQuery & javascript, HTML & CSS · No Comments · by Dec 7th, 2012

visible area in the browser on iPhone portrait320*356 visible area in the browser on iPhone landscape480*208  visible area in the browser on iPad portrait 931*768  visible area in the browser on iPad landscape1024*675

Remove SEO title, keywords, description columns from the post and pages list when using the all-in-one-seo-pack WordPress plugin

Category : PHP, Wordpress · No Comments · by Nov 5th, 2012
Remove SEO title, keywords, description columns from the post and pages list when using the all-in-one-seo-pack WordPress plugin

I always use the all-in-one-seo-pack for WordPress websites which is a great plugin for SEO purposes. The only drawback is that it screws up the list of pages or posts in your WordPress admin section by adding three extra colums to it (SEO title, SEO keywords, SEO description). To remove these colums go to the /wp-content/plugins/all-in-one-seo-pack/ folder and look for…


s