Skip to main content
GameDev.net gamedev.net
🔒 Locked

Spoiler tags revisited

Started by Alpha_ProgDes Jul 3, 2008 at 12:56 PM 19 replies 6k views
Original Post
Alpha_ProgDes
Alpha_ProgDes
Original Post Here.
Quote:
From the Hancock thread ***** SPOILERS in white text, mouse over to read ***** (...spoiler to the movie...) ***** END SPOILERS *****
Now the problem was that I have the classic theme and so his spoiler-hiding method didn't work the way he wanted. This reminded me of the original thread that I linked. So I was just wondering... how's that spoiler tag coming along? [smile]
Beginner in Game Development?  Read here. And read here.  
Sneftel
Sneftel
Yeah, I totally hate it when people give away the end of a global illumination algorithm I haven't seen yet.
Hodgman
Hodgman
Translation:
Quote:
Original post by Sneftel
Spoiler tags aren't required on a game development forum.

[edit]Seeing as this forum is pretty liberal with HTML (<- be prepared to refresh after clicking!) perhaps someone could post a HTML C&P template for hiding spoilers?

[edit2]Maybe something like this (this is pretty hacky tho, only allows one spoiler to work per page unless you edit the IDs to be unique[help])
Show spoiler<font id="icanhavhaxplz"></font>


Looks like:
Show spoiler


[Edited by - Hodgman on July 4, 2008 2:23:22 AM]
Alpha_ProgDes
Alpha_ProgDes
Yuo r deh l33t haXorz!!

That was awesome!!! Granted you probably just gave Superpig a hernia but that "Ring of Clickable Power" was just.... AWESOME!!!

So that &#106avascript is only going to work with one spoiler per page.... [sad]
Beginner in Game Development?  Read here. And read here.  
Hodgman
Hodgman
.... unless you edit the tag IDs ("icanhavhaxplz" and "yehcanhavhax") each time that you use the HTML.

BTW, I hope that abusing the forums like this isn't breaking some kind of "dont hack the forum" rule! :/
superpig
superpig
Sweet monkey jesus...

Edit: actually, making it the href of a link isn't so bad, but still, bloody hell...
Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse
Evil Steve
Evil Steve
Quote:
Original post by Hodgman
Translation:
Quote:
Original post by Sneftel
Spoiler tags aren't required on a game development forum.

[edit]Seeing as this forum is pretty liberal with HTML (<- be prepared to refresh after clicking!) perhaps someone could post a HTML C&P template for hiding spoilers?

[edit2]Maybe something like this (this is pretty hacky tho, only allows one spoiler to work per page unless you edit the IDs to be unique[help])
*** Source Snippet Removed ***

Looks like:
Show spoiler
Those are AWESOME [lol]
CmpDev
CmpDev
Quote:
Original post by Hodgman
Translation:
Quote:
Original post by Sneftel
Spoiler tags aren't required on a game development forum.

[edit]Seeing as this forum is pretty liberal with HTML (<- be prepared to refresh after clicking!) perhaps someone could post a HTML C&P template for hiding spoilers?

[edit2]Maybe something like this (this is pretty hacky tho, only allows one spoiler to work per page unless you edit the IDs to be unique[help])
*** Source Snippet Removed ***

Looks like:
Show spoiler

I nominate this for "GameDev post of the year" :)
Wan
Wan
Quote:
Original post by CmpDev
Quote:
Original post by Hodgman
Translation:
Quote:
Original post by Sneftel
Spoiler tags aren't required on a game development forum.

[edit]Seeing as this forum is pretty liberal with HTML (<- be prepared to refresh after clicking!) perhaps someone could post a HTML C&P template for hiding spoilers?

[edit2]Maybe something like this (this is pretty hacky tho, only allows one spoiler to work per page unless you edit the IDs to be unique[help])
*** Source Snippet Removed ***

Looks like:
Show spoiler

I nominate this for "GameDev post of the year" :)


Agreed!
greggles
greggles
Quote:
Original post by WanMaster
Quote:
Original post by CmpDev
Quote:
Original post by Hodgman
Translation:
Quote:
Original post by Sneftel
Spoiler tags aren't required on a game development forum.

[edit]Seeing as this forum is pretty liberal with HTML (<- be prepared to refresh after clicking!) perhaps someone could post a HTML C&P template for hiding spoilers?

[edit2]Maybe something like this (this is pretty hacky tho, only allows one spoiler to work per page unless you edit the IDs to be unique[help])
*** Source Snippet Removed ***

Looks like:
Show spoiler

I nominate this for "GameDev post of the year" :)


Agreed!


Maybe this also.
marcjulian
marcjulian
This &#106avascript in the href allows cookie stealing of the gamedev.net users,<br>thats not so good ^^<br>
Avatar God
Avatar God
Are you kidding? I'll willingly give cookies out for that one!
gsgraham.comSo, no, zebras are not causing hurricanes.
Alpha_ProgDes
Alpha_ProgDes
Well hodgman just solved our problem (and made me a little more interested in &#106avascript). So you know the drill, give him your love (love = points)!<br><br>And hodgman... I'm blinded by your awesomeness.<br><br>edit: I'm not going to name names but... THAT is how you participate in a thread [wink]
Beginner in Game Development?  Read here. And read here.  
Colin Jeanne
Colin Jeanne
Quote:
Original post by marcjulian
This &#106avascript in the href allows cookie stealing of the gamedev.net users,<br>thats not so good ^^<!--QUOTE--></td></tr></table></BLOCKQUOTE><!--/QUOTE--><!--ENDQUOTE--><br>I agree. While the insertion of arbitrary &#106avascript can do cool things it also allows for XSS attacks.</td></tr></table></blockquote>
Alpha_ProgDes
Alpha_ProgDes
Well I'll have to agree that the coolness of such code does not outweigh the security of the site (though... i kinda wish it did). But I used Hodgman's code in a non-Lounge thread with success.

So Superpig, do you want us to not use that code ever again?
Beginner in Game Development?  Read here. And read here.  
Feralrath
Feralrath
That is very awesome [grin]
snisarenko
snisarenko
This has wowed and scared me at the same time.

If Gamedev ever puts the login form (user and password) at the top toolbar, goodbye passwords. Even now the "Login" link can be changed to a phished site. This is really really bad.
Xelen
Xelen
That is pretty cool haha.

Though I think there is an easier solution, that might be a bit easier and not any security threats.

Create custom [ spoiler ] [ /spoiler ] tags, much like the source and code tags that are already available. Then when a person uses them, use the forum software to change it to something like so:

Spoiler Text Goes Here!


Then use the CSS headers for the different themes to specify the appearance for them. Just use the color and background-color properties, and set them to the same so that it cannot be read unless highlighted. You could also make the spoiler text a dead link, so you can use the .spoiler:hover psuedo-class. That way you can have it set the text color to a contrasted color to make it readable. You could also get fancy and add a border around the spoiler text, with a caption on the top saying that it was spoiler text.


Edit: Oh I guess that was already mentioned, hadn't read the other thread yet, assumed it was the one that had the spoiler in it that didn't work as planned.
Oluseyi
Oluseyi
A [spoiler] tag of some sort is in the spec for the next version of the site.
choffstein
choffstein
Quote:
Original post by Oluseyi
A [spoiler] tag of some sort is in the spec for the next version of the site.


...which will be rolling out in 2020 ;)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.