Unpin Restrictions

AI-generated summary

Kankuro wants to prevent regular users from unpinning important topics in the “Unpin Restrictions” discussion. dax suggests disabling the “automatically unpin topics” site setting, but notes that users can still unpin by clicking the pin icon if they know how. Kankuro and pfaffman discuss hiding the pin button with CSS as a potential solution. codinghorror confirms that hiding the button with CSS is the only way to prevent users from unpinning. cosdesign shares a CSS code snippet that hides the pin button for all groups except Staff and Team.

Is there any way to prevent regular users from unpinning topics? I’m well aware that many forums abuse the usage of pins, which is probably why Discourse allows members to unpin, but I only wish to pin the most important information and I want that to remain pinned until a moderator or admin unpins it.

Sure, you can disable the site setting automatically unpin topics that is the setting used to globally enable/disable the feature.

But users can still click the X and unpin the message right?

Yes, but only if they know that by clicking on the pin icon something changes.

Ah! And you know how to hide that button with CSS.

Is there a way to prevent this entirely without simply hiding the button with css?

Nope. Hide the button with CSS is the only way.

This is what I use and it applies to all other groups except Staff and Team.
PS: sorry for resurrecting “zombie” posts but other people might still find it useful.

body:not(.staff) #topic-footer-buttons .pinned-button,
body:not(.primary-group-team) #topic-footer-buttons .pinned-button{
    display: none;
}

body:not(.staff) #topic-footer-buttons .pinned-button:not(.is-hidden)+.topic-notifications-button,
body:not(.primary-group-team) #topic-footer-buttons .pinned-button:not(.is-hidden)+.topic-notifications-button {
    margin-top: 1em;
}