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.
The Better BBCode Extension
This discussion has been closed.
Comments
If you set open_basedir, it need to include the path to Pear in it.
If you happen to be a Regular Expression Mastah, you can make the syntax pretty much anything you want. The tag definition is pretty straightforward, and there is a preparse function that runs a bunch of regexes for situations when the HTML syntax doesn't match the bbcode tag for tag.
I'm strongly considering adding a postparse function to make changes to the HTML after it's been parsed (necessary for the Youtube tag among others). Alternately, you can just do that in the default.php file after the parsed string is returned.
Because in my case with my initial setting, it fails to open it I have a white page instead of the forum.
then reply with just anything you get this: http://i21.photobucket.com/albums/b267/bjrn/betterbbcode.png
And a feature request, with "normal" BBCode (in phpBB), you can do things like this:
[quote="[url=http://www.example.com/an_article_about_bbcode.html]Bob[/url]"]You can do all sorts of crazy things with BBCode.[/quote]
Which would show up as
Bob wrote: I don't know how hard this would be to make, but I'd like to see this (if possible).
I'm trying to make a [thumb] addition to this, but I think I'm making the extension explode
Basically, you put [thumb] around an image url and it resizes it and gives a link to the full size. Its really handy when you have users posting a lot of say game screenshots and it doesn't break the whole forum.
This is the code I was trying
'thumb' => array( 'htmlopen' => 'a', 'allowed' => 'none^img', 'attributes' => array('url' => 'href=%2$s%1$s%2$s', 't' => 'target=%2$s%1$s%2$s'), 'htmlopen' => 'img', 'htmlclose' => '', 'allowed' => 'none', 'attributes' => array('img' => 'src=%2$s%1$s%2$s', 'w' => 'width=320', 'h' => 'height=240'), 'htmlclose' => 'a'),
Does it look like it makes sense?
It seems to not work, and I'm not sure if its the extension or my server but makes the page somewhat unresponsive.
Also, are there any fixes for the [url] tag? If a user say just does [url]test.com[/url] the link will end up being in reality like 'http://yourdomain.com/forum/test.com instead of just test.com
those ? will break the regex. You see that "!isU" in there? the U is for ungreedy, which is exactly what adding ? after * or + does. if the ungreedy modifier is on, then ? makes those .* and .+ greedy instead. bad news.
at least i'm pretty sure that's how U works
Why hasn't the list bug been fixed? I thought BBCode is a good way to make users who come from vb, phpbb, invision, ... feel more comfortable with vanilla. Don't you think so? Or what syntax do you support within your vanilla boards? Text and html only?
At least the ReadMe.txt states so. I'm really interested in getting this list bug fixed.
Can we expect an update to BetterBBCode extension anytime soon? Or is this extension not supported anymore?
Cheers
Inkscape
Correction: I see he logged in on Nov 3rd.
OK, I'd love to see this changed (I'd like bbcode much better than HTML)