Spoiler BBCode

A selection of BBCodes for use on your phpBB3 Forums.
  • Advertisement

Bookmark and Share

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

For this message the author LDM has received thanks: 2
TheFrog, tmd
User avatar
LDM
Site Admin
Site Admin
 
Posts: 1794
Joined: May 2008
Location: UK
Has thanked: 17 times
Have thanks: 122 times
Fine

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
User avatar
Ashley
Forum Member
Forum Member
 
Posts: 242
Joined: May 2008
Has thanked: 2 times
Have thanks: 90 times
Bored

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
Latvuska
Forum Member
Forum Member
 
Posts: 1
Joined: December 2008
Has thanked: 0 time
Have thanks: 0 time

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
User avatar
LDM
Site Admin
Site Admin
 
Posts: 1794
Joined: May 2008
Location: UK
Has thanked: 17 times
Have thanks: 122 times
Fine

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
ms308680
Forum Member
Forum Member
 
Posts: 4
Joined: July 2009
Has thanked: 0 time
Have thanks: 0 time

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
User avatar
LDM
Site Admin
Site Admin
 
Posts: 1794
Joined: May 2008
Location: UK
Has thanked: 17 times
Have thanks: 122 times
Fine

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,
User avatar
ms308680
Forum Member
Forum Member
 
Posts: 4
Joined: July 2009
Has thanked: 0 time
Have thanks: 0 time

Re: Spoiler BBCode

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

I was looking for something exactly like this, thanks!
User avatar
NeoFury
Forum Member
Forum Member
 
Posts: 5
Joined: June 2010
Has thanked: 0 time
Have thanks: 0 time

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
theendfear
Forum Member
Forum Member
 
Posts: 10
Joined: October 2010
Has thanked: 1 time
Have thanks: 0 time

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
User avatar
LDM
Site Admin
Site Admin
 
Posts: 1794
Joined: May 2008
Location: UK
Has thanked: 17 times
Have thanks: 122 times
Fine

Next


  • Advertisement

Return to PhpBB3 BBCodes



Who is online

Users browsing this forum: No registered users and 1 guest


Subscribe to the ModphpBB3 Forum RSS