MyBB Community Forums

Full Version: MyCode Doesn't Stop
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi

I have the following code in a post:
[b][color=green][size=small]Management
Azareal[/color][/b] (Lead Developer)
[b][color=green]Eric[/color][/b] (SQA Team Lead)
[b][color=green]Kyuubi[/color][/b] (Founder / General Manager)
[b][color=green]Polarbear541[/color][/b] (Server Manager)
[/size]

Which produces this:
Management
Azareal
(Lead Developer)
Eric (SQA Team Lead)
Kyuubi (Founder / General Manager)
Polarbear541 (Server Manager)


Why is the MyBB Parser bolding the stuff in brackets that's outside of the MyCode??
Do it like this:
[size=small][color=green][b]Management
Azareal[/b][/color] (Lead Developer)
[color=green][b]Eric[/b][/color] (SQA Team Lead)
[color=green][b]Kyuubi[/b][/color] (Founder / General Manager)
[color=green][b]Polarbear541[/b][/color] (Server Manager)
[/size]

Management
Azareal
(Lead Developer)
Eric (SQA Team Lead)
Kyuubi (Founder / General Manager)
Polarbear541 (Server Manager)
because your [size] tags are not properly nested with the rest of the mycodes
Thanks Janota, that fixed the issue. Smile

@pavemen: Why would a size tag make text outside the mycode go bold??
its a known bug in the mybb mycode parser. out of order codes are not properly closed.
Ah, ok. Is this already filed on the Redmine tracker??
I don't think it'll be fixed in a maintenance release as it'll require substantial changes. If the tags are ordered and nested as they should be, it works. Trying to make it work for people putting it in the wrong order would probably result in hacky workarounds to get it to close.
Do you think this will be fixed in 2.0 or a future 2.x version??
Matt has a good point there , if its used correctly theres nothing to fix.
Oh ok. Could do a MyCode reorganiser to make the MyCode be in a certain order before being parsed.
Pages: 1 2