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.
Options

Uber Input Formatter

edited September 2005 in Vanilla 1.0 Help
Hello World, Some crazy members of my forum have asked me to roll all of their favourite input formats into one. i can see thier point if the want smilies and html in the same post, but they also want bbcode + html + smilies in the same post. So.. my question is, how do I get the HTML formatetr into the current smilies enabled BBCodeFormatter? I have tried a few things, but I get errors, or it just does not format. Thanks.

Comments

  • Options
    IS there some way to include another formatter into an existing one?

    Like this line to include it on the page.
    $Context->StringManipulator->AddManipulator("Html", $HtmlFormatter); ?>

    Can we include the BBCode formatter in the same filter? Even if it is a different extension?
  • Options
    disregard. I have the answer. I will post it up if any one wants it. Otherwise... stupid post.
  • Options

    Hey if you figured out how to put mash everything into one to make it easier for members I'd love to read about it.

  • Options
    lechlech Chicagoland
    the "formatted as" type row in the database tells vanilla which formatter should be used to translate the input. Basically, you could mash ALL of the formatters together, however you'll have to create some intelligent switches along the line to say "ok this is bbcode, stop treating it as html" and so on. I'd like to get my hands on this as well :D
  • Options
    Well... now I just have 'text' input and 'uber' input. Uber input will let you put HTML, BBCode and Smilies all in the same post,, or, for simplicity, all under the same input format. This does not include Markdown for obvious reasons. I am finisihing it off, but it does work. I'll post it up here in a few hours if you don't mind (should be working as I wrie this :P )
  • Options
    @lech: I have to tested this yet, but I will.
  • Options
    I just nested BBCode and a smile in some HTML and it worked.
  • Options
    It does support RAW HTML atm. I am planning on making it restrictive like the html formatter extension. easy done.
  • Options
    and html inside bbcode works well. I have also tested deeply nested tags (of different sorts) and it is all working well. I should get back to work, but I will post it all up this evening.
This discussion has been closed.