[Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Plug-in and third party software discussion.
Post Reply
tuska
Posts: 1382
Joined: Thu Jul 13, 2017 9:14 am

[Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by tuska »

Hi,

I suggest adding the "Spoiler BBCode" to the phpBB® Forum Software.

Reason:
With the "Spoiler" function it is possible to make forum posts clearer.
This is achieved, for example, by giving longer text contributions a title and showing or hiding the text as required.
Lines of programme code can also be hidden or shown with the spoiler.

Examples:
- Simple Spoiler BBCode
- Search queries in Total Commander using 'Everything'

Code: Select all

[spoiler title=Enumeration]
[list=*]
[*]Text
[*]
[/list]
[/spoiler]
Thanks in advance for checking the suggestion.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by raccoon »

I too like the [spoiler] code. And if we're adding phpBB extensions, one that collects Likes / Reactions would also be nifty as I would like to leave an acknowledgement of having read a post without actually replying as such. A Like can serve the context of appreciation, agreement or simple show of quiet engagement (installing the latest update, woohoo!)
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by void »

I will consider collapsible text and likes.

Thank you for the suggestions.

For now, please consider a simple TOC with headers:

Code: Select all

TOC Example:
[rurl=#download]Download[/rurl]
[rurl=#new]What's New[/rurl]
[rurl=#changes]Changes[/rurl]



[h1=download]Download[/h1]

[rurl=/Everything-1.5.0.1331a.x64-Setup.exe]Everything-1.5.0.1331a.x64-Setup.exe[/rurl]
[rurl=/Everything-1.5.0.1331a.x86-Setup.exe]Everything-1.5.0.1331a.x86-Setup.exe[/rurl]



[h1=new]What's New[/h1]
[list]
[*][rurl=/forum/viewtopic.php?f=12&t=9788]Property indexing, searching, displaying and sorting[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9789]Dark mode[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9790]Update in background[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9795#fast]Faster searching[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9791#natural]Natural sort[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9792]Index Journal[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9793]Content indexing[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9794]Everything Server[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9788#dupe]Find duplicates[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9796#virtual]Index virtual folders[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9797]Undo System[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9791#mix]Mix files and folders[/rurl]
[*][rurl=/forum/viewtopic.php?f=12&t=9796#fat]FAT indexing[/rurl]
[/list]



[h1=changes]Changes[/h1]
[list]
[*][rurl=/forum/viewtopic.php?f=12&t=9787&p=51165#p51165][1331][/rurl] fixed an issue with [rurl=/forum/viewtopic.php?f=12&t=12399&p=51119#p51115]moving volumes with the same serial number[/rurl].
...
[/list]
TOC Example:
Download
What's New
Changes



Download

Everything-1.5.0.1331a.x64-Setup.exe
Everything-1.5.0.1331a.x86-Setup.exe



What's New

Changes
tuska
Posts: 1382
Joined: Thu Jul 13, 2017 9:14 am

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by tuska »

void wrote: Wed Dec 14, 2022 2:12 am I will consider collapsible text ...
For now, please consider a simple TOC with headers ...
Thank you!
"TOC with headers" is also interesting for me...
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by NotNull »

raccoon wrote: Tue Dec 13, 2022 3:53 pm Reactions would also be nifty as I would like to leave an acknowledgement of having read a post without actually replying as such.
You can subscribe to a topic and get notifications for new posts:
2022-12-14 15_49_18-(19) [Suggestion] - phpBB® Forum Software - Add _Spoiler BBCode_ - voidtools for.png
2022-12-14 15_49_18-(19) [Suggestion] - phpBB® Forum Software - Add _Spoiler BBCode_ - voidtools for.png (33.28 KiB) Viewed 41116 times

As far as phpbb extensions go, I would like it if topics can be marked as solved.
Example from another phpbb forum (solved topics are marked by a green check-mark):
2022-12-14 15_52_55-(5) Ask For Help - AutoHotkey Community — Mozilla Firefox.png
2022-12-14 15_52_55-(5) Ask For Help - AutoHotkey Community — Mozilla Firefox.png (64.06 KiB) Viewed 41116 times
AntonyD
Posts: 39
Joined: Thu Nov 21, 2024 5:55 pm

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by AntonyD »

https://www.phpbb.com/customise/db/bbcode/spoiler_js/

It seems quite simple to just apply this extension, and we will get the long-desired feature. In a topic, there is often a need to describe something—but this might appear as somewhat bulky text. And only with the help of such spoilers can we achieve the goal of 'scanning the text' at a glance, making it easy to pick out the key points in it...

You don't even have to go far for an example.
The pictures in the post is above mine. They capture attention too much and it is impossible to focus clearly on the text
describing it. If we could hide these pictures under a spoilers, then everything would be much, much better.
Last edited by AntonyD on Tue Sep 30, 2025 9:07 am, edited 1 time in total.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by void »

edit: please don't use spoliers/details on the voidtools forums.

I don't want any hidden content on the forum.
AntonyD
Posts: 39
Joined: Thu Nov 21, 2024 5:55 pm

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by AntonyD »

Yes, thank you for your support.
And I already see that you've tried out this element. But either this is "too standard" tag, or you've chosen a very simple implementation of it as extensions. :?

The fact is that the word "SPOILER" is almost always associated with the behavior of a "collapsing node from a simplified tree view | nested view" and w/o any exceptions :roll: )))
That is, when the user doesn't make any effort to explain HOW to display the spoiler's content, the forum's engine automatically adds indentation for visual highlighting and inserts a some special symbol before of all spoiler's content... A plus sign, an arrow, a flashing indicator. The engine displays a tooltip for the action of clicking on this symbol.
When you click on a symbol the engine automatically opens the hidden area. After clicking and expanding the area, the engine changes the symbol for the opposite action (collapsing), and it changes the tooltip text accordingly.
This all is demonstrated in the GIF image that accompanies the description of the extension, which I shared in my previous post.

And your chosen current version of the SPOILER tag support does something very strange - it just shows a gray quadrilateral. Which, depending on what I wanted to put under this tag, can take up a huge amount of space on the page. And this tag support only allows you to make a single click to reveal the hidden content. This behavior is more typical of the HIDE tag. When you need to hide a small but important piece of information inside the text (An inline purposes for hiding info). For example a login and password for accessing a resource.
And it turns out that now it's not possible to intuitively apply the SPOILER tag - because its behavior will not be what is expected :oops: .

And yes, much later than you will spend time reading this text - I guessed that in your post you provided an example for supporting of added ANOTHER tag! It's like this - I couldn't understand for a very long time - why you wrote a text about opening a spoiler UNDER the spoiler itself. And it turned out that this is some new tag DETAILS. Which is much more similar to the expected SPOILER tag in terms of its behavior but not enough.

As you can see in your post the presence of the simple text "Click to show" does not mean that the user will actually click on these words immediately. These words are not separated from the text in any way, and there is no symbolism in this text-like-tooltip. Moreover, when I click and open the hidden text the body of the tooltip does not change in any way!!! The text still displays "Click to show"!!!
*******************************************************

Therefore, if possible, I would like to make the following suggestion:
Support for the SPOILER tag should be taken from the forum engine extension library, at least the one I mentioned in the link above.
Where the behavior of the rendered text on the page will most intuitively match the user's desire to use this tag.
or from here:
https://www.phpbb.com/customise/db/exte ... er_bbcode/

The current behavior of the SPOILER tag should be transferred to the HIDE tag.
Although the DETAILS tag closely resembles the behavior of the SPOILER tag, it is not sufficient to keep it in its current form for support purposes.
It can be hidden for now, and it might be possible to modify it later for a more useful behavior?
And by the way, I haven't found any official documentation stating that DETAILS exists for the phpbb engine :shock:


And once again, I express my great gratitude for this hard and painstaking work that you do every day.
Your work is very valuable to us. Thank you very much.
Last edited by AntonyD on Wed Oct 01, 2025 11:50 am, edited 1 time in total.
tuska
Posts: 1382
Joined: Thu Jul 13, 2017 9:14 am

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by tuska »

2void
Thanks a lot!

Can we please have these codes as well?

Code: Select all

[spoiler title=Titel]Text[/spoiler]
... AND an “eye” to hide or show the contents of the spoiler.
This would make it much easier to use the spoiler(!).
I'm not sure if this is possible with this CODE.

Here is an example:

Code: Select all

[spoiler title=5. F2 Search in found files/folder]
Text
[/spoiler]
2025-09-30_Spoiler_EYE_open-close.png
2025-09-30_Spoiler_EYE_open-close.png (34.51 KiB) Viewed 10903 times
AntonyD
Posts: 39
Joined: Thu Nov 21, 2024 5:55 pm

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by AntonyD »

tuska wrote: Tue Sep 30, 2025 9:21 am .........
But I already explained and suggested the same in my post above))
Even an “eye”-like idea - just take a look into my link to phpbb extensions online library.
Image
The diff is only not an “eye” - but a text hide/show.
tuska
Posts: 1382
Joined: Thu Jul 13, 2017 9:14 am

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by tuska »

AntonyD wrote: Tue Sep 30, 2025 1:49 pm
tuska wrote: Tue Sep 30, 2025 9:21 am .........
But I already explained and suggested the same in my post above))
I'm sorry, I had my entry window open for a long time and noticed too late that you had written something before me.
AntonyD
Posts: 39
Joined: Thu Nov 21, 2024 5:55 pm

Re: [Suggestion] - phpBB® Forum Software - Add "Spoiler BBCode"

Post by AntonyD »

No worries! On the contrary! It's actually good that you had the same thoughts about improving what has been done for now.
Post Reply