The Ultimate Guide to Extend, Modify or remove the WordPress 3.1 Admin-Bar

Oh, already forgot this article in my drafts: Since WordPress 3.1, a lot of new cool features were added. One of the most hated loved ones is the admin-bar. In this article I will cover some of the basic hooks to modify it to suit your needs. Let’s go: [ad name=”Adsense – text only”] How […]

Get Accurate Script Execution Time in PHP

This small code can be quite helpful if you need to find out what is taking so long to load in your script(s). It will determine the time taken for your PHP script(s) to execute, accurate to 0.000000000000001 seconds. [ad name=”Adsense – text only”] The Code // put this at the top of your page/script […]

CSS Print Framework

If you want to improve your layouts for printing, this mini CSS Framework will definitely assist you. What is a CSS Framework? “A CSS framework is a library that is meant to allow for easier, more standards-compliant styling of a webpage using the Cascading Style Sheets language. Just like programming and scripting language libraries, CSS […]

Clean Up User-Input & Convert Line-Breaks To BR-tags

A simple PHP function to clean up user input. It does following: converts & to &amp; converts < to &lt; converts > to &gt; converts “ to &quot; and converts line-breaks to <br /> [ad name=”Adsense – text only”] The Function: function clean($str) {     $str = preg_replace(’/&(?!#[0-9]+;)/s’, ‘&amp;’, $str);     $str = […]