Archive for the ‘PHP’ Category

Remove Crap from Wordpress dashboard

Wordpress is great software. I love the UI. I don’t like the extra clutter in the dashboard and neither do some of my clients. Getting rid of it (or adding to it) is fairly easy. See http://codex.wordpress.org/Dashboard_Widgets_API for all that you can do.
If you just need to quickly trim down the dashboard use [...]

Fuzzy time or relative time in PHP

Had a need to show fuzzy timestamps on items in PHP. Something like “Posted 3 hours ago” for example. I could not find anything usable in my circumstance right out of the box, so I wrote one. It was cobbled together quickly, but it works. Include the class pass a unix timestamp or [...]