Forum Menu - Click/Swipe to open
 
Top Members

New spoiler bbcode

You have contributed 0.0% of this topic

Thread Tools
Appreciate
Topic Appreciation
To appreciate this topic, click 'Appreciate Topic' on the right.
Yasin's avatar
London, UK
5,633
Brother
271
Yasin's avatar
#1 [Permalink] Posted on 30th September 2011 11:06

Salam,

Hope this is useful.

To hide a portion of your post requiring the user to click a button to view that portion, use the spoiler bbcode

So, (without the space after [)

Code:
ENCODED_BBCODES_REPLACEMENTS
spoiler]This is hidden
ENCODED_BBCODES_REPLACEMENTS
/spoiler]
will give you

This is hidden

To change the text of the button, simply add =BUTTON_VALUE after spoiler. So.....

Code:
ENCODED_BBCODES_REPLACEMENTS
spoiler=I love this forum]hidden text/image etc goes here
ENCODED_BBCODES_REPLACEMENTS
/spoiler]
will give you

report post quote code quick quote reply
+1 -0Like x 1
back to top
Rank Image
abu mohammed's avatar
London
20,860
Brother
6,968
abu mohammed's avatar
#2 [Permalink] Posted on 30th September 2011 11:34
Great Addition

report post quote code quick quote reply
No post ratings
back to top
Yasin's avatar
London, UK
5,633
Brother
271
Yasin's avatar
#3 [Permalink] Posted on 30th September 2011 11:41
Jazakallah. And yes I notice the error, will fix shortly.
report post quote code quick quote reply
No post ratings
back to top
Rank Image
abu mohammed's avatar
London
20,860
Brother
6,968
abu mohammed's avatar
#4 [Permalink] Posted on 30th September 2011 11:43
And I thought I was doing it wrong. I edited the spoiler so many times. Well I'll give it its final shot in a bit.
report post quote code quick quote reply
No post ratings
back to top
Yasin's avatar
London, UK
5,633
Brother
271
Yasin's avatar
#5 [Permalink] Posted on 30th September 2011 11:54
Problem sorted. Just a small glitch
report post quote code quick quote reply
No post ratings
back to top
Rank Image
sweetmuslimahk1's avatar
Offline
manchester
576
Sister
547
sweetmuslimahk1's avatar
#6 [Permalink] Posted on 30th September 2011 22:40
Awesome
report post quote code quick quote reply
No post ratings
back to top
Rank Image
Acacia's avatar
Unspecified
1,732
Sister
517
Acacia's avatar
#7 [Permalink] Posted on 4th October 2013 16:51
How do you create a button in the post to link to hidden text or images?
report post quote code quick quote reply
No post ratings
back to top
Yasin's avatar
London, UK
5,633
Brother
271
Yasin's avatar
#8 [Permalink] Posted on 4th October 2013 17:11
Acacia wrote:
View original post

Post moved here to answer your question
report post quote code quick quote reply
No post ratings
back to top
Rank Image
Acacia's avatar
Unspecified
1,732
Sister
517
Acacia's avatar
#9 [Permalink] Posted on 4th October 2013 17:18
JazakAllah khayran!
report post quote code quick quote reply
No post ratings
back to top
Rank Image
Acacia's avatar
Unspecified
1,732
Sister
517
Acacia's avatar
#10 [Permalink] Posted on 4th October 2013 17:57
Am I doing something wrong here? It doesn't show as a spoiler button.
report post quote code quick quote reply
No post ratings
back to top
Rank Image
abu mohammed's avatar
London
20,860
Brother
6,968
abu mohammed's avatar
#11 [Permalink] Posted on 4th October 2013 19:42
Yes sister.

You have a space after the very first bracket in the beginning of the spoiler.
report post quote code quick quote reply
No post ratings
back to top
Rank Image
Acacia's avatar
Unspecified
1,732
Sister
517
Acacia's avatar
#12 [Permalink] Posted on 4th October 2013 20:00
Oh, excellent! JazakAllah khayran for pointing it out.
report post quote code quick quote reply
No post ratings
back to top
Rank Image
ummi taalib's avatar
Unspecified
1,667
Sister
1,604
ummi taalib's avatar
#13 [Permalink] Posted on 5th October 2013 09:17
report post quote code quick quote reply
+3 -0Like x 3
back to top
Rank Image
ummi taalib's avatar
Unspecified
1,667
Sister
1,604
ummi taalib's avatar
#14 [Permalink] Posted on 5th October 2013 09:19
tch...box worked but link didn't! thought i'd take the opportunity to promote the blog ) :
report post quote code quick quote reply
No post ratings
back to top
Rank Image
Taalibah's avatar
Unspecified
7,107
Sister
5,408
Taalibah's avatar
#15 [Permalink] Posted on 5th October 2013 09:19
Yep it worked...MashaAllah!

Spoiler worked....try link again.
report post quote code quick quote reply
No post ratings
back to top

 

Quick Reply

CAPTCHA - As you are a guest, you are required to answer the following:


In the above image: What part of the day is the background image (it's not day)?