Adding Spoiler tags for the forums

Talk about Yesterweb-specific projects and initiatives and the forum itself.
Post Reply
User avatar
GoonyBaloney
Newbie
Reactions:
Posts: 9
Joined: Sun Jan 08, 2023 5:39 pm
Pronouns: he/they

Adding Spoiler tags for the forums

Post by GoonyBaloney »

I'm surprised that this is not included in BBcode by default really. Spoiler tags could really be useful to condense long posts or hide large amount of embeds or you know... hide spoilers by putting them inside a box that can be opened to view the contents inside.

I only just noticed that after messing around with the BBcode features earlier and I was wondering if this could be added in the future? I was so used to forum sites having a spoiler feature that I'm weirded out by it's exclusion.
Image
User avatar
techramancer
Websurfer
Reactions:
Posts: 53
Joined: Fri May 13, 2022 2:42 pm
Pronouns: he/him
Website: https://techramancer.com/

Re: Adding Spoiler tags for the forums

Post by techramancer »

The [s]strikethrough[/s] tag also seems to not be a default, and is a nice text formatting tool to have, especially for transparent editing, which I'm personally a fan of.
User avatar
swiftpaw
Newbie
Reactions:
Posts: 11
Joined: Sun Jan 15, 2023 2:20 pm
Pronouns: it/its

Re: Adding Spoiler tags for the forums

Post by swiftpaw »

I noticed the lack of a strike tag myself too, I don't think I've ever actually been on a forum that didn't have it so I was surprised to not see it haha

I'd also support adding a spoiler tag or other type of hidebox.
Image
User avatar
AuzzieJay
Moderator
Reactions:
Posts: 27
Joined: Tue May 03, 2022 1:52 pm
Pronouns: He/Him
Website: https://auzziejay.com

Re: Adding Spoiler tags for the forums

Post by AuzzieJay »

I've mentioned this to Sadness! https://www.phpbb.com/customise/db/exte ... er_bbcode/

There are spoiler codes we may be able to implement!
Image
User avatar
Sadness
Site Admin
Reactions:
Posts: 90
Joined: Tue May 03, 2022 1:26 pm
Pronouns: she/her
Website: https://sadgrl.online/

Re: Adding Spoiler tags for the forums

Post by Sadness »

GoonyBaloney wrote: Mon Jan 16, 2023 12:31 am I'm surprised that this is not included in BBcode by default really. Spoiler tags could really be useful to condense long posts or hide large amount of embeds or you know... hide spoilers by putting them inside a box that can be opened to view the contents inside.

I only just noticed that after messing around with the BBcode features earlier and I was wondering if this could be added in the future? I was so used to forum sites having a spoiler feature that I'm weirded out by it's exclusion.
Hey! I just added the extension that Auzzie mentioned which enables spoiler tags.

Here is the syntax for their use:

Code: Select all

[spoiler]Spoilered text[/spoiler]
You can also select the "eye with a slash through it" icon at the formatting toolbar in a post. Here's how a spoiler looks:
Spoiler
Here is some hidden text!
This was a little harder to implement than I imagined - when I first added it, the spoiler was white-on-white text because of some theming files conflicts. Because it's an extension, it's styled separately from the theme for accessibility so I tried to give it a consistent theme that is always visible regardless of the theme you're using but it may not be perfect. If you notice this problem persisting, please let me know as well as which theme you are using.
Image
User avatar
GoonyBaloney
Newbie
Reactions:
Posts: 9
Joined: Sun Jan 08, 2023 5:39 pm
Pronouns: he/they

Re: Adding Spoiler tags for the forums

Post by GoonyBaloney »

Sadness wrote: Fri Feb 10, 2023 1:40 pm
GoonyBaloney wrote: Mon Jan 16, 2023 12:31 am I'm surprised that this is not included in BBcode by default really. Spoiler tags could really be useful to condense long posts or hide large amount of embeds or you know... hide spoilers by putting them inside a box that can be opened to view the contents inside.

I only just noticed that after messing around with the BBcode features earlier and I was wondering if this could be added in the future? I was so used to forum sites having a spoiler feature that I'm weirded out by it's exclusion.
Hey! I just added the extension that Auzzie mentioned which enables spoiler tags.

Here is the syntax for their use:

Code: Select all

[spoiler]Spoilered text[/spoiler]
You can also select the "eye with a slash through it" icon at the formatting toolbar in a post. Here's how a spoiler looks:
Spoiler
Here is some hidden text!
This was a little harder to implement than I imagined - when I first added it, the spoiler was white-on-white text because of some theming files conflicts. Because it's an extension, it's styled separately from the theme for accessibility so I tried to give it a consistent theme that is always visible regardless of the theme you're using but it may not be perfect. If you notice this problem persisting, please let me know as well as which theme you are using.
Awesome, this is great! My only complaint thus far is that the white color used for the spoiler is straining on the eyes, especially when using a dark theme like the default Yesterweb theme (which is what I'm using right now). That aside, thank you so much!
Image
Post Reply