Spoiler BBCode

A selection of BBCodes for use on your phpBB3 Forums.
User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Spoiler BBCode

Postby LDM » Mon Oct 27, 2008 4:29 pm

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
Image

Image

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.


User avatar
Ashley
Forum Member
Forum Member
Posts: 242
Joined: Fri May 30, 2008 10:15 pm
Your Forum/Website URL: http://

Re: Spoiler BBCode

Postby Ashley » Sat Nov 01, 2008 7:52 pm

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 ;)
Image

Latvuska
Forum Member
Forum Member
Posts: 1
Joined: Thu Dec 04, 2008 1:00 pm
Your Forum/Website URL: http://

Re: Spoiler BBCode

Postby Latvuska » Thu Dec 04, 2008 1:24 pm

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:

User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: Spoiler BBCode

Postby LDM » Thu Dec 04, 2008 2:52 pm

Admin Control Panel - Posting tab - Look left to BBCodes then 'Add a new BBCode'
Image

Image

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.


ms308680
Forum Member
Forum Member
Posts: 4
Joined: Wed Jul 01, 2009 2:04 pm
Your Forum/Website URL: http://

Re: Spoiler BBCode

Postby ms308680 » Wed Jul 01, 2009 2:07 pm

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

User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: Spoiler BBCode

Postby LDM » Wed Jul 01, 2009 2:23 pm

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?
Image

Image

ms308680
Forum Member
Forum Member
Posts: 4
Joined: Wed Jul 01, 2009 2:04 pm
Your Forum/Website URL: http://

Re: Spoiler BBCode

Postby ms308680 » Wed Jul 01, 2009 2:40 pm

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,

NeoFury
Forum Member
Forum Member
Posts: 5
Joined: Thu Jun 03, 2010 1:36 pm
Your Forum/Website URL: http://

Re: Spoiler BBCode

Postby NeoFury » Thu Jun 03, 2010 1:42 pm

I was looking for something exactly like this, thanks!

theendfear
Forum Member
Forum Member
Posts: 10
Joined: Tue Oct 26, 2010 11:49 pm
Your Forum/Website URL: http://bayapirata.com

Re: Spoiler BBCode

Postby theendfear » Tue Oct 26, 2010 11:52 pm

hello, thanks for the bbcode, but it don't work if i try to make a double spoiler
es
Spoiler: show
[spoiler]hello!!
[/spoiler]
can you make something to fix it??
sorry for my bad english...

User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: Spoiler BBCode

Postby LDM » Fri Oct 29, 2010 12:09 pm

Why would you need a double spoiler? Wouldn't that be like wanting a left handed screwdriver.
Image

Image

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.



Return to “PhpBB3 BBCodes”



Who is online

Users browsing this forum: No registered users and 6 guests