Freaky spoiler tags?
- D'nial
- Posts: 131
- Joined: Thu Jun 25, 2009 12:45 pm
- MOULa KI#: 0
- Location: In a world where all men are guilty until proven dead!
Re: Freaky spoiler tags?
It's not just you. I've noticed several spoiler tags in other members' posts that don't work now.
If I had a signature, this is where it would be...
- kaelisebonrai
- Posts: 849
- Joined: Sun Feb 03, 2008 3:27 am
- MOULa KI#: 0
- Location: Perth, Western Australia
- Contact:
Re: Freaky spoiler tags?
Still broken as of 25/03/2010, using the default forum skin. Or at least the older content is...
Testing...
Testing...
- test spoiler Show Spoiler
-
- Deep Island Admin
- Posts: 2972
- Joined: Mon May 05, 2008 5:50 am
- MOULa KI#: 0
- Location: Germany
Re: Freaky spoiler tags?
The main issue is that this makes many old posts relying on spoiler tags unreadable 

I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.
"Many people's horizon is a circle with a radius of zero. They call it their point of view."
Deep Island Shard | Offline KI
"Many people's horizon is a circle with a radius of zero. They call it their point of view."
Deep Island Shard | Offline KI
-
- Councilor of Technical Direction
- Posts: 2180
- Joined: Fri Nov 16, 2007 9:45 pm
- MOULa KI#: 23335
- Location: South Georgia
- Contact:
Re: Freaky spoiler tags?
diafero wrote:The main issue is that this makes many old posts relying on spoiler tags unreadable
Thanks for the poke. I'll be doing a bit of maintenance on the server and forum later this afternoon. I theoretically understand why emails from the server are being blocked by Gmail, etc., so I'm going to try to fix that, update phpBB to the latest version, then I'll fix the spoiler tags. I wish that the spoiler tag wasn't a code mod. Those are annoying.

-
- Deep Island Admin
- Posts: 2972
- Joined: Mon May 05, 2008 5:50 am
- MOULa KI#: 0
- Location: Germany
Re: Freaky spoiler tags?
Thanks a lot for all your hard work, Hoikas 
In the phpBB3 forum I set up, I also added a spoiler tag, but using the "custom tag" feature - no code mod required! I could not get custom titles (for the collapsed spoiler), but the rest works. Here's the configuration:
BBCode usage:
HTML code:
It shows "Show hidden text" when collapsed and "Hide text" when expanded. However I don't know how it would deal with all the existing spoiler tags on these forums. Maybe if you manage to also get the custom title in there, it should work because it has the same syntax?

In the phpBB3 forum I set up, I also added a spoiler tag, but using the "custom tag" feature - no code mod required! I could not get custom titles (for the collapsed spoiler), but the rest works. Here's the configuration:
BBCode usage:
Code: Select all
[spoiler]{TEXT}[/spoiler]
HTML code:
Code: Select all
<dl class="codebox"><dt>Spoiler: <a href="javascript:void(0);" onClick="var spoiler = this.parentNode.parentNode.getElementsByTagName('dd')[0]; if ( spoiler.style.display == 'none' ) { spoiler.style.display = 'block'; this.innerHTML = 'Hide text'; } else { spoiler.style.display = 'none'; this.innerHTML = 'Show hidden text'};">Show hidden text</a></dt><dd style="display:none">{TEXT}</dd></dl>
It shows "Show hidden text" when collapsed and "Hide text" when expanded. However I don't know how it would deal with all the existing spoiler tags on these forums. Maybe if you manage to also get the custom title in there, it should work because it has the same syntax?
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.
"Many people's horizon is a circle with a radius of zero. They call it their point of view."
Deep Island Shard | Offline KI
"Many people's horizon is a circle with a radius of zero. They call it their point of view."
Deep Island Shard | Offline KI
-
- Councilor of Technical Direction
- Posts: 2180
- Joined: Fri Nov 16, 2007 9:45 pm
- MOULa KI#: 23335
- Location: South Georgia
- Contact:
Re: Freaky spoiler tags?
Thanks!
I made a few changes, so I guess I'll share them with you since it is your bbcode.
I made a few changes, so I guess I'll share them with you since it is your bbcode.
Code: Select all
[spoiler={TEXT1}]{TEXT2}[/spoiler]
Code: Select all
<dl class="codebox"><dt>{TEXT1} <a href="javascript:void(0);" onClick="var spoiler = this.parentNode.parentNode.getElementsByTagName('dd')[0]; if ( spoiler.style.display == 'none' ) { spoiler.style.display = 'block'; this.innerHTML = 'Hide Spoiler'; } else { spoiler.style.display = 'none'; this.innerHTML = 'Show Spoiler'};">Show Spoiler</a></dt><dd style="display:none" class="code"><code>{TEXT2}</code></dd></dl>

Re: Freaky spoiler tags?
- testing Show Spoiler