×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules
40

You can now quote text

submitted by system to TalkDev 2.7 yearsAug 10, 2021 03:35:15 ago (+40/-0)     (TalkDev)*

The present is theirs; the future, for which I really worked, is mine.

- Nikola Tesla

Hey goats. You can now quote text.

To quote a message simply insert two one '>' with the quoted text after it. The quote will end when you insert a line break.

It's a simple feature but it was a bitch to implement, working with strings in PHP is torture. I am going to try to get it down to one '>' but this works for now.


31 comments block


[ - ] MuricaPersonified 2 points 2.7 yearsAug 10, 2021 09:00:29 ago (+2/-0)

>Cool.

Remove the automatic quotation marks; those are the comment writer's responsibility.

Now how do I do hyperlinks on this site?

[ - ] GrayDragon 2 points 2.7 yearsAug 10, 2021 07:03:45 ago (+2/-0)*

> Dial

Gay

Gay

> Dial

E: "... working with strings in PHP is torture ..."

Want me to write it for you? lol. Not working. I figure PHP supports RegExs. It is not overly hard.

[ - ] system [op] 2 points 2.7 yearsAug 10, 2021 07:24:41 ago (+2/-0)

It only supports one line. Tonight I think I will adjust it to support multiple breaks.

[ - ] GrayDragon 1 point 2.7 yearsAug 10, 2021 08:04:00 ago (+1/-0)*

No, multiple breaks is wrong. It should just be the start of line with a greater-than sign and a replacement before and after the line break with the needed CSS, right?

I just don't want to lead you down the wrong road.

If the users' don't know how to use it right, fuck them. They will learn. Don't go overboard.

E: In other words "adjust it to support multiple breaks" is a nightmare.

E2: If the first character on any given newline starts with a greater-than sign, it is a quote UNTIL the CR. Replace all. That is it. Nothing fancy. Poal and Reddit I think work that way.

[ - ] rhy 2 points 2.7 yearsAug 10, 2021 05:33:44 ago (+2/-0)

Bro thank you! You are doing great!!!

[ - ] system [op] 2 points 2.7 yearsAug 10, 2021 06:37:08 ago (+2/-0)

:D

[ - ] AloisH 2 points 2.7 yearsAug 10, 2021 04:03:00 ago (+3/-1)

> .
@3starAgent

[ - ] PuttitoutIsGone 1 point 2.7 yearsAug 10, 2021 06:46:54 ago (+1/-0)

> Dick

-PuttItoutIsgone

[ - ] mikenigger 1 point 2.7 yearsAug 10, 2021 05:46:16 ago (+1/-0)

are there no markdown parsers for PHP? it would make this a lot easier

[ - ] system [op] 0 points 2.7 yearsAug 10, 2021 06:12:22 ago (+0/-0)

There has to be. This is something I've wondered a couple times through all this and I've briefly looked around, but I am not sure.

[ - ] heygeorge 0 points 2.7 yearsAug 10, 2021 06:59:20 ago (+0/-0)

There are multiple markdown parsers for php, easy to find:

https://github.com/erusev/parsedown was the first link that popped up, but there are many!

https://stackoverflow.com/questions/5116187/how-to-parse-markdown-in-php

[ - ] system [op] 0 points 2.7 yearsAug 10, 2021 07:19:43 ago (+0/-0)

>https://github.com/erusev/parsedown was the first link that popped up, but there are many!

I actually saw this one and was faced with the choice of learning it or learning how to do it manually. I went the manual route and I think I have it down. It's not fun though so maybe I'll see what it's about.

[ - ] v0atmage 0 points 2.7 yearsAug 10, 2021 09:44:38 ago (+0/-0)

[ - ] Kozel 0 points 2.7 yearsAug 10, 2021 16:57:59 ago (+0/-0)

nigger

- nigger

[ - ] Paradoxical003 0 points 2.7 yearsAug 10, 2021 16:54:39 ago (+0/-0)

Poor tesla.

If only he knew what fate had in store for him.

He was assassinated you know, he was.

[ - ] account deleted by user 0 points 2.7 yearsAug 10, 2021 16:31:31 ago (+0/-0)

account deleted by user

[ - ] deleted 0 points 2.7 yearsAug 10, 2021 16:29:44 ago (+0/-0)

deleted

[ - ] KCobain27 0 points 2.7 yearsAug 10, 2021 14:39:18 ago (+0/-0)

>Thanks system!

-Me

[ - ] Garrett 0 points 2.7 yearsAug 10, 2021 11:31:38 ago (+0/-0)

Thank you

[ - ] deleted 0 points 2.7 yearsAug 10, 2021 11:07:19 ago (+0/-0)

deleted

[ - ] Ragnar 0 points 2.7 yearsAug 10, 2021 09:17:45 ago (+0/-0)

>to quote or not to quote
Test

[ - ] HughBriss 0 points 2.7 yearsAug 10, 2021 09:01:58 ago (+0/-0)

Good work, man. You're doing a hell of a job.

[ - ] deleted 0 points 2.7 yearsAug 10, 2021 09:01:38 ago (+0/-0)

deleted

[ - ] PuttitoutIsGone 0 points 2.7 yearsAug 10, 2021 06:43:50 ago (+0/-0)

> I will kill you all in your sleep!

-Dial

[ - ] Ragnar 0 points 2.7 yearsAug 10, 2021 09:18:47 ago (+0/-0)

Is Dial aou?

[ - ] deleted 0 points 2.7 yearsAug 10, 2021 05:26:16 ago (+0/-0)

deleted

[ - ] deleted 0 points 2.7 yearsAug 10, 2021 05:26:00 ago (+0/-0)

deleted

[ - ] AloisH 0 points 2.7 yearsAug 10, 2021 04:02:09 ago (+0/-0)

What about link embeds?

[ - ] system [op] 3 points 2.7 yearsAug 10, 2021 05:48:39 ago (+3/-0)

This will be tortureĀ² but yeah I'd like to do it.

[ - ] AloisH -2 points 2.7 yearsAug 10, 2021 07:13:21 ago (+0/-2)

Then don't do it. Fuck those guys

[ - ] 3starAgent 0 points 2.7 yearsAug 10, 2021 03:35:30 ago (+2/-2)

.