Get the depth of the current page in WordPress

If you want to get the level of the current page in WordPress you can use this  // gets the depth of the current page global $wp_query; $object = $wp_query->get_queried_object(); $parent_id = $object->post_parent; $depth = 0; while ($parent_id > 0) { $page = get_page($parent_id); $parent_id = $page->post_parent; $depth++; } echo $depth;  This function will echo … Continue reading Get the depth of the current page in WordPress

Email harvesting of a domain using Linux Backtrack

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 … Continue reading Email harvesting of a domain using Linux Backtrack

Jagged edges with CSS transform in Google Chrome (webkit)

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) -webkit-backface-visibility: hidden;  I've added a small demo here The first image in … Continue reading Jagged edges with CSS transform in Google Chrome (webkit)

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 … Continue reading Show the signal strength of your iphone instead of the default signal strength bars

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

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 … Continue reading Remove SEO title, keywords, description columns from the post and pages list when using the all-in-one-seo-pack WordPress plugin