A selection of BBCodes for use on your phpBB3 Forums.
LDM
Site Admin
Posts: 1786 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: 1786 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: 1786 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: 1786 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.
theendfear
Forum Member
Posts: 10 Joined: Tue Oct 26, 2010 11:49 pm
Post
by theendfear » Fri Oct 29, 2010 2:22 pm
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...
LDM
Site Admin
Posts: 1786 Joined: Thu May 29, 2008 6:51 pm
Post
by LDM » Sat Oct 30, 2010 1:16 am
Would this not be okay?
Author 1
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.
theendfear
Forum Member
Posts: 10 Joined: Tue Oct 26, 2010 11:49 pm
Post
by theendfear » Sat Oct 30, 2010 1:44 am
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!!
cisco007
Staff
Posts: 501 Joined: Tue Oct 07, 2008 3:44 am
Post
by cisco007 » Sat Oct 30, 2010 2:30 am
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!?
theendfear
Forum Member
Posts: 10 Joined: Tue Oct 26, 2010 11:49 pm
Post
by theendfear » Sat Oct 30, 2010 3:05 pm
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...