WP-Macros

by Aaron Brazell on March 6, 2006 · 10 comments

I worked for a good portion of yesterday on a plugin that would make life easier for the WordPress blogger. When going through the motions of blogging, it is not unusual to repeat code over and over again. A prime example is the image associate with the Blog Building Blocks series. There’s a lot of code to that image.

Enter WP-Macros. WP-Macros integrates a special Manage page in the administrative area but also gives you the ability to add/select a macro from a dropdown on the Write page.

This is beta, so please get back to me with any issues you experience. It needs some code cleanup but overall it works well.

Download: tar.gz (3.4k) | zip (3.6k)

1. Upload wp-macros.php and the wp-macros folder containing wp-macros-functions.php to your plugins directory and activate
2. Did you expect a step 2?

Dropdown Menu added on Write PageNew Management PageCustome page for Editing/Adding Macros

{ 10 comments }

1 Jesse March 6, 2006 at 10:47 am

beautiful

2 Jesse March 6, 2006 at 10:47 am

beautiful

3 Aaron March 6, 2006 at 11:35 am

Glad you like it. :)

4 Aaron March 6, 2006 at 11:35 am

Glad you like it. :)

5 Jonic March 7, 2006 at 2:36 pm

Hey Aaron, great plugin…

I hafd an idea for creating one that would make it easy for a user to insert YouTube video code into their blog, but wp-macros could easily take care of that…

There’s just one thing I’ve noticed, if WP isn’t installed in the root of the site it doesn’t work… I’ve had a hack around and I’ve fixed that problem, but true to form it broke everything else (namely the editing of macros).

You want me to send over what I’ve done so you can take a look?

6 Jonic March 7, 2006 at 2:36 pm

Hey Aaron, great plugin…

I hafd an idea for creating one that would make it easy for a user to insert YouTube video code into their blog, but wp-macros could easily take care of that…

There’s just one thing I’ve noticed, if WP isn’t installed in the root of the site it doesn’t work… I’ve had a hack around and I’ve fixed that problem, but true to form it broke everything else (namely the editing of macros).

You want me to send over what I’ve done so you can take a look?

7 Aaron March 7, 2006 at 2:54 pm

There’s a few thigns that I’ve found wrong but that’s why it’s a beta. I’ll work on making it relative. Thanks.

8 Aaron March 7, 2006 at 2:54 pm

There’s a few thigns that I’ve found wrong but that’s why it’s a beta. I’ll work on making it relative. Thanks.

9 J.M. Hardin March 8, 2006 at 12:33 pm

Just an FYI, the ZIP version of the file doesn’t have the folder structure. Also, when I activated it and went to the Macros manager page I got “Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/ydwblog.com/httpdocs/wp-content/plugins/wp-macros/wp-macros-functions.php on line 72″.

10 J.M. Hardin March 8, 2006 at 12:33 pm

Just an FYI, the ZIP version of the file doesn’t have the folder structure. Also, when I activated it and went to the Macros manager page I got “Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/ydwblog.com/httpdocs/wp-content/plugins/wp-macros/wp-macros-functions.php on line 72″.

Comments on this entry are closed.

Previous post: The Zen of writing a Business Plan

Next post: Streisand: Bush is ‘dummbe’