News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[3553]Bbcode problem

Started by Am', May 28, 2010, 10:44:52 AM

Previous topic - Next topic

Am'

Hi,

look at this message, bbcodes does not work:

TEST
[/size]

[size=14pt][center]TEST[/center][/size]

while here if it works:

TEST

[center][size=14pt]TEST[/size][/center]

most users of my forum contact me for this problem ...
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Acans

I don't think thats a bug seeing as centre tags normally come first, so than you add your color and your sizing.
"The Book of Arantor, 17:3-5
  And I said unto him, thy database query shalt always be sent by the messenger of $smcFunc
  And $smcFunc shall protect you against injections and evil
  And so it came to pass that mysql_query was declared deprecated and even though he says he is not
  dead yet, the time was soon to come to pass when mysql_query shall be gone and no more

Am'

Quote from: α¢αηѕ on May 28, 2010, 11:23:38 AM
I don't think thats a bug seeing as centre tags normally come first, so than you add your color and your sizing.

yes I know

but novice user do not know that, for them it is a bug

So you really find a solution above ;)
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Adish - (F.L.A.M.E.R)

Quote from: Am' on May 28, 2010, 11:32:58 AM
Quote from: α¢αηѕ on May 28, 2010, 11:23:38 AM
I don't think thats a bug seeing as centre tags normally come first, so than you add your color and your sizing.

yes I know

but novice user do not know that, for them it is a bug

So you really find a solution above ;)

There is no solution for it I suppose. It is the same with PHP coding aswell.

This works:
<center><font size="3">text</font></center>

This will not:
<font size="3"><center>text</center></font>

Am'

beh why it's work perfectly in phpbb, ipb and vbulletin ?

surely there must be a solution :P
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Windy

I think I'm going to agree that it should work, or rather at least parse the tags correctly so the html generates as the user intended even though the browser may not produce the desired result.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

Arantor

Then you will have all kinds of issues with tags not being nested correctly; the whole point is that you can't have block tags inside non block tags, which not only is invalid XHTML, but can produce some very messed up results unintentionally.

Windy

I suppose, but the way it's handled more or less gives the impression that the parser is broken rather it being the fault of the user.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

Arantor

I agree, yet I have no better solution to add to the party.

MultiformeIngegno

Maybe we can add it to mantis and tag it as "2.1"....
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Nao 尚

I guess so.
But I have a bad feeling about that bug... :P
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Am'

اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Nao 尚

#12
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Kindred

#13
I, honestly, do not consider this a bug.

Just because other forum softwares do not subscribe to HTML standards does not mean that we should be breaking them.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

vivid

#14
Hi,

Please see these points about text-formatting:

I formatted my whole topic (color and size).
Then I formatted the second line with different color.
Then I formatted the third line as (code).
Then I formatted the fourth line with different color.

the result is: the formatting after the (code) is destroyed.
and in the last line the bbcode brackets is showed literally.

Plz see the attached pic may be I did not explain obviously.




[color=blue][size=18pt]
bbcode test bbcode test bbcode test bbcode test bbcode test

[color=green]bbcode test bbcode test bbcode test bbcode test bbcode test [/color]

[
code]bbcode test bbcode test bbcode test bbcode test bbcode test [/code]

[
color=brown]bbcode test bbcode test bbcode test bbcode test bbcode test [/color]

bbcode test bbcode test bbcode test bbcode test bbcode test
 
[/size][/color]


تجميل <a href="http://www.arbsb.com" rel="dofollow">طرائف</a>
<a href="http://www.arbsb.com">مجلة الغرائب عرب سبيس </a>

emanuele

#15
SMF version?

Assuming you are using the 2.0, are you using the WYSIWYG editor?

Ah, probably I get what you mean.

You wrote 4 lines, then selected all of them and changed size and color. Then selected line 2 and changed color, selected line 3 and assigned code, selected line 4 and changed color.
Am I right?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Illori

i am not sure if code bbc is supported in the WYSIWYG editor, i think arantor had a post about this before in this board.

emanuele

See my edit.

It happens also withou WYSIWYG, but I don't know if it can be considered a bug...it's a wrong BBCode nesting.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Illori


emanuele

In fact it depends on vivid's answer.
If I understood correctly it's not at all related to the WYSIWYG.

It's just a sequence of operations done with the formatting buttons:
1) write 4 lines of text,
2) select all of them and change size and color using the formatting tools (i.e. the drop down lists, or otherwise put a color and/or size tag around the entire text),
3) select the second line and change the color (same as above with the drop down list, or put a color tag around the second line),
4) select the third line and apply the code tag with the code button (or put code tags around the third line)
5) (optional) select the last line and change color (again with the tool or putting color tags)
It will end up with some tags improperly closed.

The fact is that "block level" tags (code and quote for example) break the formatting applied to the entire post (i.e. those applied at step 2) because the formatting itself is not a block level tag. and the result in that case are some closing tags leftover at the end of the post.

I think is this one.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

ziycon

#20
Anyone any objections with me tagging this one onto https://github.com/SimpleMachines/SMF2.1/issues/1175 as it's similar and around BBCode as well.?

Arantor


ziycon


Arantor


Arantor

As this is on Github, this topic will be closed, trying to consolidate everything in one place so it can be tracked better as to what needs doing.

Advertisement: