Comment Reply Threading / Linking on the WordPress Side

Hi, one major issue I’m having with the WP-Discourse plugin is that comment replies are unclear. When there is a comment reply in Discourse, the WordPress side does not show what it’s a reply to. It’s just a pure flat conversation.

It would be nice to either utilize WordPress’ threading capabilities (unlikely given Discourse’s stance), or at least state “This is a reply to comment #2” or something like that.

Is that possible?

Thanks!

It has been discussed before, so you might search for those conversations; I’d point you to a thread, but it is always mentioned in passing. Get yer search on! :slight_smile:

I couldn’t find it. Was using keywords such as threaded and reply but that’s obviously not helpful. Will try Google.

I’ll see if there is something that can be done with that.

Our standard embed script works this way. See Jeff’s blog for example:

https://blog.codinghorror.com/hacker-hack-thyself/

I like that - this could be acceptable. What’s “our standard embed script” though? What you have in WP-Discourse isn’t doing this for me (also tried in default theme, still nothing).

I believe he’s referring to Embedding Discourse Comments via Javascript.

Hi, I’m revisiting this issue. The JS embed isn’t working well enough for my liking, so I’m looking at going back to the comment sync.

Doing some tests, many of our conversations look plain awful without knowing who’s replying to whom. Is there a possibility of getting a bit more clarity with the replies?

Unfortunately, when you are doing the wp_remote_get inside of lib/discourse-comment.php, using the best=____ parameter strips out the reply information from your JSON!

Not sure if that’s on purpose or is a bug, but that’s a roadblock on its own.

Edit: Yet, if you remove the best parameter, it doesn’t work with /wordpress.json anymore. I can see the problems baked in here for wanting this ‘simple’ change.

Thanks!

Hello,

I did a search and even though it’s said in this thread this has been discussed elsewhere, I can’t find it. (I also looked at WP Discourse template customization and WP Discourse Plugin Tips and Tricks.)

I just launched Discourse comments on my Wordpress site, and I’m having the same issue as Berto—without the context of “This is a reply to…” (either name or comment), the comments are a bit challenging to follow. Since I am trying to sell my readership that Discourse is a superior experience to Disqus, and that they should give it a try, it’s not the best look for that.

@simon Did you come up with a solution to this? Do I need to use the the Javascript embedding? It’d be great if I could make the conversation flow more clearly like on Coding Horror’s blog. (But I’d really prefer to keep using WP-Discourse, which I love.)

Thanks for bringing this up. I think that improving the way that comments are displayed should be the next thing we focus on for the plugin.

That would be awesome, @simon.

You already have a super-solid integration with linking the comments between the sites. Having both references to replies (and even active links that move you through the conversation) on Wordpress, like @codinghorror uses on his blog, would be a big benefit. His site, I think, gives a good template to start from and, if necessary, you could tweak the UI from there.

Please let me know if you need any help testing things. I’m happy to offer whatever assistance I can. :slight_smile:

If improving the way comments are displayed is something you’re going to focus on, I might also ask for a cleaner presentation for when you are quoting previous content.

Quoting is something I’m trying to encourage now in order to have the comments on Wordpress make more sense. But currently the name quoted and the quote itself are separate and styled differently:

2019-04-17_11-50-22

I think it feels a little disconnected.

It’d be cool if it could match more like how it’s presented in Discourse:

I don’t know how hard that is to make happen, but my 2 cents anyway. :slight_smile:

Hey @simon,

ich wollte nur kurz nachhaken. Ich würde immer noch gerne eine übersichtlichere Darstellung der Antworten, Zitate und Kommentare auf WordPress sehen.

Hattest du in der Zwischenzeit Zeit, dich damit zu beschäftigen?

Ich werde das selbstverständlich verstehen, wenn nicht, aber ich wollte dir einfach sagen, dass mir das sehr am Herzen liegt. Ich habe von einigen meiner Leser weitere Kommentare erhalten, dass das Verfolgen der Diskussion im aktuellen Format verwirrend ist. Ich denke, es könnte mehr Leute dazu ermutigen, Discourse auf meiner Seite auszuprobieren, wenn die WordPress-Kopien etwas klarer wären.

Vielen Dank für deine großartige Arbeit an diesem Plugin. Es ist wirklich toll und sehr geschätzt. :slight_smile:

Ich untersuche derzeit, was unternommen werden kann, um entweder anzuzeigen, dass ein Kommentar eine Antwort ist, oder einen Link „Antworten“ unter Kommentaren mit Antworten hinzuzufügen. Die dafür benötigten Daten werden derzeit nicht von Discourse an WordPress übergeben, aber es sieht so aus, als könnte dies mit einer relativ kleinen Änderung an Discourse ermöglicht werden.

Ja, die Standardstile dafür sind nicht sehr gut. Sie können sie verbessern, indem Sie diese Regel zum CSS Ihres Themes hinzufügen:

.comment-body .quote blockquote {
	margin-top: 0;
	margin-right: 0;
}

Mit dem WordPress-Thema „twentyninteen“ erhalten Sie damit etwas wie dieses:

Die Erwartung beim Plugin ist, dass Websites die Kommentare an ihr Theme anpassen, aber die Styles, die aktiviert werden, wenn die Option „Kommentar-CSS laden“ eingeschaltet ist, sollten einen vernünftigen Ausgangspunkt bieten. Ich werde dem Plugin sehr bald etwas wie die oben genannte CSS-Regel hinzufügen.

Hey Simon,

Ich habe das irgendwie übersehen. Vielen Dank für den CSS-Tipp! Durch das Hinzufügen habe ich von:

zu:

gewechselt. Das ist definitiv eine Verbesserung. Aber mein Theme fügt immer noch diesen seltsamen Rand hinzu. Ich habe versucht, im CSS nachzuschauen, aber es gibt viele Verweise auf „Borders

[quote=“alexwoolfson, Beitrag: 16, Thema: 71711”]
Hättest du vielleicht Tipps, wonach ich in meinem CSS suchen sollte, um diesen Rand zu entfernen, damit ich das Ergebnis, das du mit dem Theme „twentynineteen

Vielen Dank! Das ist großartig! (Und ich finde es toll, dass du das zum Basis-Plugin hinzufügen wirst.)

Ich habe den Code hinzugefügt und folgendes erhalten:

Insgesamt ist es eine riesige Verbesserung. Vielen Dank!

Nur noch eine letzte Sache: Gibt es eine Möglichkeit, etwas Abstand unter das Datum zu lassen, wie in den Kommentaren ohne das weiße Antwortfeld?

Ich denke, ein wenig negativer Raum zwischen dem Datum und dem Rand des weißen Feldes könnte vielleicht etwas sauberer aussehen.

Ja, ich denke, das ist ein Problem mit deinem Theme. Versuche, eine CSS-Regel hinzuzufügen, die etwa so aussieht:

.comment .comment-content {
    margin: 22px;
}

Möglicherweise musst du den Wert 22px anpassen, damit der Abstand zu deiner Website passt.

Es gibt noch ein weiteres Problem mit deinem Theme, das du beheben möchtest. WordPress verwendet für Kommentare nummerierte Listen, entfernt die Nummern jedoch per CSS. Wenn du keine Zahlen neben den Kommentaren anzeigen möchtest, versuche, eine Regel ähnlich dieser aus dem Twentyninteen-Theme hinzuzufügen:

.comment-list {
    list-style: none;
}

Yay! Alles in allem viel besser. Das CSS hat funktioniert.

Vielen Dank, @simon! Wie immer bist du großartig! :smiley: