Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
A selection of BBCodes for use on your phpBB3 Forums.
-
LDM
- Site Admin

- Posts: 1794
- Joined: Thu May 29, 2008 6:51 pm
Post
by 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:
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:
Add any spoiler text in between the spoiler tags.
Example with image:
-
Ashley
- Forum Member

- Posts: 242
- Joined: Fri May 30, 2008 10:15 pm
Post
by 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

-
Latvuska
- Forum Member

- Posts: 1
- Joined: Thu Dec 04, 2008 1:00 pm
Post
by 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...

-
LDM
- Site Admin

- Posts: 1794
- Joined: Thu May 29, 2008 6:51 pm
Post
by LDM » Thu Dec 04, 2008 2:52 pm
Admin Control Panel - Posting tab - Look left to BBCodes then 'Add a new BBCode'
-
ms308680
- Forum Member

- Posts: 4
- Joined: Wed Jul 01, 2009 2:04 pm
Post
by 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
-
LDM
- Site Admin

- Posts: 1794
- Joined: Thu May 29, 2008 6:51 pm
Post
by 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?
-
ms308680
- Forum Member

- Posts: 4
- Joined: Wed Jul 01, 2009 2:04 pm
Post
by 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

- Posts: 5
- Joined: Thu Jun 03, 2010 1:36 pm
Post
by NeoFury » Thu Jun 03, 2010 1:42 pm
I was looking for something exactly like this, thanks!
-
theendfear
- Forum Member

- Posts: 10
- Joined: Tue Oct 26, 2010 11:49 pm
Post
by 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
can you make something to fix it??
sorry for my bad english...
-
LDM
- Site Admin

- Posts: 1794
- Joined: Thu May 29, 2008 6:51 pm
Post
by 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.