Monikas
(JustMonika)
2024 年 4 月 10 日午前 4:34
1
Developing a plugin allows users to hide content from other users by using BBCode.
Add the following BBCode to your post:
[LOGIN]content to hide[/LOGIN]
: hides the content from the non-logged in users
[LIKE]content to hide[/LIKE]
: hides the content until the user likes the post
[REPLY]content to hide[/REPLY]
: hides the content until the user replies to the post
「いいね!」 6
Heliosurge
(Dan DeMontmorency)
2024 年 4 月 10 日午後 10:18
2
The first too seem pretty cool. Though the last one typically once the reply is posted it jumps the user to their reply. So they might not see the hidden content that is revealed upon creating the reply.
Heliosurge
(Dan DeMontmorency)
2024 年 5 月 17 日午後 4:12
3
I would add option to hide from users not the Op that are not in a targetted group.
This request is similar iirc was for a Tabletop RPGs forum
I’m my forums exclusievly for roleplaying purposes.
We have our character sheets partially hidden from other players’ eyes, so there’s always a surprise when it comes to characters’ abilities, which imposes safer, more realistic gameplay.
On an old phpBB 3.2 we used [HIDE] BBCode, which allowed to hide part of the post so it was visible only for staff members and author of the post.
Does Discourse allow it in any way, possibly via plugins?
If it’s impossible then maybe you could tell me how …
「いいね!」 1
How could this even be implemented server-side, since anyone can see a post’s raw contents?
Heliosurge
(Dan DeMontmorency)
2024 年 5 月 19 日午前 9:33
5
You would need a plugin I believe for server side
This looks like it should work but might need some fix ups
Finally got around to knocking this together as, https://github.com/Umbrella-CAST/discourse-umbrella-groupswitchdisplay Super simple, just removes the targeted DIV from the DOM based on is the current user in a group name “foobar” or not in the group via “!foobar”. That lets me have a simple toggle display of content like the below image.
Of course, if the component is disabled, then all of the content shows (since sans component the DOM doesn’t get trimmed down.) But this is good enough for w…
「いいね!」 1
Lilly
(Lillian Louis)
2024 年 9 月 9 日午後 1:49
7
I not really clear on how the hide details or spoiler functions don’t do this adequately.
「いいね!」 1
Moin
2024 年 9 月 9 日午後 1:56
8
Everyone can read text in “hide details” and spoilers. The request is to allow only logged-in users, or users who replied to or liked the post, to read this part of the post.
For example, you can share a discount code with your members in an announcement that everyone can read. At the moment, you would have to put the code into a different post in a different category.
「いいね!」 3
nwnuyhs
(Yang Hongsheng)
2024 年 9 月 9 日午後 8:18
10
Hidden Content Feature:
Use hidden code to conceal content, with the ability to set visibility conditions such as:
Visible after reply - Content becomes visible when a user replies to the post
Visible after login - Content is only visible to logged-in users
Visible based on trust level - Content is visible to users who have reached a specific trust level
For example:
[hide] content [/hide]
「いいね!」 1
Moin
2024 年 9 月 10 日午後 10:30
11
I think Show Spoiler Content on 'Like' is also included in this request
「いいね!」 3
This is a similar request:
But permissioning a wider group is already implemented?
[image]
What is being discussed here is having two types (aka “levels”) of whispers, one which is strictly for staff.
I guess you could summarise the requirement as: “add an additional whisper type that is staff only”, since we already have the arbitrary variety.
Or more flexibly “add an additional whisper type that can also be permissioned with specific groups” …
「いいね!」 2
Heliosurge
(Dan DeMontmorency)
2024 年 9 月 11 日午前 2:11
13
This one might get be harder/less useful in part.
As once you reply your taken away from the post your replying to. So the user would need to venture back to the post in question.
I do see value though in the overall feature request. For things like table top RPG type forums you might want to send a hidden message to a player or game master. For that purpose a theme-component can work as long as it is clear not to use for security sensitive info. For that a plugin would be needed.
「いいね!」 2