Recently published WordPress themes and plugins
Smart Backup Plugin
Smart Backup is a complete WordPress solution for database backup and restore...
premiumAmbient Occlusion Theme
Ambient Occlusion is a clean and warm theme, with a brown/cocoa colour...
freeWordPress Theme: Cyanide
This theme has originally been created for an offshore client. The theme...
freeWordPress Theme: Clear Apple
Clear Apple is a clean magazine theme, no thumbnails for posts, wide...
freeOn the blog
Recommended
Currently Exploring
PHPI’ve always sucked at date/time calculations using PHP or MySQL. This changed a while ago when I broke the ice with a Facebook-style function for calculating time diferrence in a friendly way. Today, I had to calculate past dates using 2 separate date and time columns. MySQL uses NOW() to output a date format such as "2011-03-10 14:30:00". My date...
I’ll be straying a bit from WordPress to static PHP web site owners. Sometimes you need an RSS feed to provide your users if you have a static news site powered by PHP/MySQL. Sometimes you just need it in order to promote your site, or even to automatically post to Twitter or Facebook. What do you do if you need...
A long time ago I wrote a small tutorial for multilingual web sites using PHP. That tutorial is a bit outdated and unoptimized. I recently had to turn a static localized CRM into a multilanguage one. The obvious solution, without relying on gettext functions was to use PHP arrays. So, here we go: First of all we need a configuration...
Recently I had to use PHP to display a score value such as “3″ padded as “03″. There’s a tiny PHP function that does just this. $myvalue = '3'; str_pad((int) $myvalue,2,'0',STR_PAD_LEFT) While working with strings, such as $myvalue, I had to convert it to integer using the (int) operator so I can make further calculations with my initial value. The...
1. Use a redirect function in PHP without header/location stuff: function redirect($page,$time) { echo '<meta http-equiv="refresh" content="'.$time.'; url='.$page.'" />'; } Now use: redirect('/tag/php/index.html',3); in order to redirect to index.php after 3 seconds. 2. Generate 3 characters salt strings: // Salt Generator function generate_salt() { // Declare $salt $salt = ''; // And create it with random chars for ($i =...