[nodebb-plugin-bbcode-to-markdown] phpBB2 BBCode
-
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?