Pin Privacy Icons

Pin Privacy Icons

Salvatos
18th Aug, 2023
33 installations 9 likes

A simple plugin that adds a lock icon next to pinned property and relation names in the entry sidebar (and dashboard widgets set to show pinned properties/relations) to indicate whether they are public or private. Never second-guess yourself again with hiding sensitive information!

Since only campaign admins can see private properties anyway, the plugin keeps things tidy by never showing property lock icons to other users. Everyone can see relation visibility icons so they can keep track of their own player secrets.

Customization

By default, the plugin shows icons for each possible status: locked or unlocked for properties, and all five visibility options for relations. You can add the following lines to your campaign CSS under Theming to hide any of the icons if you only want a reminder for some of those states. Or add content between the quotation marks to use a different icon, emoji or text =)

/* Turn off pinned property privacy icons */
:root {
	--public-attribute-icon: ""; /* Remove this line to show the unlocked icon again */
	--private-attribute-icon: ""; /* Remove this line to show the locked icon again */
	--self-only-connection-icon: ""; /* Remove this line to show the Me Only icon again */
	--self-admins-connection-icon: ""; /* Remove this line to show the Me and Admins icon again */
	--members-only-connection-icon: ""; /* Remove this line to show the Members Only icon again */
}

Alternatively, you could turn off icons for most users but display them for admins by replacing :root { with this selector in the above code:

body:not(.is-admin) {

Want to show appreciation for my plugins or request one-on-one CSS help? I accept tips on Ko-fi (no account needed): Support me on Ko-fi.com

Latest version 2

Released 2 years ago on 18th Aug, 2023

Now also handles pinned connections.

Install

User comments & reviews

No comments yet.


Share your comments

Have an idea or want to thank the plugin's authors? Share it with a comment!

Only subscribed users can leave comments.