Pages:
Author

Topic: Bitcointalk BBCode New Feature - The Hobbit Header! (Read 5520 times)

legendary
Activity: 1302
Merit: 1005
New Decentralized Nuclear Hobbit
He he thanks for fixing it. Smiley

It messed up the OP of the campaign thread, and it was difficult to find what was causing it. Thanks, it must be kind of difficult to fix that one. Smiley


Edit: Sorry for the trouble.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
Look at that!  I kinda couldn't believe it but you are right:

This is what I got back.
Code:

Here's a link:
http://google.com



Here's a list:
 * a
 * b



That is stupid I wonder why they did that?  Do you think it's because they were worried about false positives like this:

Code:
When I press shift and the 8 key at the same time my screen prints an
* symbol.  But that is in part because of my keyboard mapping ...

lol.  Like I said, I use LaTeX when I need real formatting for something other the web.
administrator
Activity: 5222
Merit: 13032
@Theymos, what's the deal with the newlines?  I've never run into any issue, is it the old \r\n vs \n thing?

For example, this:

Code:
Here's a link:
http://google.com

Here's a list:
* a
* b

will evaluate to this in markdown because it requires extra newlines:
Quote
Here's a link:http://google.com

Here's a list:* a* b
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
BBCode is closest to HTML, so it makes the most sense when doing complex things like tables (or any sort of block element like [code], [center], etc.). I prefer markdown or wiki syntax when doing more simple things like emphasis, links, and lists, though. The biggest thing I hate about markdown is that it doesn't work well with newlines; oftentimes you need to separate things by extra newlines (or two spaces after the end of a line) for them to work properly, which is annoying.

I, personally, when it comes to markup languages, have had so little need for things like markdown.  I think it's a great idea, but for me, README files are just fine in plain text.  I don't really need them formatted.  When I need something in HTML, I just write HTML.  When I need a document, I just write LaTeX.  When it's anything else, plain text is usually just fine.  Note, I'm not dissing markdown, I just have never really used it apart from github pages.

@Theymos, what's the deal with the newlines?  I've never run into any issue, is it the old \r\n vs \n thing?
administrator
Activity: 5222
Merit: 13032
BBCode is closest to HTML, so it makes the most sense when doing complex things like tables (or any sort of block element like [code], [center], etc.). I prefer markdown or wiki syntax when doing more simple things like emphasis, links, and lists, though. The biggest thing I hate about markdown is that it doesn't work well with newlines; oftentimes you need to separate things by extra newlines (or two spaces after the end of a line) for them to work properly, which is annoying.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
BBCode sucks. Should stick with copy and paste HTML. BBCode is like for the lazy, non-techy people who think HTML is a programming language. Roll Eyes

It's also for a techy person like me who decides to go ahead and take advantage of, say, bold rather than *bold* in a forum post.

bold doesn't work!

In that case, I disagree. 7 characters to parse to  is equivalent to typing .
What does this mean?  The parser doesn't care how many characters it has to read.  Maybe you meant to compare [b] to , but is deprecated HTML for mixing presentation (style) with markup (structure), so nowadays we right .
Quote
You're not getting any advantages there. With *this* at least you don't have to type 7 characters to accomplish the same thing.

In fact, if something like that was used (that didn't take advantage of HTML-like tags), you probably wouldn't see crummy parsing happening anyway. It would be easier to read, too. I'm more partial to Wikipedia's ''' for bold and '' for italic (and ''''' for bold italic) in a forum setting.

You may be right that wikimarkup is easier to type, or more effiecient to type.  But,  and FWIW, I find BBCode more transparent for the casual user..  When I edit wikipedia I have to look up again and again whether the label comes before or after the link, how to do a header, etc.  This is because markup like =, ==, '', is concise but not mnemonic.  On the other hand I never forget [quote][code][url][b][i][u] even when I haven't used them for a long time.
sr. member
Activity: 420
Merit: 250
Mmmh mhmhh mmmm.
BBCode sucks. Should stick with copy and paste HTML. BBCode is like for the lazy, non-techy people who think HTML is a programming language. Roll Eyes

It's also for a techy person like me who decides to go ahead and take advantage of, say, bold rather than *bold* in a forum post.

bold doesn't work!

In that case, I disagree. 7 characters to parse to is equivalent to typing . You're not getting any advantages there. With *this* at least you don't have to type 7 characters to accomplish the same thing.

In fact, if something like that was used (that didn't take advantage of HTML-like tags), you probably wouldn't see crummy parsing happening anyway. It would be easier to read, too. I'm more partial to Wikipedia's ''' for bold and '' for italic (and ''''' for bold italic) in a forum setting.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
BBCode sucks. Should stick with copy and paste HTML. BBCode is like for the lazy, non-techy people who think HTML is a programming language. Roll Eyes

It's also for a techy person like me who decides to go ahead and take advantage of, say, bold rather than *bold* in a forum post.

bold doesn't work!
sr. member
Activity: 420
Merit: 250
Mmmh mhmhh mmmm.
BBCode sucks. Should stick with copy and paste HTML. BBCode is like for the lazy, non-techy people who think HTML is a programming language. Roll Eyes
copper member
Activity: 3948
Merit: 2201
Verified awesomeness ✔
...
SMF's bbcode parser is ad hoc, not using any standard parsing method. It doesn't create an AST, even conceptually. So it's incapable of properly detecting syntax errors.
Man, SMF is seriously fucked up.

Your post is invalid and when I add [code ] (without the space) it is the real content... Also the new code affects my signature and I need to change to another version Sad I won't be affected from payments?
It doesn't work anymore as theymos "fixed" the parsing method SMF uses.
legendary
Activity: 3752
Merit: 1170
www.Crypto.Games: Multiple coins, multiple games
Code:
[table][tr][td]

This is a new bbcode feature, that allows you to make upside down posts. :)
Adds up an additional area on the top of a post or OP, the content of which comes from the last part of the post. Nicknamed the hobbit header (HH) after ndnhc ;D

The code:
[code][table][tr][td]Second part[/center][hr]First part or header.


Pros:
Fun.
Unique.

Cons:
Could be annoying.
Have to scroll down to find the "Quote" and "Reply" stuff.

Advice:
When you use it, keep the top part short.


[/center]
  Inventor : Bilbo Baggins  Grin       This is a Hobbit Header!  by ndnhc[/code]
Your post is invalid and when I add [code ] (without the space) it is the real content... Also the new code affects my signature and I need to change to another version Sad I won't be affected from payments?
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
^^ Yup, you got him!

OK, I "fixed" it. Your post will parse to an error message if your table code is seriously messed up like this. Don't freak out if a long post disappears due to this -- it'll all still be there when you go to edit it.

theymos, I know that the BBCode parser in FluxBB disallows invalid BBCode. Can't you check if there is an option for that in SMF (or if you can make one)? Might be something worth checking out.

That's not supported in SMF because:

Also, I doubt it's a bug, to parse a tree all you need is a stack.

SMF's bbcode parser is ad hoc, not using any standard parsing method. It doesn't create an AST, even conceptually. So it's incapable of properly detecting syntax errors.

But you figured out some way to find the error in the OP anyway so good job.  And I like that you're using the software to enforce the "rule" not to fuck with the forum layout.  And I think it was a good find by ndnhc---I hope someone tips him for it.
administrator
Activity: 5222
Merit: 13032
OK, I "fixed" it. Your post will parse to an error message if your table code is seriously messed up like this. Don't freak out if a long post disappears due to this -- it'll all still be there when you go to edit it.

theymos, I know that the BBCode parser in FluxBB disallows invalid BBCode. Can't you check if there is an option for that in SMF (or if you can make one)? Might be something worth checking out.

That's not supported in SMF because:

Also, I doubt it's a bug, to parse a tree all you need is a stack.

SMF's bbcode parser is ad hoc, not using any standard parsing method. It doesn't create an AST, even conceptually. So it's incapable of properly detecting syntax errors.
qwk
donator
Activity: 3542
Merit: 3413
Shitcoin Minimalist
It's already being abused to fake posts by other users:


We need a hotfix.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
Please don't actually do this. It looks terribly messy and exploits invalid HTML that will vary per browser. We will be deleting posts that do this in other threads and banning anyone who does it persistently.

Fixing it seems difficult. It seems like a bug pretty deep in how the bbcode parser works. If anyone knows how to fix it, let me know.

Does this mean it's okay to keep playing around with it in this thread to see the extent of it?

Also, I doubt it's a bug, to parse a tree all you need is a stack.  If the code isn't a tree then behavior should be undefined.  I agree that turning on some sort of validation to prevent bbcode that's not a tree should be the fix.  FWIW, it would also fix the errant [ quote/] kind of typos that often get stuck into posts.
copper member
Activity: 3948
Merit: 2201
Verified awesomeness ✔
Please don't actually do this. It looks terribly messy and exploits invalid HTML that will vary per browser. We will be deleting posts that do this in other threads and banning anyone who does it persistently.

Fixing it seems difficult. It seems like a bug pretty deep in how the bbcode parser works. If anyone knows how to fix it, let me know.
theymos, I know that the BBCode parser in FluxBB disallows invalid BBCode. Can't you check if there is an option for that in SMF (or if you can make one)? Might be something worth checking out.
administrator
Activity: 5222
Merit: 13032
Please don't actually do this. It looks terribly messy and exploits invalid HTML that will vary per browser. We will be deleting posts that do this in other threads and banning anyone who does it persistently.

Fixing it seems difficult. It seems like a bug pretty deep in how the bbcode parser works. If anyone knows how to fix it, let me know.
qwk
donator
Activity: 3542
Merit: 3413
Shitcoin Minimalist
As expected people are going to troll and create a nuisance with this
Yes. Hotfix needed to prevent this from spreading.
global moderator
Activity: 4018
Merit: 2728
Join the world-leading crypto sportsbook NOW!
INVALID BBCODE: close of unopened tag in table (2)
qwk
donator
Activity: 3542
Merit: 3413
Shitcoin Minimalist
This is a new bbcode feature, that allows you to make upside down posts.
Seems more like a bug or "hack" with the obsolete table layout of smf.
Anyway, I don't think such a "header" is anything but annoying, cluttering screen estate and it might easily break with the transition to the new forum.
Also, it will be quoted, which is obviously not what a "header" should do.
Pages:
Jump to:
© 2020, Bitcointalksearch.org