Page 1 of 2

Spoiler BBCode

Posted: Mon Oct 27, 2008 4:29 pm
by LDM
This will add a Spoiler BBCode to your phpBB forum. You can add any content within the spoiler.

BBCode:

Code: Select all

[spoiler]{TEXT}[/spoiler]
HTML:

Code: Select all

<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em;"><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;"><span onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') {  this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>Spoiler: </b><a href=\'#\' onClick=\'return false;\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Spoiler: </b><a href=\'#\' onClick=\'return false;\'>show</a>'; }" /><b>Spoiler: </b><a href="#" onClick="return false;">show</a></span></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>
Helpline:

Code: Select all

Spoiler: [spoiler]Add content here[/spoiler]
Example in use:
Spoiler: show
Add any spoiler text in between the spoiler tags.
Example with image:
Spoiler: show
Image

Re: Spoiler BBCode

Posted: Sat Nov 01, 2008 7:52 pm
by Ashley
I have been looking for this one. I saw another spoiler tag that wasn't as good. You might want to fix the image in the example though ;)

Re: Spoiler BBCode

Posted: Thu Dec 04, 2008 1:24 pm
by Latvuska
I'm sorry.... i'm very new to phpbb or modphpbb...

May i know where to write that code in my phpbb ??

sorry... for stupid question... :cray:

Re: Spoiler BBCode

Posted: Thu Dec 04, 2008 2:52 pm
by LDM
Admin Control Panel - Posting tab - Look left to BBCodes then 'Add a new BBCode'

Re: Spoiler BBCode

Posted: Wed Jul 01, 2009 2:07 pm
by ms308680
Just a quick question about this topic, I had created my own custom BBCode awhile back, and I would like to use this. One thing I noticed was any old Spoiler Tags did not refresh to the old status, I have to go and add a space or something in the post to get it to take the new tag.

Is there a simpler way to refresh the entire board instead of having to go post to post?

Thanks

Re: Spoiler BBCode

Posted: Wed Jul 01, 2009 2:23 pm
by LDM
Yea that should be easy enough. Use the html insert from the actual spoiler tag you want to use but call the tag with the code you used last time. Does that make sense?

Re: Spoiler BBCode

Posted: Wed Jul 01, 2009 2:40 pm
by ms308680
I believe I did that, I just replaced the old bbcode HTML with the one at the top of the post. The BBCode was the same so it did not chage, just the html. Just now I have on the forum random

Code: Select all

[spoiler] what in the world [/spoiler]
showing like that on the board instead of the new spoiler.

My old spoiler was just a text and background color change.

I am just looking for a way to refresh all the posts instead of having to go to each post since it did not refresh.

thanks,

Re: Spoiler BBCode

Posted: Thu Jun 03, 2010 1:42 pm
by NeoFury
I was looking for something exactly like this, thanks!

Re: Spoiler BBCode

Posted: Tue Oct 26, 2010 11:52 pm
by theendfear
hello, thanks for the bbcode, but it don't work if i try to make a double spoiler
es
Spoiler: show
Spoiler: show
hello!!
can you make something to fix it??
sorry for my bad english...

Re: Spoiler BBCode

Posted: Fri Oct 29, 2010 12:09 pm
by LDM
Why would you need a double spoiler? Wouldn't that be like wanting a left handed screwdriver.

Re: Spoiler BBCode

Posted: Fri Oct 29, 2010 2:22 pm
by theendfear
i need double spoiler because i have a forum of download,so when many users make the same relase with the double spoiler everything is more orderly...

es: author 1
spoiler:
dvdrip version spoiler
dvd-5 version spoiler

author 2
dvdrip version spoiler
dvd-5 version spoiler
ecc...

Re: Spoiler BBCode

Posted: Sat Oct 30, 2010 1:16 am
by LDM
Would this not be okay?

Author 1
Spoiler: show
dvdrip version spoiler
Spoiler: show
dvd-5 version spoiler
Haven't heard of a spoiler in a spoiler before but let me have a think about it, it could be done.

Cisco if you are reading, any ideas? I know you are a man for BBCodes.

Re: Spoiler BBCode

Posted: Sat Oct 30, 2010 1:44 am
by theendfear
yep,but with the double spoiler it could be more orderly,however on ipb and vb bullettin the double spoiler works, i tried to copy the source code but don't work,there is the same problem...
I hope that you will invent something!!! thanks in advance!!

Re: Spoiler BBCode

Posted: Sat Oct 30, 2010 2:30 am
by cisco007
I am really having a hard time, undestanding exactly what it is you want, a spoiler within a spoiler, why can't you do one inside the other!?

Re: Spoiler BBCode

Posted: Sat Oct 30, 2010 3:05 pm
by theendfear
i don't understand what you said(my english is quite bad),do you ask me if the spoiler can be inside other spoiler?
the answer is no...
Spoiler: show
hello
Spoiler: show
helloworld