Discuss Scratch

gravtest
Scratcher
100+ posts

Slight tweak to comments

Sometimes, I want to write some code or something that makes newlines significant in a comment on a project, studio or profile page. I was thinking, maybe newlines could actually be rendered as line breaks; this would make the actual page's code look cleaner and the comment could display them properly.

Implementation-wise, in PHP it might look like this:

$commentbody = implode("<br />", explode("\n", $commentbody));

Python's code would be a lot more efficient:

commentbody = commentbody.replace("\n", "<br />")

However, this could allow for spam:

this is……………………



huge amount of newlines




………….awesome!

A limit could be added:

$commentbody = implode("<br />", explode("\n", $commentbody, 15));

commentbody = commentbody.replace("\n", "<br />", 15)

Well, it's just a suggestion, so yeah
AonymousProfessor
Scratcher
100+ posts

Slight tweak to comments

Wait, so why would this be helpful?
gravtest
Scratcher
100+ posts

Slight tweak to comments

AonymousProfessor wrote:

Wait, so why would this be helpful?
There have been a lot of miscellaneous situations that not having newlines made my comments a lot less clear or totally unreadable which I can't entirely recall. I think the real question here is, why wouldn't this be helpful?
AonymousProfessor
Scratcher
100+ posts

Slight tweak to comments

gravtest wrote:

AonymousProfessor wrote:

Wait, so why would this be helpful?
There have been a lot of miscellaneous situations that not having newlines made my comments a lot less clear or totally unreadable which I can't entirely recall. I think the real question here is, why wouldn't this be helpful?
Okay, I agree. I like being organized when I try to give people advice and whatnot.
Candylanguagegirl
Scratcher
1000+ posts

Slight tweak to comments

(We are talking about using the enter key in comments on projects, profiles and studios, not the kind of comments that are inside projects.)
This has been bugging me for a while. I know it probably isn't a feature because it would be easy to spam, but it drives me a bit crazy.

So you're writing a really long comment, or a comment that should be in two short paragraphs rather than one long one, or you're linking to a project/forum post in a comment but have something to say after you link it. You press the enter key, and voila, a new line appears. Huzzah! You go and space your comment so it looks nice and is easy to read, and press submit. The comment loads, and you look proudly upon the beautiful thing you put so much time into. But wait- what just happened!? Crestfallen, you see that your happy little comment has been reduced to a long pile of words. Ugh.

Ok, so creative writing set aside, there HAS to be a way to introduce the enter key while keeping spam out of the picture. For instance, you'd have to have at least 10 words every time you hit enter? (Hey, that could actually work.)
Another option (as per Sheep_maker) is to have a “read more” option appear if too many enters are used.

Anyway, that's my argument. I'm just gonna leave this here and hope I'm not the only one.

Last edited by Candylanguagegirl (Oct. 3, 2016 10:59:27)

The4thPixel
Scratcher
1000+ posts

Slight tweak to comments

100% support, for reasons listed in the Original Post.

Candylanguagegirl wrote:

(We are talking about using the enter key in comments on projects, profiles and studios, not the kind of comments that are inside projects.)
This has been bugging me for a while. I know it probably isn't a feature because it would be easy to spam, but it drives me a bit crazy.

So you're writing a really long comment, or a comment that should be in two short paragraphs rather than one long one, or you're linking to a project/forum post in a comment but have something to say after you link it. You press the enter key, and voila, a new line appears. Huzzah! You go and space your comment so it looks nice and is easy to read, and press submit. The comment loads, and you look proudly upon the beautiful thing you put so much time into. But wait- what just happened!? Crestfallen, you see that your happy little comment has been reduced to a long pile of words. Ugh.

Ok, so creative writing set aside, there HAS to be a way to introduce the enter key while keeping spam out of the picture. For instance, you'd have to have at least 10 words every time you hit enter? (Hey, that could actually work.)

Anyway, that's my argument. I'm just gonna leave this here and hope I'm not the only one.
Candylanguagegirl didn't wrote:

(We are talking about using the enter key in comments on projects, profiles and studios, not the kind of comments that are inside projects.)
This has been bugging me for a while. I know it probably isn't a feature because it would be easy to spam, but it drives me a bit crazy. So you're writing a really long comment, or a comment that should be in two short paragraphs rather than one long one, or you're linking to a project/forum post in a comment but have something to say after you link it. You press the enter key, and voila, a new line appears. Huzzah! You go and space your comment so it looks nice and is easy to read, and press submit. The comment loads, and you look proudly upon the beautiful thing you put so much time into. But wait- what just happened!? Crestfallen, you see that your happy little comment has been reduced to a long pile of words. Ugh. Ok, so creative writing set aside, there HAS to be a way to introduce the enter key while keeping spam out of the picture. For instance, you'd have to have at least 10 words every time you hit enter? (Hey, that could actually work.) Anyway, that's my argument. I'm just gonna leave this here and hope I'm not the only one.
I'm obsessed with grammar, and I like the first post rather than the second post listed above. Support.
Candylanguagegirl
Scratcher
1000+ posts

Slight tweak to comments

Imma bump this.
The4thPixel
Scratcher
1000+ posts

Slight tweak to comments

Candylanguagegirl wrote:

Imma bump this.
I don't think you needed to, considering you bumped it only about 10 hours after the Original Post was made.
Candylanguagegirl
Scratcher
1000+ posts

Slight tweak to comments

The4thPixel wrote:

Candylanguagegirl wrote:

Imma bump this.
I don't think you needed to, considering you bumped it only about 10 hours after the Original Post was made.
True and understood. But the min is around 12 hours and I really didn't feel like mathing.
Candylanguagegirl
Scratcher
1000+ posts

Slight tweak to comments

Bump!
Scratcher1002
Scratcher
1000+ posts

Slight tweak to comments


The4thPixel wrote:

100% support, for reasons listed in the Original Post.

Candylanguagegirl wrote:

-snip-
Candylanguagegirl didn't wrote:
-snip-
I'm obsessed with grammar, and I like the first post rather than the second post listed above. Support.
Didn't wrote?

Support, I've found myself trying to get a new line in comments but then I remember that it doesn't work.
The4thPixel
Scratcher
1000+ posts

Slight tweak to comments

Scratcher1002 wrote:

-snippity snip snip-
Didn't wrote?
That was a joke, don't worry
Bright-Idea
Scratcher
1000+ posts

Slight tweak to comments

Support, this helps when I'm posting a form in the comment, so instead of becoming.
User: Type: Words:
it can be organized, like
User:
Type:
Words:
scratchnapped
Scratcher
1000+ posts

Slight tweak to comments

gahh, 100% support from me. it bugs me that i can't separate my sentences/paragraphs haha
BurnedCrystal
Scratcher
100+ posts

Slight tweak to comments

100% support for reasons I'm not going to bother copy-pasting from everyone else's posts
Sheep_maker
Scratcher
1000+ posts

Slight tweak to comments

To avoid users spamming with empty newlines a “read more” button that automatically appears for longer comments would be a good idea
The4thPixel
Scratcher
1000+ posts

Slight tweak to comments

Sheep_maker wrote:

To avoid users spamming with empty newlines a “read more” button that automatically appears for longer comments would be a good idea
That sounds good, for example if someone literally wrote a 15-page essay on penguins in one comment.
P-Code
Scratcher
500+ posts

Slight tweak to comments

The4thPixel wrote:

Sheep_maker wrote:

To avoid users spamming with empty newlines a “read more” button that automatically appears for longer comments would be a good idea
That sounds good, for example if someone literally wrote a 15-page essay on penguins in one comment.

Technically you can't, because of the character limit

Support!
The4thPixel
Scratcher
1000+ posts

Slight tweak to comments

P-Code wrote:

The4thPixel wrote:

Sheep_maker wrote:

To avoid users spamming with empty newlines a “read more” button that automatically appears for longer comments would be a good idea
That sounds good, for example if someone literally wrote a 15-page essay on penguins in one comment.

Technically you can't, because of the character limit.
Yeah, I just remembered that. But the point still stands.
Candylanguagegirl
Scratcher
1000+ posts

Slight tweak to comments

Bump!

Powered by DjangoBB