mu.nu - It's mackerel stewed in chocolate!
November 16, 2004
Okay, to add smilies, there are a couple of things you need to do.
First, define your smilies. We use MTMacro to do this. It can a lot of other stuff, but the way we use it for smilies is like this:<MTMacroDefine name="happy" string=":)">You need to put that near the top of each template where you want smilies to work. Then, you wrap the part of the template that actually displays the text in <MTMacroApply> and </MTMacroApply. Our individual entry archive, for example, contains this:
<img src="http://www.mu.nu/Forums/images/smiles/icon_smile.gif" alt=":)">
</MTMacroDefine>
<MTMacroDefine name="sad" string=":(">
<img src="http://www.mu.nu/Forums/images/smiles/icon_sad.gif" alt=":(">
</MTMacroDefine>
<MTMacroDefine name="happy2" string=":-)">
<img src="http://www.mu.nu/Forums/images/smiles/icon_smile.gif" alt=":)">
</MTMacroDefine>
<MTMacroDefine name="grin" string=":D">
<img src="http://www.mu.nu/Forums/images/smiles/icon_biggrin.gif" alt=":D">
</MTMacroDefine>
<MTMacroDefine name="razz1" string=":p">
<img src="http://www.mu.nu/Forums/images/smiles/icon_razz.gif" alt=":p">
</MTMacroDefine>
<MTMacroDefine name="razz2" string=":-p">
<img src="http://www.mu.nu/Forums/images/smiles/icon_razz.gif" alt=":-p">
</MTMacroDefine>
<MTMacroDefine name="razz3" string=":P">
<img src="http://www.mu.nu/Forums/images/smiles/icon_razz.gif" alt=":P">
</MTMacroDefine>
<MTMacroDefine name="razz4" string=":-P">
<img src="http://www.mu.nu/Forums/images/smiles/icon_razz.gif" alt=":-P">
</MTMacroDefine>
<MTMacroDefine name="wink" string=";)">
<img src="http://www.mu.nu/Forums/images/smiles/icon_wink.gif" alt=";)">
</MTMacroDefine>
<MTMacroApply>Our main template... Well almost the whole thing is contained inside those two.
<MTComments>
<div class="comments-body">
<$MTCommentBody$>
<span class="comments-post">Posted by: <$MTCommentAuthorLink spam_protect="1"$> at <$MTCommentDate$></span>
</div>
</MTComments>
</MTMacroApply>
Posted by: Pixy Misa at 03:06 PM | Comments (21) | Add Comment | Trackbacks (Suck)
Posted by: Daniel @ at November 16, 2004 03:17 PM
Posted by: Daniel @ at November 16, 2004 03:17 PM
Posted by: Pixy Misa @ at November 16, 2004 03:22 PM
Posted by: Nick Queen @ at November 16, 2004 04:58 PM
Do you have a list of new MuNuvians to add to the blogrolls?
Posted by: Madfish Willie @ at November 16, 2004 06:49 PM
comment@ alesemarshall.com
comment@google.com
comment@google.com
comment@ priscilla-chan.net
comment@ business-phone-america.com
comment@ freezieice.com
comment@ subspace2.com
comment@ strikerforsheriff.com
comment@ellione.com
comment@ insightbusinessmedia.com
comment@ artistnano.com
comment@twig.info
comment@pri-fix.com
comment@mseed.com
comment@ performanceportfolio.com
comment@ saltcreek.org
comment@ blackwoodjewelry.com
comment@kyrosgp6.com
comment@tv-4s.com
comment@ sexmolcakorea.com
comment@ bigplainsgolf.com
comment@ petsplussupplies.com
comment@ theenglandfamily.com
comment@ indigo-disco.com
comment@ asiansexgallery.net
comment@ thewirelessc.com
comment@ hempxchange.org
comment@ cavalierreferrals.com
comment@ saltcreek.org
comment@ schiresdesign.com
comment@ pemudaselangor.com
comment@ 24diamondnews.com
comment@ pirated-downloads.com
comment@ blackwoodjewelry.com
comment@ lesbian-teen-galleries.net
comment@ perupeace.net
comment@1lance.com
comment@ orthoeauclaire.com
comment@ petsplussupplies.com
comment@ addictions2002.com
comment@jobs2003.org
comment@ teenfilmxxx.com
comment@sex-wax.com
comment@ flavapill.com
comment@ dateline1-900.com
comment@ doesmywebsitesuck.com
comment@ backpackandstuffedtoys.com
comment@mseed.com
comment@almarco.net
comment@ churchill-weavers.com
comment@ lesbian-teen-galleries.net
comment@wdelta.com
comment@ adventuresinageing.org
comment@ nordicvoices.com
comment@ callgirlsinternational.com
comment@cicprep.com
comment@ addictions2002.com
comment@ orthoeauclaire.com
comment@ betteroptions.org
comment@udygroup.com
comment@ strikerforsheriff.com
comment@kmexsi.com
comment@pri-fix.com
comment@ headingtonforum.com
comment@ oasysgroup.com
comment@twig.info
comment@almarco.net
comment@ howtokegel.com
comment@hvaf.com
comment@ monterey-anaheimclinics.com
comment@ insightbusinessmedia.com
comment@ oughterard-tourism.com
comment@1lance.com
comment@ellione.com
comment@kmexsi.com
comment@ indigo-disco.com
I was gonna black list it or something but I didn't want to screw anything up.
Posted by: M 0.o kie @ at November 16, 2004 11:51 PM

De-spamming begins... Now.
Posted by: Pixy Misa @ at November 17, 2004 12:09 AM
Posted by: M 0.o kie @ at November 17, 2004 12:41 AM
and "yikes"... :o
and "huh?"... :/
and "what,meworry?"... :B
Posted by: Tuning Spork @ at November 17, 2004 01:59 AM
Posted by: click here @ at March 12, 2005 09:30 AM
I put all the Macros in a separate file so that it could be loaded in multiple places. I can see that it is being included OK but nothing happens.
Also, should the icons be given a size (in the image tag) to help dumb browsers....
Posted by: Ozguru @ at May 30, 2005 01:18 PM
That works with both the <MTMacroApply> and also the apply_macros="1" flag.
Posted by: Ozguru @ at May 30, 2005 01:49 PM
Processing 0.0, elapsed 0.0148 seconds.
22 queries taking 0.0109 seconds, 35 records returned.
Page size 15 kb.
Powered by Minx 0.8 beta.