Editor & BB Code Manager

Editor & BB Code Manager 2.0.1 Patch Level 1

No permission to download
I've got a user who for some reason created thousands of old posts using the Courier font, which XF by default seems to render as Courier New. But after installing this addon, the Courier tags are just missing from all those posts and the font is defaulting to whatever - something that's not monospace and all his columns no longer line up. When I disable the addon, you can see the Courier tags again. Is there any way I can have all those old Courier tags automatically rendered as Courier New again?

I'm by no means an expert, but I did a little experimenting. I added a font per katsulynx's instructions here and it seems to work. I can't discern a difference between Courier New and Courier, so they may just both be displaying Courier New, but both are available to select.

DLRQ3QB.png
 
I'm by no means an expert, but I did a little experimenting. I added a font per katsulynx's instructions here and it seems to work. I can't discern a difference between Courier New and Courier, so they may just both be displaying Courier New, but both are available to select.

The problem isn't adding the courier font to new threads and posts, I can do that; and you're right, when I do, the courier looks exactly like the courier- new to me, the same as it did before using the addon. The problem is that after enabling the addon all the text in those old threads that used courier no longer show as courier or courier new - the courier tags look to have been stripped when you look at those threads in the bbcode editor. They're just not there. Creating a new Courier font - either clientside or serverside - does nothing to change that. Anyway, thanks for the reply.

EDIT:
Here's an example, to show what I mean. Here's a snippet of text and code with the addon disabled:

[FONT=courier][COLOR=blue][B][U]GENERAL INFORMATION[/U][/B]

This is the same line after the addon is enabled (no edits):

[COLOR=blue][B][U]GENERAL INFORMATION[/U][/B]

See how in the second example the font code is just missing?
 
Last edited:
The problem isn't adding the courier font to new threads and posts, I can do that; and you're right, when I do, the courier looks exactly like the courier- new to me, the same as it did before using the addon. The problem is that after enabling the addon all the text in those old threads that used courier no longer show as courier or courier new - the courier tags look to have been stripped when you look at those threads in the bbcode editor. They're just not there. Creating a new Courier font - either clientside or serverside - does nothing to change that. Anyway, thanks for the reply.

EDIT:
Here's an example, to show what I mean. Here's a snippet of text and code with the addon disabled:

[FONT=courier][COLOR=blue][B][U]GENERAL INFORMATION[/U][/B]

This is the same line after the addon is enabled (no edits):

[COLOR=blue][B][U]GENERAL INFORMATION[/U][/B]

See how in the second example the font code is just missing?

Hmm. I wonder if I found what it might be, actually. I just did a quick test, and it appears the font BBcodes are case-sensitive.

After I added 'Courier' as a font:

[font=Courier]This shows Courier.[/font]
[font = courier]This shows default font.[/font]

Edit: Actually, even in plain-text tags, it appears to just hide codes that are the wrong case.

To avoid having to do a big find and replace query, I was able to add a lower-case 'courier' which is otherwise the same. On my forum, I don't have the pre-existing codes to check against, unfortunately, but it's hopefully an easy thing for you to test.
 
Aha! You're right. I had to create the font with the font family name in lowercase. Awesome. Thanks for taking a look for me and getting to the bottom of it. Much appreciated. (y)
 
Aha! You're right. I had to create the font with the font family name in lowercase. Awesome. Thanks for taking a look for me and getting to the bottom of it. Much appreciated. (y)

Awesome, and no problem. As I've said, I'm no expert, but problem-solving is a good way to learn, so it's a win-win. ;)
 
How do you delete dropdowns? Every time I try I get an error saying that the requested page can't be found.

Seems like I've completely forgotten to implement that functionality. I've implemented it properly for the next update.

When I use the template, I get blank lines
View attachment 164840View attachment 164841

I think I've fixed that for the next version.

Hmm. I wonder if I found what it might be, actually. I just did a quick test, and it appears the font BBcodes are case-sensitive.

That is actually a bug. I've fixed it for the next update, thanks for bringing it to my attention.
 
Unfortunately this is not working with the html code for an iframe

I use the parsehtml code for iframes on my forum. BBcodes inside the parsehtml tags can mess it up, and loose HTML tags can terminate it early.

I've taken the actual URL out, but this is a simple iframe that currently works on my forum:

[parsehtml]<iframe src="URL" width="730" height="900" scrolling="no" align="center" frameborder="0" ></iframe>[/parsehtml]

Do you have a sample of an iframe that isn't working? What's displaying when you try?
 
@katsulynx

I see that a user/usergroup who is not given the permission to use HTML bbcode can still post it if they know how to append [parsehtml][/parsehtml] in their URL.

Is this by design or have i missed something?

My objective is to allow only a specific usergroup to use [parsehtml][/parsehtml] . How can i achieve this?
 
I see that a user/usergroup who is not given the permission to use HTML bbcode can still post it if they know how to append [parsehtml][/parsehtml] in their URL.

Sending Posts in XF is post only. I don't see how you would be able to append anything to the URL? Besides that, BB Code is rendered on display requests, so if someone had the permission to use parsehtml and that permission is later on revoked, the BB Code stops working whereever he used it.
 
Sending Posts in XF is post only. I don't see how you would be able to append anything to the URL?
what i meant to say was a user can use [parseHTML]embed code[/parseHTML] regardless of whether he's given permission explicitly or not... if he happens to know [parseHTML][/parseHTML] he can use it..

i just created a dummy account and posted a message with [parseHTML]embed code[/parseHTML] and voila.. it is embedded in his message.

Besides that, BB Code is rendered on display requests, so if someone had the permission to use parsehtml and that permission is later on revoked, the BB Code stops working whereever he used it.
Where exactly can se set the permission for this BBcode explicitly?

i can see only this
Screen Shot 2018-03-06 at 10.18.28 AM.webp
 
what i meant to say was a user can use [parseHTML]embed code[/parseHTML] regardless of whether he's given permission explicitly or not... if he happens to know [parseHTML][/parseHTML] he can use it..

Ah, now I see what you mean. You indeed seem to be right. There is a check in place that should work as described above, but it seems to handwave all usage of parseHtml indeed, usage permission set to yes or no. I'll investigate.

Edit: I've fixed that for the next version. Thanks for bringing it to my attention.
 
Last edited:
When it's done. This is a free add-on, and I can only work in my free time on it only, so it'll likely take a few more weeks.
 
Looks promising, we'll stay subscribed and check back. Thank you and good luck.

Meanwhile, we need something stable to create tables for our members, so the search continues. :)
 
I would like to have private or hidden BB tags so that only certain user groups with permission are able to see the hidden text. And preferably only the certain user groups have permission to use the hidden BB tag. Is this possible with this add-on?
 
I know you're aware of the conflict with ThemeHouse's Giphy addon. I also know you're working on this in your spare time, so I'm trying not to be too bothersome. Is this conflict something you are still looking to overcome in the next patch or two?
 
Back
Top Bottom