Salta al contenuto
0
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
Collassa

Forum Federato

Di Piero Bosio
  1. Home
  2. Categorie
  3. Senza categoria
  4. A Proper Comment System for WordPress: Twenty Simple Suggestions

A Proper Comment System for WordPress: Twenty Simple Suggestions

Pianificato Fissato Bloccato Spostato Senza categoria
indiewebplugins
2 Post 1 Autori 2 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • Dan Knaussundefined Questo utente è esterno a questo forum
    Dan Knaussundefined Questo utente è esterno a questo forum
    Dan Knauss
    scritto su ultima modifica di
    #1

    Everyone seems to agree that in an ideal WordPress world, comments would be disabled by default. I believe a better ideal of convivial comments can be realized. We can make comments better with webmentions and customizations to keep our feedback human, healthy, and manageable.

    Instead of comments, try webmentions.

    Instead of — or alongside — comments you can add support for the Webmentions protocol to WordPress with the Webmentions plugin.

    Webmentions are a newer, better alternative to pingbacks and trackbacks. (You’re unlikely to get spam links from a webmention.) If something you’ve published gets linked to by another cool person using software that supports the webmentions protocol, you’ll get a “mention” that appears in the WordPress comment manager alongside the pings, trackbacks, and regular comments unless you’ve disabled those.

    How to set up comments, if you must!

    If you enable comments anywhere, here are the additional settings and customizations that will help you maximize good outcomes and mitigate the most horrible but common things humans and machines always do with comment forms.

    1. Enable comments only where (and when) they are needed. Just because you use comments doesn’t mean you want them everywhere.

      It would be nice to have a global setting in WordPress to enable or disable comments per content type, especially if custom post types are being used. By default WordPress allows you to activate comments per post or page (and potentially other content types) in their individual discussion settings but not globally. There are some plugins that do this but not ones I want to recommend. You can find code snippets and examples to learn how to do this very simply with a custom function or plugin.

      You should also make use of the global Discussion Settings in WordPress that define a period of time for comments to be enabled on a newly published item. Unless you’re writing a lot of evergreen content, why would a legitimate commenter show up with something useful to say a year after you publish something? (It would be nice to have this expiration feature variable per post type or individual content item too.)

    2. Enable a spam blocker. If comments are enabled anywhere and anonymous visitors (or bots) can leave them, you need spam protection. There are some simple and foolproof antispam techniques everyone should use. Take a look at Gulshan Kumar‘s Forget Comment Spam plugin.
    1. Disable nested comments. You don’t need nested or “threaded” comments if you’re not Reddit or Slack. (Consider P2 or bbPress or anything else before using them.)

      If you allow random people to reply specifically to other commenters, this opens up all kinds of trouble. You’re replicating Twitter and forum-style features with little or no protection. You should not do this without a login-to-comment requirement and/or active moderation.

      If you do use nested comments, parent-child structure should be indicated and editable in wp-admin. Stephen Cronin‘s old Show Parent Comment does this nicely, but if you want to be able to change parent-child relationships, Modify Comment Parent, Change Comment Parent, and Yoast Comment Hacks offer different approaches.

    2. Enable private comments. Let commenters define the scope of their audience and answerability. Not all comments need to be for everyone. If commenters can identify their message and intentions as private, they may communicate more comfortably with the author of the item being commented on, or to site admins, etc.

      The Private Comments plugin achieves this. CommentXpert is a new, little-used plugin I’ve never heard of that has a lot of features on this list and then some, including private comments that can be made public by admins.

    3. Restrict comments and commenting privileges by role. This is a novel idea that might make sense for certain community sites. Comments can be semi-private if they are readable and/or writeable to logged-in users in or above a certain role group. There’s an old WordPress StackXchange thread suggesting some ways to achieve this. The code examples there could probably use some updating and rethinking. 🤔

    Now let’s think about the back-end interface or “wp-admin” if you have multiple users operating there and a lot of commenters to deal with.

    1. Create a Moderator role. The Moderator role is the only role that has access to the comment controls in wp-admin and receives comment notifications by default. A Subscriber, Contributor, Author, Editor, or Administrator would have to be assigned a secondary Moderator role for the privilege of being bothered with comments.
    2. Give Moderators nice comment notification emails with actionable links. See the Comment Approval Notifications plugin by Kaspars Dambis.

      Note: By default, WordPress sends its mail through the PHP user via mail() as it’s used by wp_mail() by default. Take care to configure this approach properly or use alternative methods, like SMTP or an external mail platform. Many managed hosts provide alternatives.

    3. Let commenters opt-in for notification emails when there is a direct (nested) reply to their comment, or when any new comment is added. Kaspars explains how to do some of this with his Comment Approval Notifications plugin

    A lot of good things become possible and easier if most commenters are known, logged-in users whose identity (and maybe more) is federated and available for use across any/all platforms. Consider taking the time to set up…

    1. Single-sign on (SSO) with many platforms or (even better) a Federated Identity Management (FIM) system, like Gravatar.

    As an alternative or fallback, why not…

    1. Simple, lightweight HTML/CSS avatars with the commenters’ initials and a unique background colour if there’s no Gravatar connected to their email address, or if Gravatars are disabled. There are several plugins that do this; it’s a pretty old but not commonly used on WordPress sites.

    Ten more things you can do to make comments better.

    Finally, here is a cluster of comment interface features that introduce feedback and simple automations to discourage abuse:

    1. Visitors can vote comments up or down. This just provides some social feedback, but if the downvotes reach a certain threshhold, moderators
    2. Visitors can report comments.
    3. A specified number of downvotes triggers moderation rules and/or notifications.
    4. Enable comment throttling for 5 minutes if 5 comments have been submitted within the past 5 minutes by fewer than 5 commenters. (Something like that.)
    5. Option to prevent the last commenter from commenting again until someone else has commented or 24 hours have passed.
    6. Commenter-submitted “Website” field disabled by default.
    7. There are default, variable minimum and maximum lengths for comments.
    8. HTML and/or Markdown allowed with a preview.
    9. No refresh necessary after commenting to see the result.
      • Optionally redirect after comment submission to an arbitrary URL. (This might be a good place for some friction and creative redirection.)
    10. Comments are editable by the commenter within a set time limit after they are published/ (Requires comment cookies or only applies long-term to comments that belong to known/logged-in users.)
      • Bonus: Joost‘s fix for performance/caching issues caused by comment cookies, and Yoast Comment Hacks, now Comment Experience by Progress Planner.
     Share this post in the Fediverse!
    1 Risposta Ultima Risposta
    • Dan Knaussundefined Questo utente è esterno a questo forum
      Dan Knaussundefined Questo utente è esterno a questo forum
      Dan Knauss
      scritto su ultima modifica di
      #2

      A related thought —

      Summoned here by a Jetpack app notification, I’m leaving this comment from my phone. That’s not my usual experience. I’m realizing Jetpack for iOS feels more and more like a WP version of the Substack app. It’s also like my experience with Beeper where I can reply to many Slack groups and LinkedIn comments, or DMs anywhere. Such centralization is convenient, but I can lose context. Finding and reading nested comments (and finding them again later) might become a labyrinth.

      It could become too frictionless — too easy to blast out comments in all directions, confuse DMs and public channels… we need to know which cafe we’re in. It’s not the dive bar or five star restaurant we’re also simultaneously in. That simultaneity — Glissant’s tout-monde in our hands — can be the chaos opera or the concert of the world. Federated islands in an archipelago need comments to be like an island taxi we both enter briefly, you from the cafe, I from the dive bar.

      1 Risposta Ultima Risposta
      Rispondi
      • Topic risposta
      Effettua l'accesso per rispondere
      • Da Vecchi a Nuovi
      • Da Nuovi a Vecchi
      • Più Voti


      • Accedi

      • Accedi o registrati per effettuare la ricerca.
      • Primo post
        Ultimo post