SPOILER bbcode... SMF forum type

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Suggested Hosts
User avatar
vellatechie
Registered User
Posts: 185
Joined: Fri Feb 01, 2008 7:33 pm

SPOILER bbcode... SMF forum type

Post by vellatechie » Mon Jun 16, 2008 9:47 am

http://www.nextgenblog.com/

click on show under GT video... i have seen similar bbcode in smf but it had show/hide buttons instead of text... its better than just marking entire text black

can we have that type of spoiler mod in phpbb 3??

tommekemc
Registered User
Posts: 457
Joined: Wed May 14, 2008 6:36 pm
Location: Belgium
Contact:

Re: SPOILER bbcode... SMF forum type

Post by tommekemc » Mon Jun 16, 2008 5:35 pm

I use this code:

Code: Select all

[spoiler]{TEXT}[/spoiler]

Code: Select all

<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Spoiler:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" 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.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>
show on posting page needs to be ticked on :p
my sig
my projects

images deleted because of the 6kb (wtf?) rule...

User avatar
vellatechie
Registered User
Posts: 185
Joined: Fri Feb 01, 2008 7:33 pm

Re: SPOILER bbcode... SMF forum type

Post by vellatechie » Wed Jun 18, 2008 7:15 pm

thanks a tonnnn :mrgreen:

Seiryuu
Registered User
Posts: 6
Joined: Tue May 20, 2008 9:35 am

Re: SPOILER bbcode... SMF forum type

Post by Seiryuu » Sun Jun 29, 2008 1:28 pm

Amazing work, works perfectly with my forum right away. Thanks for this. :D

Mahogany Rush
Registered User
Posts: 26
Joined: Wed Apr 28, 2004 6:34 am

Re: SPOILER bbcode... SMF forum type

Post by Mahogany Rush » Mon Jun 30, 2008 5:25 am

I miss the SPOIL tag which is different than this one. The SPOIL tag hid the video or pix with a little box that needed to be clicked on which allowed pages to load faster.

I can't find that one for phpbb3.01

Thanx

tommekemc
Registered User
Posts: 457
Joined: Wed May 14, 2008 6:36 pm
Location: Belgium
Contact:

Re: SPOILER bbcode... SMF forum type

Post by tommekemc » Mon Jun 30, 2008 7:23 am

so you mean: only load the contents if clicked?
my sig
my projects

images deleted because of the 6kb (wtf?) rule...

opalelement
Registered User
Posts: 315
Joined: Wed Dec 27, 2006 4:05 am

Re: SPOILER bbcode... SMF forum type

Post by opalelement » Mon Jun 30, 2008 4:24 pm

I am working on a custom hide bbcode for someone here: viewtopic.php?f=72&t=1039235

Its different but allows more customization.

Ac1ds0ld13r
Registered User
Posts: 25
Joined: Fri Oct 09, 2009 6:45 pm
Location: Virginia Beach!
Contact:

Re: SPOILER bbcode... SMF forum type

Post by Ac1ds0ld13r » Wed Oct 14, 2009 4:38 pm

I knew there had to be BBCode for this!

Thanks for putting it together. I <3 when my boards look clean.
Play By Post RP
All Your Game Are Belong To Us

User avatar
Dragosvr92
Registered User
Posts: 1450
Joined: Sat Sep 12, 2009 7:27 am
Location: Romania
Name: Dragos Valentin Rădulescu
Contact:

Re: SPOILER bbcode... SMF forum type

Post by Dragosvr92 » Thu Oct 15, 2009 2:46 pm

i need this also
but when i click the spoiler it dos not show up the text
Formerly known as TheKiller
3.0| Avatar on Memberlist 1.0.3

Ac1ds0ld13r
Registered User
Posts: 25
Joined: Fri Oct 09, 2009 6:45 pm
Location: Virginia Beach!
Contact:

Re: SPOILER bbcode... SMF forum type

Post by Ac1ds0ld13r » Sat Jan 30, 2010 3:23 am

Double check you got the code copied correctly (assuming you havent figured it out by now). I didnt have any issues with it.
Play By Post RP
All Your Game Are Belong To Us

User avatar
Dragosvr92
Registered User
Posts: 1450
Joined: Sat Sep 12, 2009 7:27 am
Location: Romania
Name: Dragos Valentin Rădulescu
Contact:

Re: SPOILER bbcode... SMF forum type

Post by Dragosvr92 » Sat Jan 30, 2010 12:22 pm

Ac1ds0ld13r would you look when was that posted ;)
Formerly known as TheKiller
3.0| Avatar on Memberlist 1.0.3

Ghislain
Registered User
Posts: 20
Joined: Sat Sep 07, 2013 8:50 am
Contact:

Re: SPOILER bbcode... SMF forum type

Post by Ghislain » Thu Sep 19, 2013 11:38 am

tommekemc does that code go in the HTML replacement box?

I have put this into my BBcode and it submitted ok.

The result I'm getting is:
here is some text [spoiler]and this is the spoiler text[/spoiler]
Is there something I'm missing?

User avatar
Lumpy Burgertushie
Registered User
Posts: 66735
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: SPOILER bbcode... SMF forum type

Post by Lumpy Burgertushie » Thu Sep 19, 2013 2:18 pm

Ghislain wrote:tommekemc does that code go in the HTML replacement box?

I have put this into my BBcode and it submitted ok.

The result I'm getting is:
here is some text [spoiler]and this is the spoiler text[/spoiler]
Is there something I'm missing?
instead of bringing up such an old post that may or may not even be relevant any more, please start a new one and describe your problem in detail. we need to know exactly what you have for bbcode, html replacement etc.
and exactly what you expect to happen when using this bbcode.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Ghislain
Registered User
Posts: 20
Joined: Sat Sep 07, 2013 8:50 am
Contact:

Re: SPOILER bbcode... SMF forum type

Post by Ghislain » Thu Sep 19, 2013 4:21 pm

Robert

I posted here because I used the code in tommekemc's post above, but it didnt work for me.

I placed it in the BBcode section of the ACP/Posting/add a new BBcode in the "HTML replacement" box.

Code: Select all

<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Spoiler:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" 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.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>
I placed [spoiler]{text}[/spoiler] in the "BBcode usage" box

and the result I got from entering the text, "here is some text [spoiler]and this is the spoiler text[/spoiler]",
was:
here is some text [spoiler]and this is the spoiler text[/spoiler]
I'm using phpBB3, and what I wanted to happen was a button to appear which would reveal or hide the text between [spoiler] and [/spoiler]

Thanks

Ghislain

P.S. should I still start a new post...and if so what would be a good heading?
Last edited by Ghislain on Thu Sep 19, 2013 4:25 pm, edited 1 time in total.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51867
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: SPOILER bbcode... SMF forum type

Post by Brf » Thu Sep 19, 2013 4:23 pm

Ghislain wrote: I placed [spoiler]{text}[/spoiler] in the "BBcode usage" box

Try

Code: Select all

[spoiler]{TEXT}[/spoiler] 

Locked

Return to “[3.0.x] MOD Requests”