Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Transmogrifier Extension! (0.9.3+ only)
I wanted to write a separate "smilies" extension for 0.9.3, but it became pretty clear that it would serve as a much more general utility to transform any string to any other string, so I renamed it "Transmogrifier" for obvious reasons.
Extension for 0.9.3 revision 196 and above
Extension for 0.9.3 revision 195 and below
It reads replacement strings from ./extensions/Transmogrifier/config.txt, and should be fairly good about ignoring empty lines and whitespace. Any line that starts with a pound sign (#) is considered a comment.
One small annoyance: The following characters ^.[$()|*+?{\ must be escaped with a backslash on the left side of the '==' only. Fixed.
Give it a try!
Does not work on 0.9.2.x!!!!
Extension for 0.9.3 revision 196 and above
Extension for 0.9.3 revision 195 and below
It reads replacement strings from ./extensions/Transmogrifier/config.txt, and should be fairly good about ignoring empty lines and whitespace. Any line that starts with a pound sign (#) is considered a comment.
Give it a try!
Does not work on 0.9.2.x!!!!
0
This discussion has been closed.
Comments
The config file included is mainly an example to teach people the syntax; you can give it whatever paths you want. It only links to 5 emoticons by default anyway:
:) == <img alt=":)" src="./images/emoticons/smile.gif" /> :-) == <img alt=":-)" src="./images/emoticons/smile.gif" /> :( == <img alt=":(" src="./images/emoticons/frown.gif" /> :-( == <img alt=":-(" src="./images/emoticons/frown.gif" /> ;) == <img alt=";)" src="./images/emoticons/wink.gif" /> ;-) == <img alt=";-)" src="./images/emoticons/wink.gif" /> :P == <img alt=":P" src="./images/emoticons/tongue.gif" /> :-P == <img alt=":-P" src="./images/emoticons/tongue.gif" /> :D == <img alt=":D" src="./images/emoticons/biggrin.gif" /> :-D == <img alt=":-D" src="./images/emoticons/biggrin.gif" /> M$ == Microsoft
As you can see, stuff on the left side of the == is transmogrified into the stuff on the right side. I chose '==' because I didn't think it would be used much in common emoticons or HTML.
Also, it's important to note that the replacement only happens when the text is displayed, so the database copy stays clean.
C-uniT == <img alt="Troll" src="http://www.37signals.com/svn/images/37icon-troll-big.gif" />
As far as the rest goes, I have no idea if it's possible to add a string formatter to discussion topics. I bet it is, but I also bet I have no idea how to do it.
I still get the text instead of the image. This is also the case with the Vanillacons extension.