Practical uses of PHP’s Reflection API

Posted 4 years in | Comments (240)

While I’ve been working on my CM framework, I came to realize how useful PHP’s Reflection actually is during development.
So I wrote two examples: php-highlight, which displays caller source in my custom exception handler, and php-ref, which prints detailed and nicely formatted information about a [...]

Status updates

Posted 4 years in | Comments (203)

Some people emailed me asking me what’s going on with my site and projects. Here’s what’s happening:

because of many theme update requests from my themes’ users (yes, you), my site was generating high server load for the host, so I had to disable some features (including theme update responses) [...]

New plugin: Ad manager

Posted 5 years in | Comments (144)

It’s still under development, but the current version supports all functionality of the Ads mod from “Mystique” so you might as well use it instead of the mod

Download on
Support Forums (post bug reports / requests here)

A quick screenshot:

In case you’re wondering if you will [...]

Name suggestions?

Posted 5 years in | Comments (129)

So here are the first previews of the WP clone app I’ve been working on the past few weeks:
That demo installation uses sqlite (a portable file database-system), that’s why the slowness and high number of queries (I’m practically forced to do 20 queries just to get the [...]

4 GB free from Wuala

Posted 5 years in | Comments (131)

Use this promo code and you get 4 GB of extra free space (valid for two years I think):
And some older 1 GB promo codes you probably already know:
Don’t know what Wuala is? Most of you are probably familiar with Dropbox, a popular online [...]

New WordPress clone

Posted 5 years in | Comments (131)

If you’re wondering why the WP theme development is moving on so slow, it’s because I started working on a MVC-style¬† WP clone application, and this is currently taking most of my time.
Why? The main reason is simply because I love WordPress, and I’m starting to feel its limits. Leaving aside the [...]

New plugin: Post Ratings

Posted 5 years in | Comments (136)

Yet another post rating WordPress plugin
What does it do:

Allow your site users to rate posts (of any kind)
Display the average post rating, vote count or weighted (bayesian) rating within your posts
Display a widget with the top rated posts in your sidebar

A few screenshots:

Download on [...]

Featured images (thumbnails) in menus

Posted 5 years in | Comments (98)

The following code will let you use featured images as thumbnails in your custom menus. Paste this in your child theme functions.php file, or theme settings > Advanced > User-defined code:

atom()->setContextArgs(‘primary_menu’, array(‘walker’ => new ThumbMenuWalker()));

class ThumbMenuWalker [...]

Custom avatar images in WordPress

Posted 5 years in | Comments (83)

This is a short walktrough on how to let your website users upload their own avatars, without using a plugin.
First, define the maximum image sizes (note that we will only downsize, smaller images will get browser-resized):

define(‘MAX_AVATAR_WIDTH’, 96);
define(‘MAX_AVATAR_HEIGHT’, 96);

This [...]

How to correctly hook your filter to the post content

Posted 5 years in | Comments (85)

I’m seeing a lot of plugins that just hook themselves on the the_content filter tag, without bothering to handle excerpts.
Because get_the_excerpt() / the_excerpt() will call get_the_content() if the post doesn’t have an excerpt set, in many cases you get your filter applied on excerpts as well. [...]