MTMacro

Sometimes it's nice to get a lot for a little. Macros let you do that. Instead of typing laborious HTML as you write your entries, a macro can do all the work for you so you can concentrate on writing. Perhaps you want to use a set of icons within your posts but don't care to write <img> tags all day long. Or maybe you'd like to link up to Google queries without having to type out the full URL. This plugin allows you to do that and much more.

Availability

You can download this plugin here: mtmacros-1_52.zip

Installation

To install, place the 'macros.pl' file in your Movable Type 'plugins' directory. The 'macros.pm' and 'postproc.pm' (the 'postproc.pm' file is only necessary for Movable Type 2.21) files should be placed in a 'bradchoate' subdirectory underneath your Movable Type 'extlib' directory. Your installation should look like this:

  • (mt home)/plugins/macros.pl
  • (mt home)/extlib/bradchoate/macros.pm
  • (mt home)/extlib/bradchoate/postproc.pm

Refer to the Movable Type documentation for more information regarding plugins.

Description

This plugin allows you to define custom macros that can be expanded in a variety of ways.

Tags made available through this plugin:

  • <MTMacroDefine>: Container tag used to declare a new macro.
  • <MTMacroApply>: Container tag that applies existing macros against content.
  • <MTMacroReset>: Resets the macro system, clearing all existing macros.
  • <MTMacroContent>: Tag for accessing child data from container tag macros.
  • <MTMacroTag>: Provides the tag being processed.
  • <MTMacroAttr>: Tag for reading attributes from tag macros.
  • <MTMacroMatch>: Tag for retrieving matched elements from a pattern-based macro or matched elements from a tag-based macro that uses a pattern for the tag name.
  • <MTNull>: Container tag that literally does nothing.

<MTMacroDefine>

These attributes are allowed:

  • name: Uniquely identifies a given macro. This attribute is required for the pattern and string macro types. If not specified for tag or ctag macros, the tag/ctag value will be used as the name.
  • pattern: Used to define a pattern-based macro.
  • tag: Used to define a tag-based macro (a tag with no closing element).
  • ctag: Used to define a container tag-based macro.
  • string: Used to define a simple search/replace macro.
  • once: Only process macro against the first match.
  • recurse: Evaluate the result of this macro for additional macros.
  • no_html: Keeps macro from altering any content within HTML tags. Should not be used with tag and ctag macros since they would never match anything.
  • no_case: If specified, string, tag and container tags are mtached without respect to case.
  • script: Causes the Macro to be evaluated as an executable script. The value of this attribute should be a defined scripting language that is known to the Macros plugin.

Note: You can only specify one of the following attributes: pattern, tag, ctag, string.

Note: tags specified with the 'tag' and 'ctag' attributes can contain pattern matching elements.

Note: Macros are processed in the order they have been defined.

Here's an example:

<MTMacroDefine name="smiley1" string=":^)">
<img src="/images/smiley1.gif"
     height="20" width="20"
     alt=":^)" />
</MTMacroDefine>

There's a simple search/replace macro that changes all the ':^)' to an IMG tag that points to (hopefully) a smiley graphic.

Here's a pattern-based macro:

<MTMacroDefine name="uppercase"
   pattern="m/\^\^(.+?)\^\^/">
<MTNull upper_case="1"><MTMacroMatch
   position="1"></MTNull>
</MTMacroDefine>

Here's a tag macro:

<MTMacroDefine tag="line">
<hr noshade="noshade"
   width="<MTMacroAttr name="width" default="100%">" />
</MTMacroDefine>

Finally, a container tag macro:

<MTMacroDefine name="blue" ctag="blue">
<span style="color: blue"><MTMacroContent></span>
</MTMacroDefine>

Tag macros can use patterns too:

<MTMacroDefine name="smileys" tag="smiley(\d+)">
  <img src="/images/smiley<MTMacroMatch position="1">"
  height="20" width="20" alt=":-)" />
</MTMacroDefine>

Your macros can be as complex as you'd like. Here's a fancy one I put together that invokes the MTAmazon plugin whenever you use a custom 'amazon' tag in your blog entries:

If you can follow that, you'll begin to see the power of this plugin. Here's a before/after view what it does:

I'm also interested in <amazon keyword="tangerine dream">some TD music</amazon>.

And when you publish, it comes out like this (the purple popup there is done using the Overlib script):

after

<MTMacroApply>

This container tag applies macro rules to anything contained within it.

These attributes are available:

  • macro: Assign '1' to cause all defined macros to expand. Or you can provide a list of space-delimited macro names. Or you can specify a regular expression matching pattern in the form of "m/pattern/" to have it select macros by a pattern.
  • recurse: Instructs macro expansion to continue to evaluate macro results.

Here's how you might use it:

<MTMacroApply>
  <MTEntryBody>
</MTMacroApply>

Or perhaps you only want to apply certain macros. This will only apply the macros named 'bold' and 'italic':

<MTMacroApply macro="bold italic">
  <MTEntryBody>
</MTMacroApply>

A pattern can also be used to select macros. This applies any macros that are named with 'body_' as a prefix:

<MTMacroApply macro="m/^body_/">
  <MTEntryBody>
</MTMacroApply>

Another way to invoke the macros is to use the 'apply_macros' global tag attribute. This allows you to apply macros to any 'MT' tag.

<MTEntryBody apply_macros="1">

Or apply selectively, with a list of macro names or a pattern:

<MTEntryBody apply_macros="m/^body_/">

<MTMacroReset>

Use this tag to clear all defined macros.

<MTMacroContent>

When used in side a macro definition, this tag expands to the value of the content contained within the container macro tag currently being processed.

These attributes are available:

  • default: Allows you to specify a default value in the event that there wasn't any content in the macro tag. Supports embedded expressions.

<MTMacroTag>

Returns the name of the tag currently being processed.

These attributes are available:

  • rebuild: If specified, MTMacroTag will return the full opening tag for the tag being processed. It will add all existing attributes.
  • quote: Used to specify the quote character for rebuilding the tag expression (defaults to ").

<MTMacroAttr>

This tag is used with tag or container tag macros. You can use it to select the values of attributes used in your tag.

These attributes are available:

  • name: The name of the attribute you are fetching.
  • value: A value to assign to the existing tag. Useful in conjunction with the 'rebuild' attribute of the MacroTag tag. Supports embedded expressions.
  • remove: If specified, the named attribute will be removed from the list of tag attributes.
  • default: A default value to assign in case the attribute was unspecified (note: blanks are considered values-- the attribute must not be present at all in order for a default value to be assigned). Supports embedded expressions.

<MTMacroMatch>

This tag is used to select matched elements of a pattern-based macro or parts matched from a tag-based macro.

These attributes are available:

  • position: The matched element you want to extract.
  • default: The default value to assign in case the matched value is empty. Supports embedded expressions.

<MTNull>

This tag is used to invoke the global tag attributes, like 'upper_case'. It doesn't do anything to the contained content other than processing it normally.

Usage Notes

  • For any tag attribute above that mentions 'supports embedded expressions', that means that the attribute can contain a Movable Type expression in the form of "[MTEntryTitle]" or "&lt;MTEntryTitle&gt;". If the attribute contains such content, it will be evaluated.
  • If you use the pattern matching macros or you use a pattern to define your tag macros, please form them carefully or your macro may match more than you expect. For a tutorial on using Perl regular expressions visit this page: http://www.perldoc.com/perl5.6.1/pod/perlretut.html
    And for advanced documentation, look here: http://www.perldoc.com/perl5.6.1/pod/perlre.html
  • The 'script' attribute of the MTMacroDefine tag is extensible. Refer to my "PerlScript" plugin as an example of how to provide scripting support to this plugin.

Support

If you have any questions or need assistance with this plugin, please write your comments, complaints, suggestions, criticisms here: http://www.bradchoate.com/past/mtmacros.php

License

Released under the MIT License.

Changelog

  • 1.52: string and pattern attribute values of the MTMacroDefine tag are now decoded for HTML entities.
  • 1.51: Bugfix for 'script' attribute when nested MT tags are present.
  • 1.5: Added 'script' attribute to MTMacroDefine.
  • 1.4: Added 'no_case' attribute to MTMacroDefine.
  • 1.31: Corrected closure tags for embedded expressions.
  • 1.3: Added 'no_html' attribute to MTMacroDefine.
  • 1.2: Added 'recurse' and 'once' attributes to MTMacroDefine. Added 'recurse' to MTMacroApply. Fixed bug where container tag 'MyTag' matches tag 'MyTagSomething' (due to similar name prefix).
  • 1.1: Added 'value' and 'remove' to MTMacroAttr. Added 'rebuild' to MTMacroTag.
  • 1.0: Initial release

TrackBack

TrackBack URL for this entry:
http://bradchoate.com/mt/feedback/tb/342

Listed below are links to weblogs that reference MTMacro:

» MT Plugins from Rat-Bag
Brad Choate has been a busy little beaver lately, creating new plugins for MT left right and centre! I've got some of his working and this post is basically testing a new one he's come up with called MTMarcro. If [Read More]

» MT Macro Plugin from nico | couchblog
Brad Choate verffentlicht MT-Plugins am laufenden Band. So langsam wird es richtig ausgeflippt: MTMacro stattet MT mit einer Makrofunktionalitt aus, die kaum noch zu berblicken ist. Everything is possible. Hier werde ich erstmal ganz einfach anfange... [Read More]

» MT Macros, baby. from wowblog!
MT Macros, baby. MT Macros. Quem l o [Read More]

» MT Macros from nf0's Life
Brads done it again with MTMacro. This is some great stuff, i'll have to set it up this weekend. If got some ideas all ready. Looks like marks already putting [Read More]

» igottadonewtechiestufftostaysane from Moon Farmer
[brad choate dot com] MTMacro note to self: check this macro stuff out. and this one too [Read More]

» Clever stuff: from My 2p
Movable Type Macros. [Read More]

» MT Macros from Diary of a Female Headcase
Found this new-fangled gadget - MTMacros. Looks very cool indeed so far, except for one thing. As we all know [Read More]

» Movable Type macros for Everything2 from Legends of the Sun Pig
Back in the (good/bad...proabably bad) old days when the sunpig site was running on some scraps of PHP code I'd [Read More]

» Wonder how to add from deanmckenzie.org
Wonder how to add a new entry. With that resolved, I'm testing a new plugin for MT called Adminimizer [Read More]

» Ahhhh from SIGSEGV
... it's time to relax, and you know what that means ... [Read More]

» MTMacro installed from ThouposBrook
Brad Choate's extremely powerful macro kit. This should be fun! [Read More]

» Installed MTMacro As Well from David Raynes
I've also gone and installed MTMacro. Though I did have some trouble with it initially, in the end, I discovered [Read More]

» Welcome to the New CeeJayOz.com from CeeJayOz.com
Welcome, folks, to the new CeeJayOz.com! :-D The site is now a "weblog" - a place for me to post [Read More]

» MTMacro Improved (Slightly) from David Raynes
Because of how I wanted to use MTMacro (so far at least), I decided to add a fouth type of [Read More]

» MTMacros Plugin from blog-e-ando
He traducido al castellano la documentacin del plugin MTMacros de Brad Choate. Versin en castellano de la documentacin de MTMacros A ton of thanks, Brad. [Read More]

» this is stolen from the blivit
so here's a few more things fun and informative facts about the redesign… i finally figured out how to [Read More]

» strike tag from kadyellebee
This is SUCH a geeky post. I'm excited about HTML tags. LOL, if this is totally uninteresting to you, just [Read More]

» strike tag from kadyellebee
This is SUCH a geeky post. I'm excited about HTML tags. LOL, if this is totally uninteresting to you, just [Read More]

» Pay No Attention to the Woman Behind the Curtain from Stitching for Sanity
:evil: This is just a test. It just means the MTMacros Plugin is working. [Read More]

» More Site tweaks from Musings
Update on site features and fixes [Read More]

» a few tricks from kadyellebee
I've had a few extra minutes to clean a few bookmarks off my desktop. One of them was to dive [Read More]

» a few tricks from kadyellebee
I've had a few extra minutes to clean a few bookmarks off my desktop. One of them was to dive [Read More]

» a few tricks from kadyellebee
I've had a few extra minutes to clean a few bookmarks off my desktop. One of them was to dive [Read More]

» a few tricks from kadyellebee
I've had a few extra minutes to clean a few bookmarks off my desktop. One of them was to dive [Read More]

» a few tricks from kadyellebee
I've had a few extra minutes to clean a few bookmarks off my desktop. One of them was to dive [Read More]

» a few tricks from kadyellebee
I've had a few extra minutes to clean a few bookmarks off my desktop. One of them was to dive [Read More]

» More MTMacros Fun from Stitching for Sanity
Kristine's post about the MTMacros plug-in got me inspired to play around and now my life is even easier! I've [Read More]

» MT colophon from markpasc.org
Makali has ruminated on Movable Type, and I'm about to be able to switch my Radio readers over here, so [Read More]

» Installed MTMacro As Well from David Raynes
I've also gone and installed MTMacro. Though I did have some trouble with it initially, in the end, I discovered [Read More]

» Awsome! from Trnderfan
[brad choate dot com] MTMacro *notes down as the next on his to-do list* [Read More]

» Implemented the MT-Macros plugin from Trnderfan
All hails to Brad for this one! Now, if this is done correctly the following words will be changed to [Read More]

» MTMacro: simple, and it works from ThouposBrook
[Read More]

» MTMacro: simple, and it works from ThouposBrook
[Read More]

» MTMacro: simple, and it works from ThouposBrook
Very cool! It's not immediately obvious how easy MTMacro makes some pretty complex tasks. I'm just starting out, but I [Read More]

» minor backend work from Hasturkun.com
Hastur makes fool of self while hacking MT [Read More]

» minor backend work from Hasturkun.com
Hastur makes fool of self while hacking MT [Read More]

» Have A Smilie from stacey-lynn.net
Alrighty...I started working on this last night, and I thought I was at a good stopping point to go to [Read More]

» Have A Smilie from stacey-lynn.net
Alrighty...I started working on this last night, and I thought I was at a good stopping point to go to [Read More]

» MACROS from Test Blog
I would like to use MTMacro and Overlib to create two things: 1) A glossary of terms 2) A revised [Read More]

» Blog: How My Blog Works from Richy's Random Ramblings
How my blog works, what software (and plugins) are used and how it all sticks together. [Read More]

» MovableType Powered iMood! from WetSweater.com
The big news from yesterday is the introduction of the iMood-style mood indicator at the top of the side menus. [Read More]

» MovableType Powered iMood! from WetSweater.com
The big news from yesterday is the introduction of the iMood-style mood indicator at the top of the side menus. [Read More]

» MovableType Powered iMood! from WetSweater.com
The big news from yesterday is the introduction of the iMood-style mood indicator at the top of the side menus. [Read More]

» MovableType Powered iMood! from WetSweater.com
The big news from yesterday is the introduction of the iMood-style mood indicator at the top of the side menus. [Read More]

» RSS Ads in Movable Type from Kalsey Consulting Group :: Measure Twice
Using the Regex plugin to insert intelligent advertising into an RSS feed. [Read More]

» RSS Ads in Movable Type from Kalsey Consulting Group :: Measure Twice
Using the Regex plugin to insert intelligent advertising into an RSS feed. [Read More]

» MT Macros from Site Log
How do you shorten your work in MT? Macros. [Read More]

» Full Potential from UD5
I've been looking at the MTMacros plugin all morning, when [Read More]

» MTMacros from ALT1040
MT, XML, HTML, XHTML, CSS. Estoy probando los MTMacros con las indicaciones de acrnimos de Dave. [Read More]

» Trackback is Go from From the Orient
Aquarion seems to be running a parallel implementation process to what I am doing. The difference is that Aquarion is [Read More]

» Macro Magic from John's Jottings
I have my Book Review markup macro working the way I want it to now. Or at least pretty close. [Read More]

» MTMacro from noeljackson.com
I wanted a way to automate acronym tags on my site. So I did some googling and came up with the answer (I knew there had to be a way). It's MTMacro. Its a Moveable Type plugin, you download it install it, and then follow Mark's directions. I am going ... [Read More]

» Implemented the MT-Macros plugin from GomSlork
All hails to Brad for this one! Now, if this is done correctly the following words will be changed to [Read More]

» The More, The Less, The Macro from GLOG: half graham, half blog. i'm a glog.
Brad Choate is a god. Seriously. If Gozer from Ghostbusters asked Brad "Are you a god," hands down, Brad could [Read More]

» The More, The Less, The Macro from GLOG: half graham, half blog. i'm a glog.
Brad Choate is a god. Seriously. If Gozer from Ghostbusters asked Brad "Are you a god," hands down, Brad could [Read More]

» The More, The Less, The Macro from GLOG: half graham, half blog. i'm a glog.
Brad Choate is a god. Seriously. If Gozer from Ghostbusters asked Brad "Are you a god," hands down, Brad could [Read More]

» The More, The Less, The Macro from GLOG: half graham, half blog. i'm a glog.
Brad Choate is a god. Seriously. If Gozer from Ghostbusters asked Brad "Are you a god," hands down, Brad could [Read More]

» The More, The Less, The Macro from GLOG: half graham, half blog. i'm a glog.
Brad Choate is a god. Seriously. If Gozer from Ghostbusters asked Brad "Are you a god," hands down, Brad could [Read More]

» The More, The Less, The Macro from GLOG: half graham, half blog. i'm a glog.
Brad Choate is a god. Seriously. If Gozer from Ghostbusters asked Brad "Are you a god," hands down, Brad could [Read More]

» The More, The Less, The Macro from GLOG: half graham, half blog. i'm a glog.
Brad Choate is a god. Seriously. If Gozer from Ghostbusters asked Brad "Are you a god," hands down, Brad could [Read More]

» The More, The Less, The Macro from GLOG: half graham, half blog. i'm a glog.
Brad Choate is a god. Seriously. If Gozer from Ghostbusters asked Brad "Are you a god," hands down, Brad could [Read More]

» MT-plugins from Caboose
I've started using a couple of Brad Choate's plugins for Movable Type, the system that maintains this bit of the [Read More]

» MT-plugins from Caboose
I've started using a couple of Brad Choate's plugins for Movable Type, the system that maintains this bit of the [Read More]

» MT-plugins from Caboose
I've started using a couple of Brad Choate's plugins for Movable Type, the system that maintains this bit of the [Read More]

» Rogue Tags, Serendipitous Plugins from Tangleweeds
So I had a major adventure posting yesterday's message, and made an entirely uninformed decision that it happened because the [Read More]

» Rogue Tags, Serendipitous Plugins from Tangleweeds
So I had a major adventure posting yesterday's message, and made an entirely uninformed decision that it happened because the [Read More]

» Rogue Tags, Serendipitous Plugins from Tangleweeds
So I had a major adventure posting yesterday's message, and made an entirely uninformed decision that it happened because the [Read More]

» Brad's macro installation notes from Boon Kwee's Blog
Brad Choate: MTMacro Found this and I think it would be quite interesting to implement. [Read More]

» macros from kiesows.de
ich habe gerade ein wenig in den plugins fr movabletypes geblttert und dabei was super praktisches gefunden. und zwar gibt [Read More]

» macros from kiesows.de
ich habe gerade ein wenig in den plugins fr movabletypes geblttert und dabei was super praktisches gefunden. und zwar gibt [Read More]

» macros from kiesows.de
ich habe gerade ein wenig in den plugins fr movabletypes geblttert und dabei was super praktisches gefunden. und zwar gibt [Read More]

» MTMacro added from Jesse Lawrence's Weblog
I just installed the very cool MT Macro plugin. This is a test [Read More]

» MTMacro added from Jesse Lawrence's Weblog
I just installed the very cool MT Macro plugin. This is a test [Read More]

» MTMacro added from Jesse Lawrence's Weblog
I just installed the very cool MT Macro plugin. This is a test [Read More]

» MTMacro added from Jesse Lawrence's Weblog
I just installed the very cool MT Macro plugin. This is a test [Read More]

» MTMacro added from Jesse Lawrence's Weblog
I just installed the very cool MT Macro plugin. This is a test of my new lt&;code tagsgt&; [Read More]

» MTMacro added from Jesse Lawrence's Weblog
I just installed the very cool MT Macro plugin. This is a test of my new <code tags> [Read More]

» MTMacro added from Jesse Lawrence's Weblog
I just installed the very cool MT Macro plugin. This is a test of my new <code> tags [Read More]

» MTMacro added from Jesse Lawrence's Weblog
I just installed the very cool MT Macro plugin. This is a test of my new <code> tags :) [Read More]

» MTMacro added from Jesse Lawrence's Weblog
I just installed the very cool MT Macro plugin. This is a test of my new <code> tags [Read More]

» Smarty Pants & Macros from ALT1040
Por recomendacin de Jeremy de Antipixel (y justo mientras lo bajaba vi que tambin de mini-d) he instalado el Smarty Pants 1.1, que bsicamente hace que las comillas "se vean as" y que los guiones que tanto uso ( -- ), se muestren como debe de ser...... [Read More]

» Smarty Pants & Macros from ALT1040
Por recomendacin de Jeremy de Antipixel (y justo mientras lo bajaba vi que tambin de mini-d) he instalado el Smarty Pants 1.1, que bsicamente hace que las comillas "se vean as" y que los guiones que tanto uso ( -- ), se muestren como debe de ser...... [Read More]

» Smarty Pants & Macros from ALT1040
Por recomendacin de Jeremy de Antipixel (y justo mientras lo bajaba vi que tambin de mini-d) he instalado el Smarty Pants 1.1, que bsicamente hace que las comillas "se vean as" y que los guiones que tanto uso ( -- ), se muestren como debe de ser...... [Read More]

» Smarty Pants & Macros from ALT1040
Por recomendacin de Jeremy de Antipixel (y justo mientras lo bajaba vi que tambin de mini-d) he instalado el Smarty Pants 1.1, que bsicamente hace que las comillas "se vean as" y que los guiones que tanto uso ( -- ), se muestren como debe de ser...... [Read More]

» MTMacros correctamente from blog-e-ando
Dado que tenis inters en emplearlas, un apequea explicacin de cmo hacerlo: Descargamos el plugin MTMacros - del cul disponeis de informacin traducida al castellano sobre cmo instalarlo: MTMacros en Castellano Descargamos tambin el plugin MTPer... [Read More]

» MTMacros correctamente from blog-e-ando
Dado que tenis inters en emplearlas, una pequea explicacin de cmo hacerlo: Descargamos el plugin MTMacros - del cul disponeis de informacin traducida al castellano sobre cmo instalarlo: MTMacros en Castellano Descargamos tambin el plugin MTPer... [Read More]

» A Colophon of Sorts from Life in the Zu
In case you're keeping track or want to add some of the stuff I've added to your own site here's what I've done so far: Simple Comments Plugin from Adam Kalsey, combines Comment and Ping display Smilies: Instructions came from Lisa, Gal of Unix. Thanks... [Read More]

» MT 2.6.2 and Comments from NSLog();
MovableType 2.6.2 seems to be stripping the smileys from my blog's comments. Just the comments - they work fine in my regular posts: O:-) >:-o :-| :-D :-O :-( B-) :-) :-P ;-) :-zzz I'm not sure what's going on there: comments are set to "Convert Line B... [Read More]

» MT 2.6.2 and Comments from NSLog();
MovableType 2.6.2 seems to be stripping the smileys from my blog's comments. Just the comments - they work fine in my regular posts: O:-) >:-o :-| :-D :-O :-( B-) :-) :-P ;-) :-zzz I'm not sure what's going on there: comments are set to "Convert Line B... [Read More]

» MT 2.6.2 and Comments from NSLog();
MovableType 2.6.2 seems to be stripping the smileys from my blog's comments. Just the comments - they work fine in my regular posts: O:-) >:-o :-| :-D :-O :-( B-) :-) :-P ;-) :-zzz I'm not sure what's going on there: comments are set to "Convert Line B... [Read More]

» MT Macros & Acronyms from ManiacalRage
A few people have asked me how I do the acronyms on this site. You know, the words that have the grey dotted underline and when you mouse over them [Read More]

» MT Macros & Acronyms from ManiacalRage
A few people have asked me how I do the acronyms on this site. You know, the words that have the grey dotted underline and when you mouse over them [Read More]

» MT Macros & Acronyms from ManiacalRage
A few people have asked me how I do the acronyms on this site. You know, the words that have the grey dotted underline and when you mouse over them [Read More]

» MT Macros & Acronyms from ManiacalRage
A few people have asked me how I do the acronyms on this site. You know, the words that have the grey dotted underline and when you mouse over them [Read More]

» MT Macros & Acronyms from ManiacalRage
A few people have asked me how I do the acronyms on this site. You know, the words that have the grey dotted underline and when you mouse over them [Read More]

» MT Macros & Acronyms from ManiacalRage
A few people have asked me how I do the acronyms on this site. You know, the words that have the grey dotted underline and when you mouse over them [Read More]

» MT 2.6.2 and Comments from NSLog();
MovableType 2.6.2 seems to be stripping the smileys from my blog's comments. Just the comments - they work fine in my regular posts: O:-) >:-o :-| :-D :-O :-( B-) :-) :-P ;-) :-zzz I'm not sure what's going on there: comments are set to "Convert Line B... [Read More]

» Pissed. from GoalieGirl.com
Hi. My web host screwed me again. All my data is gone. I'm in the process of restoring from a [Read More]

» Pissed. from GoalieGirl.com
Hi. My web host screwed me again. All my data is gone. I'm in the process of restoring from a [Read More]

» MT 2.6.2 and Comments from NSLog();
MovableType 2.6.2 seems to be stripping the smileys from my blog's comments. Just the comments - they work fine in my regular posts: O:-) >:-o :-| :-D :-O :-( B-) :-) :-P ;-) :-zzz I'm not sure what's going on there: comments are set to "Convert Line B... [Read More]

» MT 2.6.2 and Comments from NSLog();
MovableType 2.6.2 seems to be stripping the smileys from my blog's comments. Just the comments - they work fine in my regular posts: O:-) >:-o :-| :-D :-O :-( B-) :-) :-P ;-) :-zzz I'm not sure what's going on there: comments are set to "Convert Line B... [Read More]

» MT 2.6.2 and Comments from NSLog();
MovableType 2.6.2 seems to be stripping the smileys from my blog's comments. Just the comments - they work fine in my regular posts: O:-) >:-o :-| :-D :-O :-( B-) :-) :-P ;-) :-zzz I'm not sure what's going on there: comments are set to "Convert Line B... [Read More]

» Technical Developments from Bow. James Bow.
Does this work? :-/ Do I know what I'm doing? Or am I going to be embarrased? :blush: Well, here [Read More]

» MT 2.6.2 and Comments from NSLog();
MovableType 2.6.2 seems to be stripping the smileys from my blog's comments. Just the comments - they work fine in my regular posts: O:-) >:-o :-| :-D :-O :-( B-) :-) :-P ;-) :-zzz I'm not sure what's going on there: comments are set to "Convert Line B... [Read More]

» コメントにスマイリーをつけるプラグイン from Dejimah
Adding smileys to your blog - Unix Gal Smileys, part 2 - Unix Gal Brad Choate: MTMacroってのを入れないと使えないみたいです。 付けてみよう!協力求む! [Read More]

» コメントにスマイリーをつけるプラグイン from Dejimah
Adding smileys to your blog - Unix Gal Smileys, part 2 - Unix Gal Brad Choate: MTMacroってのを入れないと使えないみたいです。 付けてみよう!協力求む! [Read More]

» Status of Moveable Type Conversion from Yay! Blog!
I've been working my butt of this weekend with the conversion to Moveable Type! I assigned Titles and Categories to over 400 entries in Yay! It's a Blog! from the time I got up yesterday to the time I forced... [Read More]

» Status of Moveable Type Conversion from Yay! Blog!
I've been working my butt of this weekend with the conversion to Moveable Type! I assigned Titles and Categories to over 400 entries in Yay! It's a Blog! from the time I got up yesterday to the time I forced... [Read More]

» MovableType Powered iMood! from WetSweater.com
The big news from yesterday is the introduction of the iMood-style mood indicator at the top of the side menus. [Read More]

» MovableType Powered iMood! from WetSweater.com
The big news from yesterday is the introduction of the iMood-style mood indicator at the top of the side menus. [Read More]

» plugin problems from Phantasmasy
Grrr. >:this plugin for MT to work. It's installed, and I've done everything I was told to in the Readme file, but it doesn't work. I want to apply my macros to all my entries, so I tried to rebuild [Read More]

» new movable type plugin - for syntax highlighting! from hollowcube.com - talk
Sean Voisen has just released MTCodeBeautifier - a Movable Type plugin that highlights the syntax of various languages. Languages supported so far include: PHP, Java, Scheme, Perl, and ActionScript. He says that it's quite easy to add additional langua... [Read More]

» new movable type plugin - for syntax highlighting! from hollowcube.com - talk
Sean Voisen has just released MTCodeBeautifier - a Movable Type plugin that highlights the syntax of various languages. Languages supported so far include: PHP, Java, Scheme, Perl, and ActionScript. He says that it's quite easy to add additional langua... [Read More]

» MTCodeBeautifier Update: Version 0.2 from voisen.org
Hopefully this fixes a few things. The new version removes the text formatting filters, leaving the plugin as simply a standalone tag option. However, I have added support for Brad Choate's MTMacro. In order to use this plug-in in your... [Read More]

» MTCodeBeautifier Update: Version 0.2 from voisen.org
Hopefully this fixes a few things. The new version removes the text formatting filters, leaving the plugin as simply a standalone tag option. However, I have added support for Brad Choate's MTMacro. In order to use this plug-in in your... [Read More]

» MTCodeBeautifier Update: Version 0.2 from voisen.org
Hopefully this fixes a few things. The new version removes the text formatting filters, leaving the plugin as simply a standalone tag option. However, I have added support for Brad Choate's MTMacro. In order to use this plug-in in your... [Read More]

» MTCodeBeautifier Update: Version 0.2 from voisen.org
Hopefully this fixes a few things. The new version removes the text formatting filters, leaving the plugin as simply a standalone tag option. However, I have added support for Brad Choate's MTMacro. In order to use this plug-in in your... [Read More]

» Code beautyfier innstalled from [ S K A I H I G H ]
Code beautyfier for MT, perl, php er innstallert. N skulle det vre mulig f forskjellige farger avhengi om kodebiten [Read More]

» About the mobile edition from dive into mark
About "dive into mark" mobile edition, thoughts on "standards", and instructions for setting up your own mobile edition in Movable Type. [Read More]

» macros from kiesows.de
ich habe gerade ein wenig in den plugins fr movabletypes geblttert und dabei was super praktisches gefunden. und zwar gibt... [Read More]

» Movable Type MTMacro plugin from Tribblescape Info
http://www.bradchoate.com/past/mtmacros.php... [Read More]

» Amazon and other advances from Rizwan's Public Log
Usage :: MTAmazon Usage :: MTMacro... [Read More]

» Lots of things... from Breaking Windows
Well there are a lot of site related things so I will just throw them all together in this post.... [Read More]

» Lots of things... from Breaking Windows
Well there are a lot of site related things so I will just throw them all together in this post.... [Read More]

» gebruikte plugins from gw's virtuele 3M Post-It (tm)(r)
Een groot deel van deze site komt "straight out of the box". Een aantal bijzondere functies zijn er door mijzelf... [Read More]

» MTMacro: let's test! from Robert Brook
Brad Choate: MTMacro :test:... [Read More]

» OverLib and MTMacros from Bloggins
Over the past couple of days, I’ve added two new plugins. MTMacros is a plugin written by Brad Choate. Sometimes... [Read More]

» OverLib and MTMacros from Bloggins
Over the past couple of days, I’ve added two new plugins. MTMacros is a plugin written by Brad Choate. Sometimes... [Read More]

» Bits and pieces from dive into mark
In 1995, my dog had an e-mail address and a home page; in 2003, she was the first entry in my LDAP directory. [Read More]

» Smilies from betastate.net
Just applied the MT-Macros plugin to supply smilies for the site :)... [Read More]

» Macros Plugin 0+1i from Mt. Molelog
This is the first general release of my macros plugin, a highly generalized macro package modelled on (but not actually based on, code-wise) Brad Choate’s MT-Macros package. This release includes string macros, pattern macros, tag macros (html-like [Read More]

» Plugins and Macros from The After Hours Pub
Everyone keeps saying, "here's the plug-in", "get the plug-in" blah blah. But we over here at IC (that'd be Idiot Central for the uninformed) keep saying, "What, by all that is holy, is a plug-in?" (And you gotta know that... [Read More]

» stuffed up smilie heaven from bits & pieces
argh. frustrating. am trying to implement smilies on my site, but it seriously stuffs up. double posts and no more... [Read More]

» Process Entry Tags Plugin from Rambles In The Brambles
Several days ago, I tried to put together some macros to format tables of photos in a clean and easy way. It would seem cleanest to implement that functionality as normal Movable Type tags, and use a text processing filter to expand those tags into th... [Read More]

» Capturing links from Bill Kearney
Let's say you want to know if people are using the links on your page. If you use plain HREF links you can't easily track them. What you have to do is capture the links. Here's how to do it... [Read More]

» For the Power Users (RSS Feeds Updated) from Yay! Blog!
I updated my RSS Feeds again once I figured out how to make the macros work. They're way way more awesome because the Blog feed now includes comments, the Song feed now includes all the streaming links for the songs,... [Read More]

» Auto-acronym from yowkee essential
While busy on adding this little and that little tricks on MT template, it might be good to blog on them too. Acronym is apparently a good way to save typing and release your reader of scratching head in figuring... [Read More]

» More browsers should support CSS3 from Through A Glass Darkly
William has taken the external link identification to a whole new level. I love the elegance of this solution, so much better than either the MTMacros or Blosxom macros answer. It’s a crying shame that more browsers don’t support it, though. A [Read More]

» More browsers should support CSS3 from Through A Glass Darkly
William has taken the external link identification to a whole new level. I love the elegance of this solution, so much better than either the MTMacros or Blosxom macros answer. It’s a crying shame that more browsers don’t support it, though. A [Read More]

» More browsers should support CSS3 from Through A Glass Darkly
William has taken the external link identification to a whole new level. I love the elegance of this solution, so much better than either the MTMacros or Blosxom macros answer. It’s a crying shame that more browsers don’t support it, though. A [Read More]

» MT 2.6.2 and Comments from NSLog();
MovableType 2.6.2 seems to be stripping the smilies from my blog's comments. Just the comments - they work fine in my regular posts: O:-) >:-o... [Read More]

» Almost there from Escapism
Installed Brad Choate's MT-Perlscript and MTMacro plugins via Mark Pilgrim. And I must say, they are really neat. The possibilities are endless! More stuff to get into and not finish. Almost done with most of the site. Just need to... [Read More]

» Adding smileys to your blog from Unix Gal
This is how I implemented my smilies. It's a combination of the ideas from ScriptyGoddess, The Girlie Matters and my [Read More]

» Ooooh, a plugin! from Ted's news
I found out about this plugin from Mike's blog. It looks like a pretty cool plugin, and I want to use it make graphical smileys appear when I type them in text format, for example. (This post is also a... [Read More]

» Automatic goodness... from The Unknown Geek
Thanks again to Brad Choate, I've got another little kewl toy on my site. Its a tiny little script that... [Read More]

» hi--tek from articulate.babble
I installed a plethora of Moveable Type Plugins today. The staff here at Articulate.Babble always strives to keep near the... [Read More]

» MT-Textile from yowkee essential
Follow-up with yesterday's validation of my blog, I've been asking for a text formatting option which could handle HTML special characters (for ISO 8859-1). Searching with HTML special char or HTML entity names didn't give me any good for MT... [Read More]

» Macros from About
Brad Choate's Macros plugin for MT is extremely powerful. I am using it for some basic changes right now - like changing MT to what you see above - but there is a lot more to explore with this plugin.... [Read More]

» MTCodeBeautifier Update: Version 0.2 from voisen.org
Hopefully this fixes a few things. The new version removes the text formatting filters, leaving the plugin as simply a standalone tag option. However, I have added support for Brad Choate's MTMacro. In order to use this plug-in in your... [Read More]

» How To Prevent Link-Rot in Movable Type or How To Easily Link To An Entry from David Raynes
First, grab copies of the MTMacros and Entry plugins, and install them on your site. Next, create the following macro:... [Read More]

» Useful MT Plug-ins from Bryce Yehl
MTMacros, MTIfEmpty, Validable, MTIndexEntries [Read More]

» Slowly But Surely from Procrasti-NATE
Well... I just spent about an hour making some new changes to my site. I hope that you like the... [Read More]

» How To Prevent Link-Rot in Movable Type or How To Easily Link To An Entry from David Raynes
First, grab copies of the MTMacros and Entry plugins, and install them on your site. Next, create the following macro:... [Read More]

» MT experiments on a Sunday afternoon from Hypotyposis on a Good Day
This afternoon, I was going to sit down to do some leisurely modification of my new blog. It was supposed to be a low-stress activity -- but as I got into it, I got sucked into an obsessive-must-figure-it-all-out-right-away-or-else-I'll-go-crazy frenzy... [Read More]

» Brad Choate movabletype plug-ins from thought?horizon
Brad Choate is a big contributor of plug-in extenstion to :mt:. We are using his MTMacros plug-in to relieve some of the typing needed. Great and very easy to use.... [Read More]

» Brad Choate movabletype plug-ins from thought?horizon
Brad Choate is a big contributor of plug-in extenstion to :mt:. We are using his MTMacros plug-in to relieve some of the typing needed. Great and very easy to use.... [Read More]

» Smilies with MTMacro from thought?horizon
Although we're not using the MTMacros plug-in to create smilies, the instructions given by The Girlie Matters to do so were a great help in understanding how the macro works.... [Read More]

» Smilies from Train of Thought
I am addicted to MT. It's always something with this thing. The urge to add smilies started when I was over at FreeSticky looking for the [Read More]

» Reading from Abstract Dynamics
Keep meaning to post some book reviews, but it doesn't seem to be happening. So here is the quicky version.... [Read More]

» So, how am I using Movable Type to perform Keyword Linking? from Debaser Design Journal
How to configure Keyword linking/advertising in a ton of convoluted steps! [Read More]

» hire ron and win from mini
Ron Pacheco has a son, formerly with cancer. He needs medical checkups every now and then. Ron needs medical insurance to cover the cost for said checkups. Ron is unemployed and has looked for jobs for a few months. Help... [Read More]

» So, how am I using Movable Type to perform Keyword Linking? from Debaser Design Journal
How to configure Keyword linking/advertising in a ton of convoluted steps! [Read More]

» New Plugin from Dark Star
I have been playing with plugins recently I added one to randomize the tag line everytime I rebuilt the site. I also added one to display a random entry, once more everytime I rebuild the site since I am not... [Read More]

» minor backend work from Hasturkun.com
Hastur makes fool of self while hacking MT [Read More]

» Mobile Version of Brainstorms and Raves from Brainstorms and Raves (Staging)
Brainstorms and Raves - Mobile version is now available. What's the difference? It's the simple and plain version, that's all. The handy part is that it's auto-generated by Movable Type, thanks to Brad Choate's MTMacro, Mark Pilgrim's mobile macros, i... [Read More]

» Icons for your Weblog from Brainstorms and Raves
ETC.'s post Skinable smilies and icons links to some good quality freely available icons, including Skinable Icons and Skinable Smilies. For Movable Type, using Brad Choate's MTMacros plugin makes implementing them effortless. You can see this in acti... [Read More]

» MTMacros from My Local Blog
Brad Choate's MTMacro plugin. Very handy.... [Read More]

» MT and first plugin from gdawn.com - site news
MT 2.64 was installed 03/07/16 (YY/MM/DD). /blog and /news were created immediately. I also installed my first MT plugin today, MTMacro by Brad Choate. The documentation was sparse, but it's something I'll probably be utilizing a great deal, if it work... [Read More]

» MovableType 2.64 from Knight of Reflections
Just a minor upgrade. Changelog. [Read More]

» Change Log: mtMacro from Book of Dawn
Brad Choate: mtMacro 1.52macros.pl uploaded to pluginsmacros.pm uploaded to extlib/bradchoate Documentation is included with the zip file about what it does and how to do it.... [Read More]

» MT Plugins Installed from Technology Updates
The following MovableType plugins were installed: From Brad Choate IncludeEx - Improves on MT’s Include tag by processing the included file for MT tags. MTAuthors - This plugin allows you to list the authors for your blog. You can also... [Read More]

» Automatic acronym generation from magpiebrain
Related to my previous post on a plugin request for automatic acronym generation, I found a post over at Dive Into Mark concerning the use of the MTMacro plugin to generate them. Thank you Mark and Brad. Expect it to... [Read More]

» Transmogrify your blog from the golden path
Some insight into the construction of this site with a smattering of tips and tricks... [Read More]

» Blog work for today from My side, your side
I spent this morning trying to get MTAmazon, and MTMacro to work. I think I've got it all figured out,... [Read More]

» Smilies in MT Blog and Comments from Silverberry
So you want smilies in your MT blog and comments? Requirements: -- Movable Type, version 2.5 or higher -- MT Plugin, MTMacro 1. First, you'll need to get the smilie graphics that you want. Save them all in a folder... [Read More]

» Collecting Links and Media Items from eliot
A very nerdy description of how to use MT-Collect, MT-Amazon, MT-Macros, and overLIB to create a really easy method of useful Amazon links. [Read More]

» Para los que escriben en MT, y mucho from minid.net
MTMacro es un plugin para Movable Type, que te permite crear Macros. [Read More]

» Amazon in blog from I Kill Spies
Amazon web services: There are 2 options, one where you just host images yourself, and the webservices version, where the entire content comes from amazon.com Problem: the iframe served is BIG and the URL is thus far difficult to parse Give it up, you ... [Read More]

» Yet Another Technocratic Divide from I Kill Spies
Installing some more plugins on our Movable Type server here... I want to put links to amazon for the books I've been reading, the music I've been listening to, movies I've rented, etc... I was just about to write my own perl client to interface with A... [Read More]

» MTMacro and Emoticons ... almost from Pumping Irony
I just installed Brad Choate's MTMacro plugin, and wrote up a macro definition for MSN Messenger emoticons here on the main blog and the archives. I don't have it enabled just yet though, because I need to figure out how... [Read More]

» Essential Plugins For MT from zlog - posts
Topic for today, Movable Type plugins. Installation of the following will result in a better MT experience: MTIfEmpty -- Brad Choate MTMacros -- Brad Choate MTSafeHref -- Gavin MTPerlScript -- Brad Choate MTPlural -- Jesper Lindholms SimpleComments -- ... [Read More]

» Reference from Reference, Brainstorms and Raves
I've provided a few templates below that I've mentioned in email or elsewhere. Please refer to the Movable Type Documentation and Movable Type Forums, as most questions are already answered there. If you have questions specific to these templates, plea... [Read More]

» Indextest from Reference, Brainstorms and Raves
This site is an ongoing, evolving experiment in creating a visually appealing site that is also standards compliant, accessible, and still usable in older browsers. I also strongly support WaSP (Web Standards Project), the W3C, and the WAI (Web Accessi... [Read More]

» Emoticons from Pinging Knight
I don't actually plan to use these, but it was fun to implement them. [Read More]

» Movable Type Templates from Brainstorms and Raves - Explore
Movable Type Templates Individual Entry RedirectRequires a few common plugins and macros: Brad Choate's MTMacros and Regex plugins; Mark Pilgrim's macros module, and the use of the Regex stripFile. RSS - Complete PostsLike the above template, this one ... [Read More]

» MT: Replace Image with ALT text from Brainstorms and Raves
One of the features I added to my website when I recently converted to Movable Type is a Cited Links listing. ... In essence, I've set up this plugin to collect the links within all the entries and then create an archive page for each of the websites l... [Read More]

» Smile! from Matt's Blog
:-) ;-) :-( :-O :-P :-* :D O:-) :[ :! :-/ :-X 8-) Smileys rock!... [Read More]

» Movable Type Plugin Permission Pain from Just The Facts
Comments and trackback have been restored... [Read More]

» Plugin and play from bluegrooves || in pink
I've managed to install the MTAmazon plugin to work with MTMacros and Overlib. You can see what it looks like when combined with w.bloggar. It's great. I'm actually getting quite good at doing the whole plugin movabletypey kinda thing!! Listening... [Read More]

» Plugin and play from bluegrooves || in pink
I've managed to install the MTAmazon plugin to work with MTMacros and Overlib. You can see what it looks like when combined with w.bloggar. It's great. I'm actually getting quite good at doing the whole plugin movabletypey kinda thing!! Listening... [Read More]

» Plugin and play from bluegrooves || in pink
I've managed to install the MTAmazon plugin to work with MTMacros and Overlib. You can see what it looks like when combined with w.bloggar. It's great. I'm actually getting quite good at doing the whole plugin movabletypey kinda thing!! Listening... [Read More]

» External links open new windows from Reflective Reality
Just installed the regex and macro plugins and a macro from Adam to open links in new windows. Wanna know how? Want an Icon? read on...... [Read More]

» Getting Started from TechBlog
New blog gets started... Fresh new install of MT, and Eric are ready for action. After the initial test entry, I had to get a few things set correctly. (or at least the way I like them set) I started... [Read More]

» Collecting external links with Movabletype from weblog.antbear.org
Many people seem to like the idea to mark external links with an arrow image to visually emphasize the fact that such a link points to an external resource. When reading longer articles it’s nice to have a summary of... [Read More]

» Brad Choate's MTMacros is sweet from The Blog of the Century of the Week
Damn, this is really cool. Brad Choate wrote this really cool plugin for MovableType that makes it super easy to use this other MTAmazon pluging. Now if I want to link to, say, the second season of The Sopranos on... [Read More]

» So Brad Says... from Just The Facts
Feed problems corrected? [Read More]

» Testing - Current Mood Macro from Nothing in Particular
I have no idea if this will work. I'm trying to do my current mood with Brad Choate's Macro plugin. cmshock... [Read More]

» New Geeky Stuff from T-Square's Virtual Insanity
So I have been surfing around today, looking at my usual blogs only to discover that a few folks are implementing so really cool little tidbits. The cooler ones come in the form of Plugins to make T-Square's blogging a lot easier. One of them is Brad C... [Read More]

» s from Wingie's Cradle
Finally got smilies to work together with Movatable type. :smile: I'm using the plugin from bradchoate.com and some instructions from The Girlie Matters makes it even easier. And to those that have got my Trackback pings and found that there... [Read More]

» Plugin for MT from Stnard's Diary
Plugin Ƴ [Read More]

» Plugin for MT from Stnard's Diary
Plugin Ƴ [Read More]

» MT Plugins from Life. Love. Faith.
Wanted to give some shoutouts to the kickin' MovableType plugins that are making the new design of the site rock... [Read More]

» Hail Smilies! from baileybug.com
:D I have added smilies to the site, thanks to Brad Choate's MT Macro tag and some implementation instructions from... [Read More]

» MTMacro from LAPISLAZULI HILL Underground Lab Dairy Log
MTMacroというものを導入してみました。マクロを定義しておくとそれに基づいて文字列を書き換えたり、独自タグを定義できます。これで書き込みの手間を軽減できます。たとえあまり意... [Read More]

» Yowza... from BradHeintz.com
This entry: new site features, Clark, Dean, novel, screenplay, and more. [Read More]

» Errors with new version of MTMacros from The Blog of the Century of the Week
I just upgraded to Brad Choate's new version of MTMacros. For some reason, now I get the follow errors when building a post:MT::App::CMS=HASH(0x8067a0c) Use of uninitialized value in pattern match (m//) at (eval 2662) line 2. MT::App::CMS=HASH(0x8067a0... [Read More]

» How was this site built? from Successentials
This site is built on the :mt: platform using knowledge and some hard work. :mt: has been extended through the use of the following plugins. Brad Choate's MTMacro and Regex plugins Brandon Fuller's W3CValidator plugin Jacob Hesch's BookQueue plugin Kal... [Read More]

» Changes to the blog from tins ::: Rick Klau's weblog
I’ve been doing some tweaking to this blog in the past couple days, experimenting with some “Movable Type” plugins to extend the functionality of this site. Some new items: Installed MT-Amazon, a plugin that lets me link this blog to... [Read More]

» Changes to the blog from tins ::: Rick Klau's weblog
I’ve been doing some tweaking to this blog in the past couple days, experimenting with some “Movable Type” plugins to extend the functionality of this site. Some new items: Installed MT-Amazon, a plugin that lets me link this blog to... [Read More]

» MTMacro from Design MT
Brad Choate: MTMacro Sometimes its nice to get a lot for a little. Macros let you do that. Instead of typing laborious HTML as you write your entries, a macro can do all the work for you so you can... [Read More]

» http://WWW.heick.nu/weblogblog/archives/000193.html from links
MTMacro... [Read More]

» Please excuse the mess from For the Blog of It...
I do apologize for all the funkiness of the main page right now. I hope to have it cleaned up soon. Doing a little experimentation and for some reason I started working off my live copy and just got caught... [Read More]

» MTMacro from bottleneck
1.下記URLよりMTMacrosをダウンロードしてインストールします http://www.bradchoate.com/past/mtmacros.php ※インストール方法は記載されていますので省略します 2.新規でテンプレートモジュール... [Read More]

» MTMacro from bottleneck
1.下記URLよりMTMacrosをダウンロードしてインストールします http://www.bradchoate.com/past/mtmacros.php ※インストール方法は記載されていますので省略します 2.新規でテンプレートモジュール... [Read More]

» Reminder to Install MT Plugins from Dichotomy's Purgatory
Reminder post to install CodeBeautifier, MT-Textile, and MTMacro.... [Read More]

» MT-Macro Plugin from The Truth Laid Bear
Just finished installing Brad Choate's spiffy MT-Macro plugin. It's powerful stuff, allowing you to do regular expression matching on your blog to save on the typing. At the moment, I've set it up to let me type little macros like [Read More]

» Moblog experiment from POs Blog
I've integrated a small mobile photography widget into the bottom of the home page. The Nokia's camera is pretty limited but we'll see if it yields any interesting results. The tech cocktail is MFOP2 receiving photo-emails from the Nokia, magicing... [Read More]

» Moblog experiment from POs Blog
I've integrated a small mobile photography widget into the bottom of the home page. The Nokia's camera is pretty limited but we'll see if it yields any interesting results. The tech cocktail is MFOP2 receiving photo-emails from the Nokia, magicing... [Read More]

» Reviews are up and running! from Station in the Metro
0201726831With loads of inspiration and help from:John C.'s Macro Magic review macro (used as a starting point),Brad Choate's MTPerlScript and MTMacro plugins,MTAmazon from Kalsey Consulting Group, andinvaluable installation help for expat from David W... [Read More]

» MT-Macro goodness from Bryan Helmkamp's Weblog
Thanks to a wonderfully useful tip from Mark, posts I make to this blog are automatically displayed with the proper acronym tags inserted. The hack relies on the MT-Macro and PerlScript plugins from Brad Choate. This should lead to an... [Read More]

» MovableType: MTMacros endlich installiert! from ole saalmann's blog
Ich habe gestern abend endlich mal MTMacros installiert. Die Installation ist mal wieder nicht so ganz einfach, die Anleitung mittelmäßig aber jetzt läufts. Hauptnutzen im Moment: :kurztext:wird automatisch zu <a href="http://ww... [Read More]

» MovableType: MTMacros endlich installiert! from ole saalmann's blog
Ich habe gestern abend endlich mal MTMacros installiert. Die Installation ist mal wieder nicht so ganz einfach, die Anleitung mittelmäßig aber jetzt läufts. Hauptnutzen im Moment: :kurztext:wird automatisch zu <a href="http://ww... [Read More]

» December Update from Bad Luck Blog
Woohoo :D I just successfully installed some smilies for this blog. I borrowed these ones from a certain journaling service... [Read More]

» Adding smileys to your blog from Glimpse of a Grrl
This is how I implemented my smilies. It's a combination of the ideas from ScriptyGoddess, The Girlie Matters and my own thoughts. You need to get Brad Choate's MTMacro plugin and you have to add some javascript to your site.... [Read More]

» Friday Feast #64: Abbreviations, Acronyms, and Shortened Words from Brainstorms and Raves
I've noticed that a growing number of websites are providing tooltips and styles for abbreviations and acronyms within content. Later versions of browsers support the and , with the exception of Internet Explorer unfortunately not recog... [Read More]

» MT ÷, hack, ũƮ from EOUIA
ũƮ ϳ ߰ ߴµ, ʴ´. ð 鿩 . Ƹ, MT ÷ΰ hack, ũƮ ޾ƺ , ؼ ѹ ߰ ʿ . ϴ ݱ ÷, ũƮ, hac... [Read More]

» How To Add Smileys To Your Weblog from mashby.com
Recently I was looking for a solution to a problem I was having displaying HTML in my entries. While I was searching for a solution, I found a cool way to display smileys on my weblog. I like having little smileys on my web site, like this :) , and in ... [Read More]

» Brad Choate = MT God from Bad Luck Blog
Sometimes you stumble onto something and you don't realize just how valuable it is until much later. Such is the... [Read More]

» Brad Choate = MT Plugin God from Bad Luck Blog
Sometimes you stumble onto something and you don't realize just how valuable it is until much later. Such is the... [Read More]

» Redesign? What Redesign? from The Stillness of the Woods
I know what you're thinking: Hey, It took three weeks for this? Slacker. Well, I'll just say that looks can... [Read More]

» From b2 to MT from Ecthelion
Converting journal from b2 to MT. [Read More]

» MTGoogleRank from John's Jottings
MTGoogleRank is a Movable Type plugin that allows you to programmatically determine the Google Rank of a keyword or phrase. Have a keyword that is special to you that you always want to know where you stand? MTGoogleRank is for you. MtGoogleRank uses t... [Read More]

» Testing a MT plugin from Geeky Ramblings
At Ginny's request, I've started looking into some of the features & enhancements that we can use with this blogging software. One of those features I've found is a amazon.com linker. It automagically creates a link to a book on... [Read More]

» Colophon from distant, early morning: static
colophon ( P ) Pronunciation Key (kl-fn, -fn) n. 1. An inscription placed usually at the end of a book, giving facts about its publication. 2. A publisher's emblem or trademark placed usually on the title page of a book.... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» Updates to the site from tins ::: Rick Klau's weblog
Just a quick follow-up to this post from a few weeks ago. I’m not completely done, but some of the biggies are at least in place: Cleaned-up archives. In the top-right at the weblog, you now get a calendar of... [Read More]

» correcting links from f y g :: log
no, the SafeHref plugin doesn't fix these broken links. i'm not sure what it does, although it may be something to do with encoding the secial characters in the url properly. i think i'll just delete it. a plugin that... [Read More]

» MTMacro from !blog
MTMacro makes normally-complex or -tedious HTML tasks a breeze. [Read More]

» MTMacro from !blog
MTMacro makes normally-complex or -tedious HTML tasks a breeze. [Read More]

» It's late...or early if you're a rooster. from put off 'til today
Site tweaks, redesigns, and new plugins fill an hour or so while I'm not able to sleep. [Read More]

» It's late...or early if you're a rooster. from put off 'til today
Site tweaks, redesigns, and new plugins fill an hour or so while I'm not able to sleep. [Read More]

» Got some smilies working on from Cameron's Thoughts
Got some smilies working on the journal here! :) :) :( :O :\ :crying: :rolleyes: :mad: That's all I got so far. Special thanks to Brad Choate and his MTMacro... [Read More]

» Got some smilies working on from Cameron's Thoughts
Got some smilies working on the journal here! :) :) :( :O :\ :crying: :rolleyes: :mad: That's all I got so far. Special thanks to Brad Choate and his MTMacro... [Read More]

» Blog Geekery Notes from The Boulder Inquisition
While we're on the subject of Geekery, we'll point out that in addition to a re-vamped look for the 'blog, we're also using a couple of new (to us) plugins to make life easier. Brad Choate's MT-Textile (we're still using... [Read More]

» correcting links from flambéed yak :: log
no, the SafeHref plugin doesn't fix these broken links. i'm not sure what it does, although it may be something to do with encoding the secial characters in the url properly. i think i'll just delete it. a plugin that... [Read More]

» MT Smileys from MT Hacks
There are a number of different implementations of Smileys :) for Movable Type. Here's mine. The smilieys that I use on most of my sites display in both the entries and comments. The smileys images and javascript are borrowed from... [Read More]

» MT Smileys from MT Hacks
There are a number of different implementations of Smileys :) for Movable Type. Here's mine. The smilieys that I use on most of my sites display in both the entries and comments. The smileys images and javascript are borrowed from... [Read More]

» Macros from Mercurial
OMG, it is full of stars! This is what I can say about Brad Choate's MTMacro: of course, I feel... [Read More]

» Rogue Tags, Serendipitous Plugins from Tangleweeds
So I had a major adventure posting yesterday's message, and made an entirely uninformed decision that it happened because the [Read More]

» How to create those nice-looking console style text boxes from iNeusch.com
You will need MTMacro from Brad Choate : look for it here I have added extra space after the " 1) Create a new "Template Module" 2) Remember it's name ;) 3) Add this to it : [code] [/code] 4)... [Read More]

» How to create those nice-looking console style text boxes from iNeusch.com
You will need MTMacro from Brad Choate : look for it here I have added extra space after the " 1) Create a new "Template Module" 2) Remember it's name ;) 3) Add this to it : [code]<MTMacroDefine name="console" string="[console]"><div... [Read More]

» Easily building a list of links in MT from gamewhore
I have read a couple posts on this in the past few days, and I was taking a stab at making it easier for us to update the sidebar. So, with a combination of Brad Choate's plugins and a lot... [Read More]

» Easily building a list of links in MT from gamewhore
I have read a couple posts on this in the past few days, and I was taking a stab at making it easier for us to update the sidebar. So, with a combination of Brad Choate's plugins and a lot... [Read More]

» New Plugin Idea: MacroDesigner from David Raynes
Basically, the idea is to just write a front end for MTMacro. I want it to provide the following features:... [Read More]

» Removing the Comments Area from Matt's Brain [un-leashed & revealed] - All things internet discussed
I am trying to remove the “entire” comments section from the individual entry pages, if comments for that entry are not open. Following instructions posted here by Dave .. and this is what I had thought would work, but it doesn’t seem... [Read More]

» Bad Movable Type! from Windypundit
Let's take a look at a picture of Ripley: Ripley The HTML for that looks like this: <div class="art-photo-l"> <a href="/archives/2005/images/20050401-IntroducingRipley.jpg" title="Ripley"><img alt="Ripley" src="/archives/2005/images/2005... [Read More]

» Cute pictures and more... from simplycute blog
I was browsing the lastest images @ textamerica's moblogs. I too have a moblog there, visit this link to view. Below are some more of my fav images...read on in extended entry. I was over at Silverberry's site and she... [Read More]

» Macros:将符号转换为HTML from MT Blog
上次我介绍了实现“在评论框中添加表情图标按键”的方法,其实就是点击一个按键通过JS生成一写字符。如果你嫌生成的html 源码过于难看,你可以使用Macros插件,该插件会自动将符号转换为图片显示的html源码。 下载安装Macros插件 上传到相应目录 (mt home)/plugins/macros.pl (mt home)/extlib/bradchoate/macros.pm (mt hom... [Read More]

58 Comments

Brad said:

Hi Brad

This may be a stoopid question, but where does one find the postproc.pm? It wasn't in the zip file and I've had a breif look at some of the other plugins you've made but can't seem to find it.

Or am I doing something obviously wrong?

Brad
http://rat-bag.net/blog

Brad said:

Cancel that...I'm just thick...found it :-)

Brad Choate said:

Sorry-- the 'postproc' plugin (actually not a full plugin since it really doesn't do anything on it's own) was supposed to be in the distribution. I've updated the zip file to include it. You can find the postproc plugin separately within my 'Movable Type' category archive (click the 'Movable Type Tips' link at the top of the page to jump over to it).

Brad said:

Thanks Brad,

By the way, I posted a message at the MT Support forums, I'd like you to have a squiz at when you have a moment (don't want to double up and post it here too)

http://www.movabletype.org/cgi-bin/ikonboard/ikonboard.cgi?s=3d589e3b60ffffff;act=ST;f=20;t=6690;st=0

Brad

glm said:

this may be another stoopid question, but doesn't hooking Amazon into MT force you into the commercial for-profit clause of the MT license? Doesn't the MT license say something to the effect "if you make money off it, you have to pay the commercial license"...

Brad Choate said:

Excellent question. Since my site uses it too, I asked Mena about this specifically. She said no-- a personal site using associate links to Amazon would not require a commercial Movable Type license-- unless you're "making $1000 a month" or something. I replied, "yeah right-- if that happens, I'll split it 50/50 with you!". Hopefully they'll clarify this point in their FAQ or license agreement.

Jason Mevius said:

I've almost finished implementing the MTMacro plugin to check for when MTAmazon returns no results.

I'm trying to search for the term:

<div class="buy"></div>

and replace it with the sting

<div class="buy">Not found at Amazon..</div>

I can't figure out how to format the string attribute of MTMacroDefine to transform the <, >, and the " characters.

Any ideas? I'm so close to launch..

Court Kizer said:

AHHHHHHHHHHHHHHHHHHHHHHHH!

I've been working with this macro for about 3 hours now, and can NOT get the #### thing to work. I'm sure it's probably something stupid i did.

Here's what i decided to test:


[img]/images/smiley1.gif[/img]

I PLACED the code about right after my first body tag in index.html template

Then around the code in index.html template that renders the weblog entries i placed


SO i have like this:

*BODY


[img]/images/smiley1.gif[/img]


*WEBLOG ENTRY CODE


The only thing that happens is up to where mtmacrodefine is, a smiley loads. What the #### am I doing wrong? I read over the documents over and over, but i can't find a example of where to put the code. :(

Brad Choate said:

The MacroDefine tags can be placed anywhere you'd like in your template, as long as it is ABOVE the MacroApply tag. Tags are processed in order, so if you use the apply tag before the macros are defined, it won't do anything...

It sounds as if you either haven't installed the plugin right or you're not using Movable Type 2.21. And I hope that instead of [img], you're really writing <img src="/images/smiley1.gif" /> or something to that effect...

Also, you may have just had a typo, but you close the <MTMacroApply> with </MTMacroApply>...

Quadsk8 said:

Brad

That works beautifully! Impressive programming.
I used your macro locallink/offsitelink and seen how DiveIntoMark even put an IMG inside.

But I cannot figure out myself following (even more difficult) macro.

My outside links are counted by countlink.cgi which resides on my domain:
http://www.groovycompany.nl/linktnaar/countlink.cgi?www.bradchoate.com/

Could I auto-macro-cally replace the normal http://outside-> link with http://countlink.cgi?outside->

And can this Macrocontent change be done with the same macro changing the style of the ctags?

Hope I made this question clear, maybe you can point me in the right direction?

Thanks and have a nice weekend!
Lawrence

Brad Choate said:

This should do it-- basically this will rewrite the href attribute, tacking on your CGI to the front. The original URL is added to the end and URL encoded. Your CGI will need to URL decode the link and add the 'http://' back to the URL:

<MTMacroDefine name="links" ctag="a"> <MTIfMatches expr="[MTMacroAttr name='href']" pattern="m/.+/"> <MTMacroAttr name="class" value="local"> </MTIfMatches> <MTIfMatches expr="[MTMacroAttr name='href']" pattern="m|^http://(?!.*groovycompany\.nl.*)|"> <MTMacroAttr name="class" value="offsite"> <MTMacroAttr name="href" value="http://www.groovycompany.nl/linktnaar/countlink.cgi?[MTMacroAttr name='href' regex='s!^http:!!' encode_url='1']"> </MTIfMatches> <MTMacroTag rebuild="1"> <MTIfMatches expr="[MTMacroAttr name='class']" value="offsite"><img alt="[offsite]" title="" src="/images/offsite.gif" width="11" height="11" />&nbsp; </MTIfMatches> <MTMacroContent> </a> </MTMacroDefine>

Collapse that all back to one line to avoid extra spaces in the resulting HTML.

Quadsk8 said:

Thanks Brad,

You helped a lot and I got it working perfectly. For anyone who would like to see the final working macro I made a partly english post about it on my Blog: http://www.groovycompany.nl/Blog/Archives/000139.php#more

Tina said:

This is just a stupidly silly question, I'm sure the answer is staring me in the face and I'm pretty embarassed to even have to ask it - where exactly do you create the macros?! Is there a form filled in that takes care of it all, do you put all the code in a seperate file and include that, or stick it between the head tags?! I've not been blessed with a particularly technological (or sensical) mind, help!

Brian said:

*sigh* I'm having some difficulty getting MTMacros to work. I'm using MT 2.21 with apache-1.3.23-14, perl-5.6.1-34.99.6, and mod_perl-1.26-5 on RedHat 7.3. I've got MT running with mod_perl, FWIW.

The problem I'm having is that MTMacros seems to die when processing the macro definitions. If I define a macro as
<MTMacroDefine name="test" string="foo">bar baz bap</MTMacroDefine>

directly in the template, when the template is rendered, I end up with
bar baz bap</MTMacroDefine>

It looks like something's dying when processing the tag. Can someone help?

Brad Choate said:

With mod_perl, you have to specifically add the 'mt/extlib' directory to Perl's include path. The way I did it on my server is to add a line like this:

    PerlRequire /path/to/startup.pl

in the httpd.conf file. That Perl script includes a line like this:

    use lib qw(/path/to/mt/extlib /path/to/mt/lib);

With that in place, the required files under the 'extlib' directory should be visible to mod_perl.

Kurt said:

Well, I'm with Tina above...can't quite make head or tails with this one. I'm sure (eventually) I can figure out how to create my own macros, but just using Mark's (http://diveintomark.org/inc/macros) for now, I still can't even get that far!

Uploaded install files as said, created a "bradchoate" sub-directory within /extlib/, and even 755'ed the "macros.pl" file for good measure though it isn't specified I need to do that (didn't mess with chmod permissions on the other two files).

Took Mark's complete macros file and created a template module with it, and then referenced that module with the tag from Mark's post (http://diveintomark.org/archives/2002/08/15.html#better_living_through_regular_expressions)
at the top of my index.html and individual entry templates. rebuilt (fine). then created test post with a bunch of acronyms, published, but no acronym tool tips on live (test) site.

From a thread at MT's Support Forum, there's an implication that I need to specify a path in my mt.cfg file, but I looked at that file and there doesn't seem to be any obvious place (like "plugins") where I would do so.

Kurt said:

Well, it never fails, 5 minutes after you hit the Post button, you figure it out....I did't see that bit about the ApplyMacro tag....works fine. Now, if I can only wade through the rest of the gobbledygook upstairs and write some of my own...I mean Mark's acronyms are great, but I don't find myself typing API very often...

girlie said:

I posted this over at the forum but thought I'd add it here as well (with less description). I'm getting this error message:

Can't declare undef operator in my at extlib/bradchoate/macros.pm line 34, near ") ="

Boohoo!!

Charles said:

Hello,

I was able to successfully install and run MT, but I can't make this plug-in work. My new installation had no "plugins" or "extlib" directory, so I made them, and put the files in the proper places. I did a very simple search/replace macro, but it doesn't work.

I'm sure the problem is that I'm missing a newbie step, but it feels like the instructions may be missing something.

-- Charles Wiltgen

TeledyN said:

This is weird: Can anyone tell me why this macro won't compile -- the error I get is that

MT::App::CMS=HASH(0x8066e58) Argument "[MTMacroAttr name='lastn' default='3']" isn't numeric

which means it doesn't expand that one MTMacroAttr call ... but why doesn't it?

here's the macro:

<MTMacroDefine name="amazicon" tag="amazicon">
<table cellspacing="0" cellpadding="4">
<MTAmazon search="[MTMacroAttr name='search']" method="[MTMacroAttr name='method' default='Keyword']" line="[MTMacroAttr name='line' default='books']" lastn="[MTMacroAttr name='lastn' default='3']">
<tr><th><a href="<MTAmazonLink>" title="Buy it: <MTAmazonSalePrice>!" ><img src=\'<MTAmazonSmallImage>\' border=\'0\' hspace=\'5\' /></th><td align='top'><b><MTAmazonTitle></b><br />
<a href="<MTAmazonLink>" title="Buy it: <MTAmazonSalePrice>!" ><MTAmazonTitle>"></a><br/>
</td></tr>
</MTAmazon>
</table>
</MTMacroDefine>

TeledyN said:

further to my last post ... I removed those backslashes, but it still will not resolve those [MTMacroAttr name='search'] strings; they are passed to the amazon plugin verbatim. What did I forget?

Adam Kalsey said:

In general, you won't be able to use expressions or MT tags in tag attributes. Some plugins can handle attribute values of [MTTagName] because they were written to convert those values to the actual content before the plugin does it's stuff.

This techinique first appeared in MTAmazon thanks to an idea and some sample code from Brad. MTAmazon was designed to allow MT expressions like [MTTagName] in the search attribute, but it doesn't support them as values for any other attribute.

The plugin is actually not expanding any of the macros in the attributes (except for in "search"). The reason you get an error on the lastn attribute but don't get one on the others is that lastn requires the value be a number. The other attributes don't, so when they get [MTMacroAttr ...] as a value, they accept it and move on. The lastn attribute sees that and dies because it's not a number.

If you were to remove the lastn attribute from the template, you'd stop getting the errors, but you'd never get any content back from Amazon. That's because they wouldn't understand a search method [MTMacroAttr name='method' default='Keyword'].

This whole thing has gotten me thinking, though. All my plugins should support MT tags as values to all attributes.

The next version of MTAmazon is under development to support the new releases of MT 2.5 and Amazon Web services 2.0. I'll make sure that it also allows all attributes to contain MT tags.

Shawn Yeager said:

Hi, Brad. First, thanks for all the great contributions. I've just dug into MTMacros, following Mark Pilgrim's lead on using it to create hovers for acronyms. I've run into a challenge I can't seem to lick. That is, how to deal with acronyms that appear within an HREF. If I use the 'no_html' attribute, then I'll disable the intended affect. However, on the rare occasion that a URL contains a string that matches one of my acronymns, it corrupts the URL.

For example, having defined MTMacroDefine's to cover "IP" and "DMCA," the following URL gets fudged:

http://www.eff.org/IP/DMCA/20021003_eff_pr.html

Any suggestions?

Thanks.

Brad Choate said:

Shawn: But that was the very reason why I added the 'no_html' option. Have you tried it? It will prevent string and pattern macros from altering any HTML tags (and their attributes naturally), like the 'A' tag.

Shawn Yeager said:

Thanks for the reply, Brad. I misunderstood and thought it would prevent alteration of text BETWEEN tags, not within tags. I'll go back again.

Shawn said:

Hi, Brad. Per the examples given by Mark Pilgrim, I'm using MTMacros and MTRegex to do acronym hover-over expansion. I'm using MTInclude's at the very top of each of my templates. The question is this: I now end up with a number of blank lines in the resulting HTML -- I assume after the macros have been processed. It's cosmestic only and not, of course, a functional problem. But I'm wondering if there's a switch or other method to have these blank lines "consumed" rather than left in the final HTML.

You could look at the source of http://algorhythm.org/ as an example.

Thanks

Brad Choate said:

That's easy-- just delete any new-line or space characters inbetween Movable Type tags. If you do that, that should remove any empty lines you're seeing.

Harry said:

What a nice macro, and how bad I got no idea of how patterns work. Is it possible to write a rule that

- replaces ampersands in URLs only with &

or that

- replaces all ampersands with & but does not convert the ampersand in > ?

Your (or another readers) help would be so much appreciated.

David Whip said:

I'm having a bit of a problem with a pattern in MTMacros. Its documented at http://www.movabletype.org/cgi-bin/ikonboard/ikonboard.cgi?s=3e10b1ee5f2affff;act=ST;f=20;t=12213

I'd appreciate it if you could take a look when you get a chance.

Thanks

David said:

Brad

Thanks for looking at my problem. the major issue turned out to be ... d'oh ... I thought that I had put a MTInclude tag in my Index ... but I hadn't. Everything is working fine now.

Rick Cogley said:

Hi Brad - thank you for your excellent plugins. I am using MTAmazon, and it is working because I can get the wishlist to work. However, your complex amazon search macro with overLIB showing the picture, is not. When I rebuild, I get -

MT::App::CMS=HASH(0x8331398) Use of uninitialized value in length at /virtual/rcogley/public_html/mt/extlib/bradchoate/macros.pm line 79.
MT::App::CMS=HASH(0x8331398) Use of uninitialized value in pattern match (m//) at /virtual/rcogley/public_html/mt/extlib/bradchoate/macros.pm line 81.

Could you possibly give me an idea of where to start looking?

Thank you in advance.

Kind regards
Rick

Rick Cogley said:

By the way, I am calling a template module with the macros in it, and that is where I pasted the long code example you have above, replacing the developer id and associate id.

Here is the URL of the template I am calling.
http://www.cogley.info/mt/tmpl/rc-macros.tmpl

It is working for the acronym expansion, fwiw.

Is there a rule as to where to put the code?

Kind regards, and your help is much appreciated.
RIck

Rick Cogley said:

Thank you Brad for your mail about replacing the double-byte chars with ' marks. THat did the trick on the rebuild errors. Duh. I wondered what the funny marks in the macro were...

However, even with the overlib script added at the top of the main index template, I cannot seem to get your amazon macro to work, trying the "tangerine dream" example. What I am seeing is -

Im also interested in .

... with a blank where the overlib hyperlink text should be.

Would you kindly take a look at this, on http://rick.cogley.info/eblog ?

Thanks so much.

Kind regards
Rick

Rick Cogley said:

Thank you Brad for your mail about replacing the double-byte chars with ' marks. THat did the trick on the rebuild errors. Duh. I wondered what the funny marks in the macro were...

However, even with the overlib script added at the top of the main index template, I cannot seem to get your amazon macro to work, trying the "tangerine dream" example. What I am seeing is -

Im also interested in .

... with a blank where the overlib hyperlink text should be.

Would you kindly take a look at this, on http://rick.cogley.info/eblog ?

Thanks so much.

Kind regards
Rick

Norm said:

Hi Brad,

I'm having the same problem Court Kizer was having back in August. Smilies visible at the MTMacroDefine...

I think I have all my paths setup OK and no spelling errors.

Any suggestions?

Rick Cogley said:

Brad -

As a follow on to this, I discovered some interesting things. Perhaps it would help others, so I will post here.

>> I still have the trouble with your demo macro, though, and I'd really appreciate your help on that.

I'm using the latest versions of MT and MTAmazon, but I was having a problem getting any MTAmazon template code to come up in posts. The MTAmazon code was working on the sides of the blog, but not in the posts.

On the MT forum, I found out I needed processtags and mtpostproc to fix this problem of in-post tags not working. So, I found them and did the installs.

However, when I ftp'ed processtags.pl to the plugins directory, and chmod'ed it to 755, right afterwards I uploaded my index template with the process_tags="1" added to the MTEntryBody tag. Then when I rebuilt the site, the rebuild process hung, and I got a 500 error when loading mt.cgi.

I decided to reverse what I had just done, and sure enough, when I delete processtags.pl, mt.cgi loads just fine.

After some more sleuthing, somewhere on the MT forum, someone mentioned adding this -

# use bradchoate::postproc;
if (MT->VERSION =~ m/^2\.2/) {
require bradchoate::postproc;
}

to processtags.pl, and it seems to have solved the problem of mt.cgi hanging. Now I can see the results from the MTAmazon tags in my posts.

However, I don't really understand why it worked. Can you perhaps explain? Maybe it's not really fixed or maybe it's something that will help you add code that will fix this problem I seem to have stumbled on.

Thanks and kind regards,
Rick Cogley
rick.cogley@esolia.co.jp

Rick Cogley said:

Brad,

I seem to have fixed my problem of MTAmazon not displaying tags, but I still have problems with your macro not working.

The way I fixed the MTAmazon in-post tags problem, was to add processtags.pl. However, it caused mt.cgi to crash, and after some searching, somewhere on the MT forum, someone mentioned adding this -

# use bradchoate::postproc;
if (MT->VERSION =~ m/^2\.2/) {
require bradchoate::postproc;
}

to processtags.pl, and this seems to have solved the problem. Now I can see the results from the MTAmazon tags in my posts.

However, I don't really understand why it worked. Can you possibly explain? Maybe it's not really fixed.

Kind regards
Rick Cogley
rick.cogley@esolia.co.jp

Tom said:

I installed the MTMacro plugin in my template and it works like a dream, my plan was to use the implementation to automate the entry of text for the Geourl plugin for MT. Unfortunately both plugins run when the entry is rebuilt and it seems that the geourl plugin is dependent on text being in the post prior to the rebuild. My implementation plan was to use the macro plugin to add the [[[lat]]] [[[long]]] text based on my location at the time of the post and have the geoulr plugin read that data. The dependency has got me stumped. Anyone have any ideas? Details about the Geourl plugin can be found at geourl.org

Alyssa said:

I installed MTMacros and set it up to handle emoticons/smilies... and get this error:

"Building entry 'something' failed: Build error in template 'Individual Entry Archive': Error in tag: You did not specify the type of macro."

What am I doing wrong?? Do I have to specify a macro type in some way not covered in your documentation?? I've put all the macro definitions in a module, called Emoticons, and call it with the tag in my templates. Each macro definition looks like this:

Help!!

Thanks,
Alyssa

Alyssa said:

Eek... the code didn't show up... I'll try again:

In the error, I'm getting an error in the tag:

I'm calling the Emoticons module with this tag:

Each macro definition looks like this:

Alyssa said:

Okay, I can't get it to show up... but I'd be incredibly grateful if you could email me or something and help me get this fixed!! Thanks!

Rizwan said:

Helpage!

I toss



height="12" width="12"
alt="red_mana" />

into my index php.

and in a blog i put !R

... and it doesnt replace.

I used the Amazon script that was recommended and it still didnt replace.

Where are we to put the macro tags?

Rizwan said:

Gah, it was macroapply

Next question, I get
"Build error in template 'Main Index': Error in tag: Error in tag: Error building macro tag amazon: Error in tag: You used without a search string.
"
when using your sample amazon script (with my affil code and dev code) and the sample html included... any idea why?

Rizwan said:

Im also interested in (open)amazon keyword=tangerine dream(close)some TD music(open)/amazon(close) results in

Build error in template 'Main Index': Error in tag: Error in tag: Error building macro tag amazon: Error in tag: You used without a search string.


followed by a string of
MT::App::CMS=HASH(0x173dda0) Use of uninitialized value in substitution (s///) at c:\inetpub\wwwroot\domains\GROUPN~1\users\rizwank\PUBLIC~1\GEEKYM~1\blogcgi\extlib/bradchoate/macros.pm line 116.

Help please!

Fil said:

Rizwan,
I too am getting that error. I stripped down the code and made it work without the "overlib" references.





" title="Buy now at amazon.com-- only !" " align="left" border="0" hspace="5" />


Amazon Price: ">



" title="Buy now at amazon.com-- only !" " align="left" border="0" hspace="5" />
Amazon Price: ">


You might give that a try, but I'd like it to work the way Brad has it on his documentation page.

Fil said:

Whoops, NM.
Brad filters out the "code" html tags so you cant see all the code.
Email me and I'll help you out with that.

Gert said:

Hi!

I'm trying for quite some time now to change the img-tags in my archivefiles into url-tags (to cut back on traffic).

See here for an example: http://cooliosbabes.flabber.nl/templates/example.txt

I can't seem te get the right expression to use for MTMacroDefine.

Can somebody please help me?

Jason said:

I've been pulling my hair out the last couple of hours trying to get this to work for the sample Amazon macro (which I modified for my devtoken and associate id of course). I kept getting an error when rebuilding, related to my amazon macro.

I finally tracked it down to the MTIfNotEmpty tag. You must have the IfEmpty plugin installed to use these tags.

sabrina said:

Whoa. I got this working in like five minutes, including the time to scp the zipfile to my hosting provider. Seriously, this is beautiful, exactly what I was looking for.

Rizwan, I got one of those errors with my first attempt at expanding a macro and I traced it back to the regex I'd supplied -- I had a typo and also forgot the trailing / mark. Maybe you did something similar?

cheers,
--sabrina :)

Michelle said:

I've installed MTAmazon and MTMacros successfully, but I'm having a problem with the Amazon macro. Some of the results returned have apostrophes, which causes overlib to choke. Any ideas on how to fix this would be welcome.

Thanks for the great plugins! When it does work the results look great!

HiBC,
I need yr help. Its very simple.. I can't seem to make ne of the plugins work. The HTML output just shows a last half of the Tag
Eg
Adding this on the template

and

On rebuilding the file the html source shows

I am using W2k, Apache 1.3.26, Perl 5.006, Mod_perl 1.25

I posted on MT Forums here
http://www.movabletype.org/support/index.php?act=ST&f=10&t=21068&s=49b5b8453bbd0c63186595323a5e1b96
but haven't found ne volunteer yet. Kindly help.

I tried the Mod perl tip u mentioned above bu it too is giving errors
===
[Tue Jun 03 01:10:24 2003] [error] c:\mt-modperl.pl did not return a true v
at (eval 4) line 1.

Syntax error on line 1070 of /usr/conf/httpd-php423.conf:
c:\mt-modperl.pl did not return a true value at (eval 4) line 1.

Note the errors or messages above, and press the key to exit. 26...
===
I tried changing every type of paths both relative and other... but always see this eror on starting Apache

Adding this on the template

[BracketsS]MTMacroDefine name="smile" string=":)"[BracketsC] [BracketsS]img src="smile.gif" alt="smile"[BracketsC] [BracketsS]/MTMacroDefine[BracketsC]
and
[BracketsS]$MTEntryBody apply_macros="1"$[BracketsC]

On rebuilding the file the html source shows

[BracketsS]img src="smile.gif" alt="smile"[BracketsC] [BracketsS]/MTMacroDefine[BracketsC]

tarun said:

One thing I noticed with you amazon example is that if I want to collect links via the Collect plugin, those that are created by the Macro are not collected, any thoughts on why...

Lacy said:

Hi Brad! I've utilized several of your plugins on my site and they work like a charm! My fav is the MT Macro one, which allows me to autolink/auto tag frequently used text and images.

I've implemented MTAmazon in a sideblog using the overlib javascript as well -- and it works great. (see http://www.silverberry.org) However, I'm trying to implement the Amazon linking you've described in this post on MT Macro and cannot get it to work. I've created a blog for testing purposes -- and here's what I'm ending up with. I'm not quite sure what the problem is. I have the apply macros and process tags within the MTEntry Body tag -- but it still won't process it into the overlib. I've worked on it for several days now and can't seem to make any progress. Any thoughts??

You can see the test site for this code at http://www.silverberry.org/StaticPages/amazonmacro.php

Lacy said:

Hi Brad! I've utilized several of your plugins on my site and they work like a charm! My fav is the MT Macro one, which allows me to autolink/auto tag frequently used text and images.

I've implemented MTAmazon in a sideblog using the overlib javascript as well -- and it works great. (see http://www.silverberry.org) However, I'm trying to implement the Amazon linking you've described in this post on MT Macro and cannot get it to work. I've created a blog for testing purposes -- and here's what I'm ending up with. I'm not quite sure what the problem is. I have the apply macros and process tags within the MTEntry Body tag -- but it still won't process it into the overlib. I've worked on it for several days now and can't seem to make any progress. Any thoughts??

You can see the test site for this code at http://www.silverberry.org/StaticPages/amazonmacro.php

Sarah said:

Hi, I'm trying to get the Macro to work with smilies, and I'm really struggling. I keep getting this error:

Building entry 'BLANK' failed: Build error in template 'Individual Entry Archive': Error in tag: You did not specify a name for your macro.

I'm not sure what the "You did not specify a name for your macro." means. Any help would be much appreciated.

T-Square said:

I am trying to implement this for the MTAmazon functunality. It is working...kind of.

It only searches books. I put in type="dvd" and it still only searches books.

Any idea what I am doing wrong.

T-Square said:

Scratch that...five minutes after I posted I found the problem.

Now I have another issue. Since adding this in I am getting funky characters on my entries

(example) Read More » (/example)

Any ideas?

About

This article was published on August 12, 2002 2:34 PM.

The article previously posted was Touch of Hope.

The next article is Not a good day for security.

Many more can be found on the home page or by looking through the archives.

Powered by Movable Type