Spoilers are back

Discuss aspects of the community itself and talk about the people and ideas that make this place work.
User avatar
Damn You're Fine
Posts: 384
Joined: 2008.09.19 (01:47)
NUMA Profile: http://nmaps.net/user/littleviking001
MBTI Type: INTP
Location: Southern California
Contact:

Postby LittleViking » 2008.11.07 (01:49)

Sniperwhere wrote:
Huh

What must I pay to acquire the code to use this elsewhere XD

Post this in a template header so it appears on all pages:

Code: Select all

<script type="text/javascript" src="http://therealn.com/uploads/jquery-1.2.6.min.js"></script>
<script type="text/javascript" rel="jquery">

/* Spoiler */
$(document).ready(function() {
    $("div.spoiler p").hide();
    $("div.spoiler span").click(function () {
        $(this).next().slideToggle(250)
    });
});

</script>
And this is the BBCode definition:

Code: Select all

[spoiler={TEXT1}]{TEXT2}[/spoiler]

Code: Select all

<div class="spoiler">
    <span class="spoiler_title">{TEXT1}</span>
    <p class="spoiler_body">{TEXT2}</p>
</div>
And here's CSS if you want them bold and underlined like they are here:

Code: Select all

.spoiler span.spoiler_title {font-weight: bold; text-decoration: underline;}
Image
The last Metroid is in captivity. The galaxy is at peace...

Ice Cold
Posts: 221
Joined: 2008.10.07 (02:46)

Postby Sniperwhere » 2008.11.07 (03:01)

Oh wow, thanks! I actually didn't expect to get it so easily. :D

Edit: dang. Apparently it's not Invisionfree compatible.

User avatar
Damn You're Fine
Posts: 384
Joined: 2008.09.19 (01:47)
NUMA Profile: http://nmaps.net/user/littleviking001
MBTI Type: INTP
Location: Southern California
Contact:

Postby LittleViking » 2008.11.07 (05:00)

Sniperwhere wrote:Oh wow, thanks! I actually didn't expect to get it so easily. :D

Edit: dang. Apparently it's not Invisionfree compatible.
Should be compatible with anything. If you can't make custom BBCodes, then this won't work as easily.. Still possible, but probably more spoiler lag while it processes.
Image
The last Metroid is in captivity. The galaxy is at peace...

Ice Cold
Posts: 221
Joined: 2008.10.07 (02:46)

Postby Sniperwhere » 2008.11.07 (05:05)

Well, invisionfree doesn't have a section for inserting new BBcode. you can program it into the skin, but mine was hand coded by someone else so the code is very different than other sites making it even harder.

User avatar
Retrofuturist
Posts: 3131
Joined: 2008.09.19 (06:55)
MBTI Type: ENTP
Location: California, USA
Contact:

Postby t̷s͢uk̕a͡t͜ư » 2008.11.07 (07:25)

Sniperwhere,
That will be $7 in Monopoly money, please.
Gotta make a profit somehow...
[spoiler="you know i always joked that it would be scary as hell to run into DMX in a dark ally, but secretly when i say 'DMX' i really mean 'Tsukatu'." -kai]"... and when i say 'scary as hell' i really mean 'tight pink shirt'." -kai[/spoiler][/i]
spoiler

Image


Ice Cold
Posts: 221
Joined: 2008.10.07 (02:46)

Postby Sniperwhere » 2008.11.07 (17:20)

Can i fax it to you? XD

User avatar
Beyond a Perfect Math Score
Posts: 834
Joined: 2008.09.30 (06:37)
NUMA Profile: http://nmaps.net/user/Nexx
MBTI Type: INTJ
Location: California, USA

Postby Nexx » 2008.11.25 (21:35)

Sorry to revive this, but quotes don't work inside spoilers. They cause the spoiler to end right then and there.

This:

Code: Select all

[spoiler]normal text[quote="anyone"]quoted text[/quote][/spoiler]
Results in this:
Click to show/hide spoiler

normal text

anyone wrote:quoted text
[/spoiler]

EDIT: Why don't things just work inside spoilers? Why do exceptions need to be made?

EDIT 2: @incluye: Oh, I had no idea. But regardless, why should that matter?
Last edited by Nexx on 2008.11.26 (00:47), edited 1 time in total.

Yes sir, no sir, three bags full sir
Posts: 1561
Joined: 2008.09.26 (12:33)
NUMA Profile: http://nmaps.net/user/incluye
MBTI Type: ENTP
Location: USofA
Contact:

Postby otters » 2008.11.25 (23:30)

Avarin wrote:Sorry to revive this, but quotes don't work inside spoilers. They cause the spoiler to end right then and there.

This:

Code: Select all

[spoiler]normal text[quote="anyone"]quoted text[/quote][/spoiler]
Results in this:
Click to show/hide spoiler

normal text

anyone wrote:quoted text
[/spoiler]
It was always like that...
Image

User avatar
Damn You're Fine
Posts: 384
Joined: 2008.09.19 (01:47)
NUMA Profile: http://nmaps.net/user/littleviking001
MBTI Type: INTP
Location: Southern California
Contact:

Postby LittleViking » 2008.11.26 (01:30)

The board software forcefully ends any open tags when a quote is started. It would take more work than it's worth to recode things so that quotes could be put in spoilers but things like bold and size still end when a quote starts.
Image
The last Metroid is in captivity. The galaxy is at peace...

User avatar
Beyond a Perfect Math Score
Posts: 834
Joined: 2008.09.30 (06:37)
NUMA Profile: http://nmaps.net/user/Nexx
MBTI Type: INTJ
Location: California, USA

Postby Nexx » 2008.11.26 (03:06)

Oh, I see. Good to know.

Thank you, ever-informative LV.

User avatar
Remembering Hoxygen
Posts: 972
Joined: 2008.11.02 (06:13)
NUMA Profile: http://nmaps.net/user/rikaninja
Location: The darkness beyond hell.

Postby Rikaninja » 2008.12.25 (23:12)

Lol!
Awesome, though I alwayshate coding.
I might try it out some day ;)
Image

dreams slip through our fingers like hott slut sexxx
Posts: 3896
Joined: 2009.01.14 (15:41)
NUMA Profile: http://nmaps.net/user/Tunco123
MBTI Type: INTJ
Location: Istanbul

Postby Tunco » 2009.03.20 (14:05)

Rikaninja wrote:Lol!
Awesome, though I alwayshate coding.
I might try it out some day ;)
Me too...I might try it one day too...
spoiler

Image


User avatar
Phei Phei Pho Phum
Posts: 1456
Joined: 2008.09.26 (12:28)
NUMA Profile: http://nmaps.net/user/Pheidippides
MBTI Type: ISFJ
Location: New Jersey

Postby Pheidippides » 2009.03.20 (14:12)

http://forum.therealn.com/viewtopic.php?f=7&t=1587
Kablizzy wrote:You don't need to reply to every topic. In fact, most of you don't have anything to say on half of these topics... Please stop.
This topic was dead for three months. Was that really necessary?
Image
Follow me! @ninjarobotfeidi #nmaps


Who is online

Users browsing this forum: No registered users and 15 guests