Why does this currency sign BBCODE not work anymore?

Get help developing custom BBCodes or request one.
Bruce Banner
Registered User
Posts: 1338
Joined: Thu Sep 25, 2014 10:36 am

Why does this currency sign BBCODE not work anymore?

Post by Bruce Banner »

BBCode usage

Code: Select all

[currency]{SIMPLETEXT}[/currency]
HTML

Code: Select all

&{SIMPLETEXT};
$ is still valid HTML for the dollar sign, isn't it? So why, when I use this bbcode, is $ the only result I get? The code used to work. I don't get why it's not working now.
Last edited by KevC on Mon May 17, 2021 9:27 am, edited 1 time in total.
Reason: titlee edited
Bruce Banner
Registered User
Posts: 1338
Joined: Thu Sep 25, 2014 10:36 am

Re: Why does this currency sign not work anymore?

Post by Bruce Banner »

currency sign CODE I meant to say in the title.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Why does this currency sign not work anymore?

Post by david63 »

When did it used to work?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
Bruce Banner
Registered User
Posts: 1338
Joined: Thu Sep 25, 2014 10:36 am

Re: Why does this currency sign not work anymore?

Post by Bruce Banner »

david63 wrote: Mon May 17, 2021 7:49 am When did it used to work?
A few years ago. I remember using it on a forum where I could type [currency]dollar[/currency] and the $ would appear.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Why does this currency sign not work anymore?

Post by david63 »

If it was a few years ago then I suspect that it may have something to do with the fact that the BBCode parser has changed and does not handle it.

You will probably need to wait for JoshyPHP to provide a reason/solution.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
Bruce Banner
Registered User
Posts: 1338
Joined: Thu Sep 25, 2014 10:36 am

Re: Why does this currency sign not work anymore?

Post by Bruce Banner »

david63 wrote: Mon May 17, 2021 8:13 am If it was a few years ago then I suspect that it may have something to do with the fact that the BBCode parser has changed and does not handle it.

You will probably need to wait for JoshyPHP to provide a reason/solution.
OK, thanks.
User avatar
EA117
Registered User
Posts: 2158
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Why does this currency sign BBCODE not work anymore?

Post by EA117 »

You're looking for "BBCode trying to display HTML Entities" in general. I believe JoshyPHP did already answer this here. The implication also being it was phpBB 3.1.x or earlier when anyone would have seen it working, for what it's worth.
Bruce Banner
Registered User
Posts: 1338
Joined: Thu Sep 25, 2014 10:36 am

Re: Why does this currency sign BBCODE not work anymore?

Post by Bruce Banner »

EA117 wrote: Mon May 17, 2021 1:36 pm You're looking for "BBCode trying to display HTML Entities" in general. I believe JoshyPHP did already answer this here. The implication also being it was phpBB 3.1.x or earlier when anyone would have seen it working, for what it's worth.
:) Cheers.
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

Re: Why does this currency sign BBCODE not work anymore?

Post by JoshyPHP »

Actually I ended up adding support for disable-output-escaping a while ago, even though it's probably a bad idea to use it. phpBB will complain that it's potentially unsafe.

Code: Select all

<xsl:text disable-output-escaping="yes">&amp;</xsl:text>{SIMPLETEXT};
I wrote the library that handles markup in phpBB 3.2+.
Bruce Banner
Registered User
Posts: 1338
Joined: Thu Sep 25, 2014 10:36 am

Re: Why does this currency sign BBCODE not work anymore?

Post by Bruce Banner »

JoshyPHP wrote: Mon May 17, 2021 4:32 pm Actually I ended up adding support for disable-output-escaping a while ago, even though it's probably a bad idea to use it. phpBB will complain that it's potentially unsafe.

Code: Select all

<xsl:text disable-output-escaping="yes">&amp;</xsl:text>{SIMPLETEXT};
Thanks. Didn't actually give me any safety warnings when I tried that out just now. But it did say I'd constructed the BBCode in an invalid form.

[currency]{SIMPLETEXT}[/currency}

<xsl:text disable-output-escaping="yes">&amp;</xsl:text>{SIMPLETEXT};
User avatar
EA117
Registered User
Posts: 2158
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Why does this currency sign BBCODE not work anymore?

Post by EA117 »

Bruce Banner wrote: Mon May 17, 2021 6:43 pm [currency]{SIMPLETEXT}[/currency}

<xsl:text disable-output-escaping="yes">&amp;</xsl:text>{SIMPLETEXT};
Don't know if you only mis-typed it here in posting this message, but if it was a cut-n-paste, this is indeed invalid. Your closing [/currency] tag has a curly brace instead of a square brace.

phpBB 3.3.4 does give me a warning, with that issue corrected:
phpBB ACP Posting BBCodes wrote:Warning
The BBCode you are trying to add seems unsafe. If the BBCode uses a {TEXT} token in a sensitive context, try using a more restrictive type instead. Only proceed if you understand the risks involved.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Why does this currency sign BBCODE not work anymore?

Post by 3Di »

You might want to have a look to this extension:
https://www.phpbb.com/customise/db/exte ... e_symbols/

Or enable the HTMLEntities plugin using this extension:
viewtopic.php?f=456&t=2523206
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
SpIdErPiGgY
Registered User
Posts: 189
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm
Contact:

Re: Why does this currency sign BBCODE not work anymore?

Post by SpIdErPiGgY »

3Di wrote: Mon May 17, 2021 11:39 pm Or enable the HTMLEntities plugin using this extension:
viewtopic.php?f=456&t=2523206

ⓘ [BETA] Please note: do not install on a live board!
phpBB NL Extension translations, also on request.
--> Click Here: Myarea51secrets.com <--
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Why does this currency sign BBCODE not work anymore?

Post by 3Di »

SpIdErPiGgY wrote: Tue May 18, 2021 12:02 am ...
ⓘ [BETA] Please note: do not install on a live board!
I am the co-author. We use it at The Studio since years. ;)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: Why does this currency sign BBCODE not work anymore?

Post by Mick »

Just curious, you’re in the US and presumably you use a US keyboard?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
Post Reply

Return to “Custom BBCode Development and Requests”