Addons are custom features that you can add to your Vanilla forum. Addons are created by our community of developers and people like you!
These addons are for people who downloaded and set up their own Vanilla forum. Compare your downloaded version with the version requirements on the right.
If your Vanilla forum is hosted at VanillaForums.com, this addon may already be installed there.
We review addons to make sure they are safe and don't cause bugs. An addon is considered to be "Vanilla Approved" once our review process is complete.
| Version | Released |
|---|---|
| v5 | January 2007 |
/plugins folder to install it.by Luke Scammell aka [-Stash-]
If you've ever been annoyed by the way you carefully crafted HTML gets <br />'d to death in Vanilla, this extension is for you! It is an implementation of AutoP by Matthew Mullenweg of WordPress fame. It "fixes" new lines in comments, displaying them as you would expect and using semantic, valid XHTML instead of multiple <br />s all over the place.
As of 2007-09-17, it has been tested and works with the default Vanilla text formatter, BBCodeParser, BetterBBCode, ExtendedTextFormatter, ForcedBBCode, HtmlFormatter, ksesXHTML, Markdown and Textile.
Also, a big THANK YOU goes out to Chuyskywalker for letting me know AutoP existed in the first place!
SirNot's HtmlFormatter has a newline function, enabled by default, which conflicts with AutoP. Please turn this function off by changing line 17 of default.php from:define('HTML_CONVERT_NEWLINES', 1); to: define('HTML_CONVERT_NEWLINES',0);
! Causes double spacing during post previews using BBCode.
+ Can't think of anything off hand....
Download and uncompress the extension files, then upload them to:
/path/to/vanilla/extensions/AutoP/The path to this extension's default.php file should look like this:
/path/to/vanilla/extensions/AutoP/default.phpTo enable the extension you must be logged in with an account that has Administrator privileges. You can enable the extension in Vanilla by clicking on:
Settings > ExtensionsThen tick the checkbox for "AutoP"
AutoP! Calling clean_pre caused errors on the page. I'm not sure how I missed this! Anyway, with some help from AlexL, the clean_pre/code function now works perfectly. If you were waiting for this to be fixed before jumping on the AutoP bandwagon, now's the time!
! The clean_pre function was missing! Added it and also ran the CODE tag through it as well as PRE, as we like to use code and pre interchageably it would seem.
- Removed the // $pee = str_replace( "\n", '', $pee); line as it ruins preformatted text.
+ Added an option to strip all new lines from final HTML output to line 49. It doesn't change how posts look when rendered in the browser and saves a few bytes per comment, but makes the source code harder to read. Off by default, if you want it on, uncomment line 50:
// $pee = str_replace( "\n", '', $pee);- Also removed the page conditions for it showing up to try and get it working with preview post. It seems to work better with the HtmlFormatter 1.7.2 now, but still not BBCode...
Thanks to SkyBoy for pointing out the lack of embed in the $allblocks. I've also added cite and got rid of my hacky little AutoPFix funtion as this is "the right way" to do things.
+ Original release.