How to make a custom protected page in WordPress

The default password form uses this message: "This post is password protected. To view it please enter your password below:". You can use a custom text to display on a protected page by using a filter in WordPress. Add this code to your theme's functions.php file: <?php function custom_password_form() { global $post; $label = 'protected-page-'.( … Continue reading How to make a custom protected page in WordPress

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)