Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    Add Highlight/Pin a specific post within a topic

    Pianificato Fissato Bloccato Spostato Uncategorized
    highlightpinpost
    2 Post 2 Autori 8 Visualizzazioni
    Caricamento altri post
    • 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.
    • downpw@community.nodebb.orgD Questo utente è esterno a questo forum
      downpw@community.nodebb.org
      ultima modifica di

      Hello @baris @julian

      Is it possible to add the ability for admins and moderators to visually highlight a specific post within a topic, directly from the post's edit/tools menu (the ⋮ ellipsis menu) ?

      Currently, NodeBB only allows pinning an entire topic to the top of a category. There is no native way to draw attention to a specific reply or post within a long thread.

      This is particularly useful when:

      • A moderator or admin posts an important update mid-thread (e.g. rule changes, announcements, warnings)
      • A staff message needs to stand out from regular user replies
      • A thread is reopened with new conditions and the relevant post needs to be immediately visible

      Right now, the only workaround is to manually add custom CSS targeting the post's data-pid attribute which is not user-friendly and requires admin-level CSS knowledge.

      When enabled, the post would:

      • Display a visible banner/label above the post content (e.g. "📌 Important staff message" or other message)
      • Have a distinct visual style (colored border, background) to stand out from regular posts
      • Be toggleable (highlight / remove highlight)
      • Optionally allow a custom label text to be set

      Suggested UI

      • In the ⋮ post tools menu: 📌 Highlight this post
      • A modal or inline input to optionally set a custom label
      • A highlighted post could expose a data-highlighted attribute or a .highlighted class for theme-level styling

      Current Workaround

      li.material[component="post"][data-pid="XXXXX"]::after {
          content: "📌 Important staff message";
          position: absolute;
          top: 0; left: 0; right: 0;
          background: #f39c12;
          color: #fff;
          font-weight: bold;
          padding: 6px 14px;
      }
      

      Example

      68725f2f-f460-462c-a03b-b32385a23d27-image.jpeg

      This works but requires manual CSS editing per post and breaks on theme changes.

      Many thanks

      https://community.nodebb.org/assets/uploads/files/1778537820914-68725f2f-f460-462c-a03b-b32385a23d27-image.jpeg

      julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
      • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
        julian@community.nodebb.org @downpw@community.nodebb.org
        ultima modifica di

        @DownPW it sounds like you are looking for the "suggested answer" part of the question and answer plugin.

        When an answer is selected, it is floated to the top of the replies.

        1 Risposta Ultima Risposta Rispondi Cita 0
        • Primo post
          Ultimo post