Freaky spoiler tags?

Anything that isn't directly related to Age Creation but that might be interesting to Age developers.
User avatar
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?

Post by D'nial »

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...
User avatar
kaelisebonrai
Posts: 849
Joined: Sun Feb 03, 2008 3:27 am
MOULa KI#: 0
Location: Perth, Western Australia
Contact:

Re: Freaky spoiler tags?

Post by kaelisebonrai »

Still broken as of 25/03/2010, using the default forum skin. Or at least the older content is...
Testing...
test spoiler Show Spoiler
diafero
Deep Island Admin
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
MOULa KI#: 0
Location: Germany

Re: Freaky spoiler tags?

Post by diafero »

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
Tsar Hoikas
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?

Post by Tsar Hoikas »

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.
Image
diafero
Deep Island Admin
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
MOULa KI#: 0
Location: Germany

Re: Freaky spoiler tags?

Post by diafero »

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:

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
Tsar Hoikas
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?

Post by Tsar Hoikas »

Thanks!

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>
Image
User avatar
Deledrius
Gehn Shard Admin
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm
MOULa KI#: 23298

Re: Freaky spoiler tags?

Post by Deledrius »

It's working! Thanks!
User avatar
Aloys
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
MOULa KI#: 0
Location: France (GMT +1)
Contact:

Re: Freaky spoiler tags?

Post by Aloys »

testing Show Spoiler
User avatar
ZURI
Posts: 366
Joined: Mon Nov 16, 2009 8:34 pm
MOULa KI#: 0
Location: Cincinnati
Contact:

Re: Freaky spoiler tags?

Post by ZURI »

Cheers! :)
MOULagain KI: 45001
User avatar
Egon
Posts: 284
Joined: Fri Nov 16, 2007 9:45 pm

Re: Freaky spoiler tags?

Post by Egon »

:) Show Spoiler
Egon #2052375
Who You gonna call? Guild of Doorcallers! #5356672
Eder Tsogal/Delin Marathon
Image
Post Reply

Return to “Off-Topic Discussion”