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.

SmartStuff

edited January 2006 in Vanilla 1.0 Help
http://www.developer7.org/smartstuff/ Smart quotes and other niceties. A few bugs atm, but that'll be sorted out.

Comments

  • MarkMark Vanilla Staff
    Neato!
  • That does transition very nicely.
  • edited January 2006
    Thanks :). I'll work on the newline bug "today" (just kidding :P).

    Edit: Since this'd need to be ideally integrated with Text, HTML, Markdown etc. instead of being a separate one, all I'd need to do is do like

    class BBCodeFormatter extends BBCodeFormatter {
    function Parse($String) {
    this->Parse($String);
    // ... do stuff
    }
    }
    Yeah?
  • ALERT! IT NOW INTEGRATES WITH BBCODE AND MARKDOWN, TEXT AND HTML WILL BE EASY TO DO!!!!!! see the site ;)
  • do you have a test login?
  • not atm, it's at an ERROR atm, i'm trying to fix it
  • just register anyway, i'll activate you
  • Okay, implode() is giving me bad arguments, but I'm doing nothing wrong, here's that peice of code:

    ...
    $String = str_replace("\n", '
    ' . "\n", $String);
    $StrArr = explode(' ', $String);
    $StrArr = array_shift($StrArr);
    $String = implode(' ', $StrArr);
    return $String;
    }
    ...
  • Eh, the code messed up on the first line but still, you can see it
  •       $String = str_replace("\n", '<br />' . "\n", $String);
    $StrArr = explode(' ', $String);
    $StrArr = array_shift($StrArr);
    $String = implode(' ', $StrArr);
    return $String;
    }
This discussion has been closed.