[BUG]/[Feature Request] Spoiler not masking URLs

VibroAxe

Junior Administrator
The spoiler code section would appear not to mask urls, in the case of haven's google hack thing this was kinda difficult. I don't know how the spoiler code works, so masking links may be impossible, but, if this is the case, is there a way to STOP the BB code from autodetecting a url as a url, a tag or something, whihc forces it to be outputted in plain text?

 

thatbloke

Junior Administrator
The spoiler code section would appear not to mask urls, in the case of haven's google hack thing this was kinda difficult. I don't know how the spoiler code works, so masking links may be impossible, but, if this is the case, is there a way to STOP the BB code from autodetecting a url as a url, a tag or something, whihc forces it to be outputted in plain text?


er...

I'm not seeing the contents of the spoiler boxes at all? not sure if anyone else is experiencing this?
 

Ronin Storm

Administrator
Staff member
This should be fixed. Spoilers now work differently, however, to work around the oddities.

First, you can't read spoilers if you don't enable JavaScript. There's a little DOM magic used to display them, otherwise they're hidden.

Second, once displayed you can't undisplay them unless you reload the page. That said, I figure that if you want to read a spoiler you want to still be reading it in a minute or so...

Third, you can't tell how long a spoiler is. That might actually be a benefit.

However, this is now robust against any form of code, smilies, links or whatever. It just works. Tested on latest Firefox and IE7.

Give it a whirl and let me know.

Here's one spoiler.

Here's another spoiler just to prove that they're independent of each other.
 
G

Gombol

Guest
no, he dont need Brownie points, HE GETS A BROWNIE!!

brownie.slice-737720.jpg
 

thatbloke

Junior Administrator
This should be fixed. Spoilers now work differently, however, to work around the oddities.

First, you can't read spoilers if you don't enable JavaScript. There's a little DOM magic used to display them, otherwise they're hidden.

Second, once displayed you can't undisplay them unless you reload the page. That said, I figure that if you want to read a spoiler you want to still be reading it in a minute or so...

Third, you can't tell how long a spoiler is. That might actually be a benefit.

However, this is now robust against any form of code, smilies, links or whatever. It just works. Tested on latest Firefox and IE7.

Give it a whirl and let me know.

Here's one spoiler.

Here's another spoiler just to prove that they're independent of each other.

shininess.
 
Top