PHPBB3-14844 - BBcode on style inherit from prosilver

Discuss requests for comments/changes posted in the Issue Tracker for the development of phpBB. Current releases are 3.2/Rhea and 3.3/Proteus.
skouat
Registered User
Posts: 13
Joined: Tue Mar 01, 2011 11:19 pm

Re: PHPBB3-14844 - BBcode on style inherit from prosilver

Post by skouat »

Hi,
Quote from the tracker
Crizzo wrote:Strong/bold do not only change the look, but give more weight to the word.
hanakin wrote:Crizzo is correct semantics of the tag matter for SEO.
We know it. That what we say since the beginning.
  • Bold => Text format.
  • Strong => Give weight to the word.
We all agree about this point.

Our disagreement is the fact that you definitely want to use BBCode b as a semantic tag for SEO, and we think this is the wrong way.
So if you really want a BBcode to "hightlight" words in a post, why don't fix it by creating separate BBcode?
One for the text format (bold) and one for SEO (strong).
Doing this makes more sense than using the b BBcode as a semantic tag for SEO, and we will match with the HTML usage (eg: http://www.html-5-tutorial.com/strong-a ... ements.htm)

User avatar
hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 968
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Re: PHPBB3-14844 - BBcode on style inherit from prosilver

Post by hanakin »

That's a completely different topic of discussion. Provide a use case where you would ever bold something that should not be weighted?
Donations welcome via Paypal Image

cabot
Registered User
Posts: 8
Joined: Sun Jun 02, 2013 11:15 am

Re: PHPBB3-14844 - BBcode on style inherit from prosilver

Post by cabot »

All that is important is usually displayed in bold and/or underlined but all that is in bold is not systematically important. You can use bold to highlight a word but that's not why it should be considered as really important, especially for screen readers (accessibility) and search engines (SEO).

The strong element
w3c wrote:The strong element represents strong importance, seriousness, or urgency for its contents.
The b element
w3c wrote:The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede.

User avatar
MattF
Extension Customisations
Extension Customisations
Posts: 675
Joined: Mon Mar 08, 2010 9:18 am

Re: PHPBB3-14844 - BBcode on style inherit from prosilver

Post by MattF »

Making text bold and colored works just fine.

The usage is just fine too. Using span tags would be wrong. There is only a case for using b and i instead of strong and em, both of which are splitting hairs.

We are forum software. We can not predict what a user will be using bold or italics for in the context of their posts, ie: to enhance styling or to convey meaning.

However, strong is semantic and describes the text it surrounds as having more meaning (just as em is used to describe more emphasis). Semantics are important as this can affect, for example, accessibility and disabled people who use other means to experience the web. A blind person's web browser will handle the strong tag, and convey the added strength of the text to the reader...it might not handle the b tag, a span tag or CSS.
Has an irascible disposition.

Mazeltof
Registered User
Posts: 2
Joined: Mon Oct 31, 2016 3:21 pm

Re: PHPBB3-14844 - BBcode on style inherit from prosilver

Post by Mazeltof »

First, all my apologies for my English, I use a translator.
VSE wrote: Making text bold and colored works just fine.
Not exactly, at least not for the forum description on an inherited style.

Jester-fr
Registered User
Posts: 6
Joined: Sun Oct 30, 2016 2:19 pm

Re: PHPBB3-14844 - BBcode on style inherit from prosilver

Post by Jester-fr »

VSE, we don't talk about coloring or anything else...

Everythings is explained here :
viewtopic.php?f=126&t=50486#p296436
viewtopic.php?f=126&t=50486#p296451

In prosilver case :
BBcode "b" is returning a : <span style="font-weight: bold">

In prosilver child styles :
BBcode "b" is returning a strong span.

See the captures on the Tracker ticket ;)

User avatar
MattF
Extension Customisations
Extension Customisations
Posts: 675
Joined: Mon Mar 08, 2010 9:18 am

Re: PHPBB3-14844 - BBcode on style inherit from prosilver

Post by MattF »

You do realize all of this may go away with phpBB 3.2 which is nearing release?

It's also because the old (and deprecated) bbcode engine is:
https://github.com/phpbb/phpbb/blob/3.1 ... e.php#L426

And your 3rd party stles are using:
https://github.com/phpbb/phpbb/blob/3.1 ... e.html#L21
Has an irascible disposition.

skouat
Registered User
Posts: 13
Joined: Tue Mar 01, 2011 11:19 pm

Re: PHPBB3-14844 - BBcode on style inherit from prosilver

Post by skouat »

Guys!

Have you take only 5 minutes to make tests?
Please, read the first post of this topic and... Damn! Install a board (3.1 or 3.2 as you wish), edit the description of a forum with the following text

Code: Select all

color inside b
[b][color=#FF0000]Description of your first forum.[/color][/b]
b inside color
[color=#FF0000][b]Description of your first forum.[/b][/color]
Create a inherited style and take a look on forum description and the code returned by phpBB.

Cheers.

User avatar
hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 968
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Re: PHPBB3-14844 - BBcode on style inherit from prosilver

Post by hanakin »

I am not arguing anything about the fact that there are issues. I am simply saying that we will be keeping the strong element and the em element. This is not likely to ever change as its more semantic. I have yet to see a compelling use case for why you would ever want something to be bold but not weighted. There is no disadvantage to weighting something when its bold unless you do not understand the concept of what bold means. Quoting w3c does nothing for your sake as the b & i elements are not really used anymore. The descriptions they are using are an attempt to redefine them.

As for the other issues and these are seperate issue of what is getting returned, bottom line its not an issue with the html or css, but rather the template engine itself possibly this line

https://github.com/phpbb/phpbb/blame/3. ... e.php#L474

can shed some light

Which basically checks if it has set the template values from the file and if not it uses the hardcoded function. It maybe there is no call to load the template file for bbcodes when using codes outside of a post. Therefore according to this line it would use the hard coded function.

This functionality definitely needs tweaked in light of a two location of bbcodes (DB & HTML file) as opposed to this extra function.
Donations welcome via Paypal Image

cabot
Registered User
Posts: 8
Joined: Sun Jun 02, 2013 11:15 am

Re: PHPBB3-14844 - BBcode on style inherit from prosilver

Post by cabot »

Not only outside of a post but everywhere those BBcodes are used, even in a post.
Except for a style which inherit the parent bbcode.html file.

This is bold text in span as declared in bbcode.php, not text in strong tag as it would be according to bbcode.html.

Post Reply