[nodebb-plugin-bbcode-to-markdown] phpBB2 BBCode
-
I'm using this plugin along with the phpBB2 converter to output markdown instead of BBCode. You could activate this plugin if your users are used to typing stuff like
[b]bold text[/b]
Get it on GitHub
npm install nodebb-plugin-vbcode-to-markdown
-
@psychobunny I'm having a few issues with the quote aspect of this plugin, everything else is fine. I'll outline the issue, the plugin doesn't insert the
@user said
before applying the quote. So in order to do that, while still in phpbb I need to do a find/replace on[quote=user]
to replace that with@user said
, easy enough, the next issue comes in when applying the>
of the actual quote, as it doesn't pick up on new lines, so more often than not,only the first paragraph of a quote is actually quoted. Confusing.So, how would you recommend I go about attacking this one? As I would like the
@user said
, but would also like the entire thing to be quoted, not just the first paragraph. -
Hmm, I'd have to look into it. It's a bit of a pain in the ass fixing regular expression for bbcode but I'll look into it
-
Okay updated to 0.0.4, should be able to parse multiple quote blocks properly, and @mentions as well. I have a feeling I have a different kind of syntax as you though. I noticed that my version of phpBB has some weird endings that look like this:
[b:1pokqsjf][color=#FFBF00:1pokqsjf]Some stuff[/color:1pokqsjf][/b:1pokqsjf]
I have no idea why they added that random string
pokqsjf
maybe some derpy way of handling nesting. Not sure if yours has the same problem too. Are you phpBB2 or phpBB3? Wonder if they changed that syntax at all, I would guess not, so that it would be easier to upgrade from 2 to 3. -
@psychobunny PHPBB uses a weird "security" feature where each post that contains valid BBcode gets it's own bbcode_uid, this is a random 8 character string that differs for each post. I had to disable BBcode from Post Settings to stop this bbcode_uid from being applied to posts. It's an odd "feature", but they seem quite proud of it. I'll give your plugin a go and let you know how it went.
-
@psychobunny PHPBB uses a weird "security" feature where each post that contains valid BBcode gets it's own bbcode_uid, this is a random 8 character string that differs for each post. I had to disable BBcode from Post Settings to stop this bbcode_uid from being applied to posts. It's an odd "feature", but they seem quite proud of it. I'll give your plugin a go and let you know how it went.
-
Ok, worked as expected, which is great. However a slight caveat I've had to tackle and should've included in my example is phpbb adds a quote before & after the username.
I've had to remove those in phpmyadmin. Will flush the db and try again. (Unless Redis has some magic find/replace tool that I don't know about.)
-
Just updated to 0.0.5, my version of phpBB doesn't use quotes, so I added a conditional search so it works for both with or without quotes
-
Hi !
I've tried this on my forum but it seems to work only for the quote ^^"
Do you have an idea why ?
see here : http://abm-community.co/topic/17/test#103
-
hmm, this is specifically built for converting phpBB's bbcode for exporters. So if you typed in
[b]bold[/b]
in phpBB, it actually converts it to look something like[b:32940324]bold[/b32940324]
(something like that). This is the pattern I'm looking for in this plugin. You might have better luck trying my other plugin (vbcode-to-markdown) -
@psychobunny said:
hmm, this is specifically built for converting phpBB's bbcode for exporters. So if you typed in
[b]bold[/b]
in phpBB, it actually converts it to look something like[b:32940324]bold[/b32940324]
(something like that). This is the pattern I'm looking for in this plugin. You might have better luck trying my other plugin (vbcode-to-markdown)it will transform bbcode to markdown if a user make a post with bbcode ?
-
Use this one instead
-
@psychobunny said:
Use this one instead
it doesn't seem to work really well too. I may try to make a plugin
-
OK Let me know how it goes, I can lend you a hand. These plugins were for migrating phpBB/vB to NodeBB - not for actually using bbcode in practice.
Of some interest, look at this plugin for an example on how to add buttons to the composer
-
@psychobunny said:
OK Let me know how it goes, I can lend you a hand. These plugins were for migrating phpBB/vB to NodeBB - not for actually using bbcode in practice.
Of some interest, look at this plugin for an example on how to add buttons to the composer
Ok, thx.
The members ask me to make it easier to use smileys too. Something like a smiley "picker" (like phpbb forums) you can open when writing your post
-
Does this support being able to center or otherwise align things things as well? Like [center] or [right]?
Edit: after looking at the git, it apparently doesn't. Can that support be put in at a future date?