Post
Topic
Board Meta
Merits 1 from 1 user

Re: Hiding content (SMF patch)
by
PowerGlove
on 17/01/2025, 00:18:48 UTC
⭐ Merited by Felicity_Tide (1)

Finally my prayers were answered!  Smiley
Ha! I see you even proposed a button in the same location. Cheesy

(I can't say whether or not I've previously seen that topic, but I'd guess not; that topic exists in the time-wise hole between Meta topics that are either recent enough for me to have bumped into them naturally, or old enough for me to have bumped into them while reverse-reading Meta.)



Is it possible for a forum user/account to set their own preference so that every spoiler (hidden content) is either always hidden by default or always displayed?
It's possible, but I'd prefer the need for that to become very apparent before doing so.

And maybe not every user will notice on time, so is there a way to add hover feedback to the "show" button so that when someone who isn't aware hovers over it, a short text in the form of a tooltip will appear.
Yep. I put a tooltip in there originally. It started as "Click to reveal", but then I (reluctantly) changed it to "Click/tap to reveal" (or something similar; I don't remember exactly).

(I was in my early 20s when I unboxed my first iPhone, so you'd think that I'd be part of the mobile-first world, but, I'm not. I was blown away by the possibilities, sure, but, on the other hand, my mama didn't raise no fool, so it didn't take very long for me to get over the initial excitement and to recognize that much like with social media, this was something that, if I allowed it to, would just slowly chip away at a deeper kind of happiness in me, in exchange for an artificial and always-temporary boost to a much less satisfying kind of happiness. More and more, and for many years now, I go out of my way to avoid using my smartphone, to the point of placing it in a wooden box in one of my spare rooms and then just forgetting about the contemptible thing for weeks at a time, so, using it as infrequently as I do, and then anyway only as an actual telephone, I genuinely couldn't say with very much confidence what might sound "right" to a modern ear: Tap? Touch? Fingerbang?)

Anyway, I then changed it to "Interact to reveal". I left it that way for a month or two (while working on other stuff), and when I came back to it with fresh eyes it looked wrong to me, so I took it out.

I think maybe "Reveal hidden content" would work. It's a simple thing for theymos to add himself (it's just a title="Reveal hidden content" added to the <button> element within each of the two new 'before' => ... lines present in the second diff).



Even better if BBcode still works inside the hide-tags.
It does. Smiley

(You can even nest both [hide] and [hide-inline] tags to make content that can only be revealed once other content has been revealed; I'm hoping that not too many ding-dongs will estimate it funny to make irritating use of hide-nesting.)

I don't mind not having a hide-button in the editor, it would be totally fine if this is one of the few forum's hidden features.
Yep. In that case, theymos only has to consider the first two diffs. (Though, I do like the icon, both because it looks natural to me next to those other low-resolution, hard-alpha-channel icons, and because adding it is really very simple; that toolbar is one of the few things I've found in the SMF codebase that can be extended without too much thought.)