Bitcoin Forum

Other => Beginners & Help => Topic started by: uchegod-21 on December 17, 2021, 09:17:41 PM



Title: BBCODES AND HTML (similarities and differences||questions)
Post by: uchegod-21 on December 17, 2021, 09:17:41 PM

After seeing Bbcodes in this forum. I compare it to HTML and need to know why HTML is not use here even when is more organize.
I went through many of this links below to read the Bbcodes use in this forum
Quote
  • SMF Bulletin Board Code (BBCode), Help post for beginner (https://bitcointalk.org/index.php?topic=3312998.0)
  • Instructions on how to use BBCode (https://bitcointalk.org/index.php?topic=4738016.0)
  • [Tips] Bulletin Board Codes(BB Codes) (https://bitcointalk.org/index.php?topic=4330176.0)
I enjoy the codes because it can make somebody creative and make article of someone to look nice or organize.
What I have been doing is to use the idea of HTML that I know to be trying in the forum and I was surprise that most of HTML work here.
I will write some similarities and differences that I notice.


Similarities
A.   Both Bbcodes and HTML are not programming language

B.   Both can maintain a style from outside software like ms word: if I type some text in ms word or notepad and want it to occur in this forum like that I will use this.
Code:
 [pre]the text style[/pre]
. I can use this style to make a table instead of using
Code:
[table], [tr], [td]

Quality     Bitcoin     Fiat
Centralized     No     Yes
Currency        Yes     Yes
Privacy         Yes     No

C.   When open a url if you don’t want to or you don’t want to leave the site: in HTML the link will open in the current tab, but if you want it to open in different tab you put
Code:
 target=_blank in the opening of [a] tag
but in Bbcodes is assume the url will open new tab but if you want it to open in your current tab
Code:
[iurl]httpss://google.com[/iurl]
. But iurl is not working here. I don’t want some of the link I click to make me leave the forum, but all the link always take me out of the forum by not opening in a new tab. Any help?

D.   Both of them has two types of tag. The opening tag - [tag] and the closing tag - [/tag]: If you forget to close the tag, the code will not work or it will spoil your other work.

E.   Both of them have some self-closing tag: like for Bbcodes we have
Code:
 [hr] to rule line horinzontal, [btc] to show bitcoin logo
and for of HTML we have
Code:
 [hr] = horizontal line, [br] = Line break, [img]=Image

Differences
A.   HTML can be understand  by browser but browser will not understand Bbcodes unless the ones that match with HTML
B.   HTML is used to build website but Bbcodes is use in different forum which mean I can create my own Bbcodes if I have my own forum.
C.   Bbcodes is somehow simple than HTML
D.   In Bbcodes they forget very important thing in Table. that is table head (th). I saw some people that use to bold the first colon of table data (td) to formulate there table head (th)

Why does the forum use Bbcodes instead of HTML?

  • Because Bbcodes is simple than than HTML
  • So that the forum will not be attack.
my question
How will the forum be attack?
Because with both Bbcodes and HTML? someone can share link.
Too if someone use a strong HTML? parser (https://docs.python.org/3/library/html.parser.html) will there still be risk?




Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: BlackHatCoiner on December 17, 2021, 09:37:35 PM
So that the forum will not be attack.
You can't attack a website by allowing html tagging. You can make your restrictions if you want to avoid some html tags, but it's not a server-side language that can be abused somehow. It's just that bbcode is simpler to type than html.

Less-than and greater-than signs are harder to type than brackets. Also, it's far easier to type the following:
Code:
[url=https://URL]Link[/url]

Instead of:
Code:
<a href="https://URL">Link</a>

Same happens for almost every html tag.


Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: FatFork on December 18, 2021, 12:01:58 AM
Why does the forum use Bbcodes instead of HTML?

BBCode and HTML serve completely different purposes. BBCode is parsed and converted to HTML by the server while HTML is rendered in your web browser. If HTML were enabled within posts, there would be a danger of bad code ruining the look of the entire site.


Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: isaac_clarke22 on December 18, 2021, 01:08:19 AM
As what BlackHatCoiner said, you can't just attack websites with html alone.
I suggest you to read the difference between the client-side(front-end) and server-side(back-end).
That question reminds me of this meme:
https://i.ibb.co/syVCS7P/heck.jpg



Image source: Facebook Link (https://www.facebook.com/urbanlinker/photos/use-html-to-hack-matrix-html-nasa-hack-matrix/10156242344638015/)



Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: tranthidung on December 18, 2021, 02:06:43 AM
Quote
Both can maintain a style from outside software like ms word
There are tools to convert back and forth between BBcode and HTML as well as Word .doc such as that one: How to convert a Word .doc to bbcode for Bitcointalk (https://bitcointalk.org/index.php?topic=5319289.0)


Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: bitmover on December 18, 2021, 11:33:11 AM

A.   Both Bbcodes and HTML are not programming language

I think you are doing a lot of confusion.

Html is a programming Language, so does BBcode.

According to Wikipedia

Quote
BBCode is a lightweight markup language used to format messages in many Internet forum software, first introduced in 1998. The available "tags" of BBCode are usually indicated by square brackets ([ and ]) surrounding a keyword, and are parsed before being translated into HTML.[1]
https://en.m.wikipedia.org/wiki/BBCode

Quote

  • Because Bbcodes is simple than than HTML
  • So that the forum will not be attack.
my question
How will the forum be attack?
Because with both Bbcodes and HTML? someone can share link.
Too if someone use a strong HTML? parser (https://docs.python.org/3/library/html.parser.html) will there still be risk?



I think the forum uses bbcode just because it is a language specifically designed for internet forums.  It is easier to use than HTML, and SMF forums (the current forum software) uses it.


Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: SFR10 on December 19, 2021, 03:39:59 PM
I don’t want some of the link I click to make me leave the forum, but all the link always take me out of the forum by not opening in a new tab. Any help?
Just use the "scroll wheel/middle button" instead... There was a security issue, so theymos had to remove or rather, alter its behavior: Links no longer open in a new window/tab (https://bitcointalk.org/index.php?topic=1447874.0)


Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: BernyJB on December 20, 2021, 02:31:53 PM
uchegod-21: BBCode (or "Bulletin Board Code") is a markup language designed specifically to be used safely on forums and the like.

It's true that neither HTML nor BBCode are programming languages. A programming language tells the computer what to do. HTML and BBCode just add tags to text, to aid in formatting.

It's also true you can't run an attack on HTML. You can, however, call Javascript from HTML, and launch the attack using Javascript. on BBCode you can't do that.

You can think of BBCode as "baby HTML" of sorts. It can be parsed by HTML, but offers limited features compared to it (the most important being its inability to run scripts within it).

You can read more about it here: https://en.wikipedia.org/wiki/BBCode (https://en.wikipedia.org/wiki/BBCode) and here: https://www.bbcode.org/ (https://www.bbcode.org/).


Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: Pmalek on December 20, 2021, 02:44:27 PM
I don’t want some of the link I click to make me leave the forum, but all the link always take me out of the forum by not opening in a new tab. Any help?
Like SFR10 said, hover over the link you want to open and click on the mouse wheel. That will automatically open that link in a new tab. It works for Bitcointalk as well as outside sources and links you find while browsing the Internet. If you have a really old mouse that doesn't have that middle wheel or you are using your laptops touchpad, right-clicking on the link and clicking on "open link in new tab" achieves the same results.


Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: BernyJB on December 20, 2021, 02:52:06 PM
I don’t want some of the link I click to make me leave the forum, but all the link always take me out of the forum by not opening in a new tab. Any help?
Like SFR10 said, hover over the link you want to open and click on the mouse wheel. That will automatically open that link in a new tab. It works for Bitcointalk as well as outside sources and links you find while browsing the Internet. If you have a really old mouse that doesn't have that middle wheel or you are using your laptops touchpad, right-clicking on the link and clicking on "open link in new tab" achieves the same results.

Yep. Or right click on it if you're using a laptop.


Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: uchegod-21 on December 21, 2021, 09:42:21 PM
I don’t want some of the link I click to make me leave the forum, but all the link always take me out of the forum by not opening in a new tab. Any help?
Just use the "scroll wheel/middle button" instead... There was a security issue, so theymos had to remove or rather, alter its behavior: Links no longer open in a new window/tab (https://bitcointalk.org/index.php?topic=1447874.0)
Thank you very much.


It's true that neither HTML nor BBCode are programming languages. A programming language tells the computer what to do. HTML and BBCode just add tags to text, to aid in formatting.
This is true. Thank you for confirming it.

. If you have a really old mouse that doesn't have that middle wheel or you are using your laptops touchpad, right-clicking on the link and clicking on "open link in new tab" achieves the same results.
Thank you for more solution.


Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: dataispower on January 25, 2022, 03:06:50 PM
It is good that new people are trying to learn bbcodes. It is very difficult to know all the bbcodes, but continue to practice it since you have idea of html.
Forum use BBCodes because bbcodes is meant for forums or groups.
It makes communication easy and beautiful.


Title: Re: BBCODES AND HTML (similarities and differences||questions)
Post by: Wiwo on January 25, 2022, 03:31:09 PM
It is good that new people are trying to learn bbcodes. It is very difficult to know all the bbcodes, but continue to practice it since you have idea of html.
Forum use BBCodes because bbcodes are meant for forums or groups.
It makes communication easy and beautiful.
We keep learning daily, some of us never know how to sign a message on our wallet or even encrypt a message before now but through the help of forum users we were able to learn all this, the same applies to BBCode before now I never know how to generate and use them on the forum but with persistent efforts, I can post them now free and enjoy the beauty and quality it brings to my readers.