Freaky spoiler tags?

Anything that isn't directly related to Age Creation but that might be interesting to Age developers.

Re: Freaky spoiler tags?

Postby D'nial » Thu Feb 11, 2010 9:48 am

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
D'nial
 
Posts: 131
Joined: Thu Jun 25, 2009 12:45 pm
Location: In a world where all men are guilty until proven dead!

Re: Freaky spoiler tags?

Postby kaelisebonrai » Wed Mar 24, 2010 10:22 pm

Still broken as of 25/03/2010, using the default forum skin. Or at least the older content is...
Testing...
test spoiler Show Spoiler
User avatar
kaelisebonrai
 
Posts: 849
Joined: Sun Feb 03, 2008 3:27 am
Location: Perth, Western Australia

Re: Freaky spoiler tags?

Postby diafero » Thu Mar 25, 2010 3:01 am

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

Re: Freaky spoiler tags?

Postby Tsar Hoikas » Thu Mar 25, 2010 1:20 pm

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
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: Freaky spoiler tags?

Postby diafero » Thu Mar 25, 2010 2:14 pm

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

Re: Freaky spoiler tags?

Postby Tsar Hoikas » Thu Mar 25, 2010 3:13 pm

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
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: Freaky spoiler tags?

Postby Deledrius » Thu Mar 25, 2010 3:14 pm

It's working! Thanks!
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: Freaky spoiler tags?

Postby Aloys » Thu Mar 25, 2010 3:23 pm

testing Show Spoiler
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: Freaky spoiler tags?

Postby ZURI » Thu Mar 25, 2010 3:46 pm

Cheers! :)
MOULagain KI: 45001
User avatar
ZURI
 
Posts: 366
Joined: Mon Nov 16, 2009 8:34 pm
Location: Cincinnati

Re: Freaky spoiler tags?

Postby Egon » Thu Mar 25, 2010 11:20 pm

:) Show Spoiler
Egon #2052375
Who You gonna call? Guild of Doorcallers! #5356672
Eder Tsogal/Delin Marathon
Image
User avatar
Egon
 
Posts: 284
Joined: Fri Nov 16, 2007 9:45 pm

PreviousNext

Return to Off-Topic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron