Technosailor.com Readers! Donate today to assist the Internews Haiti Earthquake Communications Effort in their efforts.

6 March 2006 10 Comments

WP-Macros

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

Pick up your copy of the WordPress Bible, a wildly popular resource for beginners and experts alike.

Popularity: 1% [?]

Tags:

10 Responses to “WP-Macros”

  1. Jesse 6 March 2006 at 10:47 am #

    beautiful

  2. Jesse 6 March 2006 at 10:47 am #

    beautiful

  3. Aaron 6 March 2006 at 11:35 am #

    Glad you like it. :)

  4. Aaron 6 March 2006 at 11:35 am #

    Glad you like it. :)

  5. Jonic 7 March 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 7 March 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 7 March 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 7 March 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 8 March 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 8 March 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″.