New Premium Plugin Available

Easy Custom CSS Stylesheets

I’ve been working on a new plugin for the past week or two, writing documentation for it, and testing it quite extensively. It finally got accepted on CodeCanyon, a marketplace for premium plugins and code.

My plugin is called Easy Custom CSS Stylesheets, and it allows you to create unlimited stylesheets which are stored in the database and link them to your site, or attach them to specific pages, posts, or special pages (Category page, home page, login page, etc). This eliminates the need of modifying your theme source which breaks the ability to update the theme and is generally a hassle.

I plan on adding the ability to do the same thing with JavaScript to the plugin soon as well. The plugin includes a JavaScript based code editor, complete with syntax highlighting, key binds and line numbers. You can even link to remote stylesheets, useful for importing fonts from Google Web Fonts or Typekit.

You can purchase it for $14 over at CodeCanyon.

WordPress 3.0 Thoughts

I’ve been using WordPress 3.0 at work for a month now, and what do I think of it? It’s fantastic! WordPress 3.0 added many new features, including custom menus which are extremely helpful for using WordPress as a CMS. WordPress 3 implemented over 200 fixes and features, so I recommend checking out the official site to see a list of all of them. Here’s the ones I like the most

  • WordPress Menus – Add menus across your site that are manageable via the admin and are as simple as calling wp_nav_menu in your theme.
  • Custom Headers – You can set the header in your blog via a nice admin panel
  • Custom Backgrounds – WordPress has an API for themes allowing your theme users to easily change the theme background
  • Custom Post Types – These are the most important feature for sure. It allows you to easily (Like 30 lines of code easy) add your own post types. Like videos, services, products, etc. Basically, you pass a few arguments to register_post_type and you’re done. WordPress auto generates an interface similar to the posts/pages interface. You can extend it with your own version of categories and tags as well (For example, you could make a gallery tag/category taxonomy for grouping your video post types).

With the amount of development I’ve been doing, I’ve noticed a lot of really useful functions, actions, and filters have no documentation on the WordPress codex, and some have no documentation anywhere that I could find (Like the Walker Class and making custom Walkers). I’ve registered a codex account and am slowly adding documentation, and any of the really awesome stuff I’ll post here as well.

PHP Apache Web Stats Analyzer

I’ve been working on a PHP based web analytic tool designed to import web stats from Apache’s custom log format. Since I’ll be making it open source anyway, I thought I might share with you the log parser part of the program. I haven’t done any extensive testing, but here you go.

Click Me!

The code isn’t terribly complicated and it allows you to parse records using non standard formats. Use it like this:
$data = parse_record( file_get_contents( '/path/to/custom_log' ) , "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" );

And now data will contain an array of the data found in the custom log. If you have any questions leave a comment please.