Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: Luigi master on November 14, 2015, 08:19:45 PM

Title: Spoilers
Post by: Luigi master on November 14, 2015, 08:19:45 PM
A spoiler mod.
Syntax:
[spoiler]Hi![/spoiler]
Just a normal spoiler that says "Show content" when closed and "Hide content" When opened
[spoiler label=(input)]Hi![/spoiler] What you type in after label= is the spoiler name.
Just a normal spoiler that says "(input)" when closed and "(input)" When opened
[spoiler label=(input) openlabel=(input2)]Hi![/spoiler] What you type in after openlabel= is the spoiler name when opened.
Just a normal spoiler that says "(input)" when closed and "(input2)" When opened
So to do like an arrow thing:
[spoiler label=Chatlogs v openlabel=Chatlogs ^]No chatlogs for you![/spoiler]
Please do this!
Make it:
Free
2.0.11
Any user, even guests can use this
Title: Re: Spoilers
Post by: Steve on November 14, 2015, 08:33:07 PM
Did you search the mod site at all? There are numerous spoiler mods.

http://custom.simplemachines.org/mods/index.php?action=search;basic_search=spoiler
Title: Re: Spoilers
Post by: Luigi master on November 15, 2015, 07:22:00 PM
Quote from: Steve on November 14, 2015, 08:33:07 PM
Did you search the mod site at all? There are numerous spoiler mods.

http://custom.simplemachines.org/mods/index.php?action=search;basic_search=spoiler
Yes I did, but I need one with the 2 labels.
Title: Re: Spoilers
Post by: br360 on November 15, 2015, 07:38:52 PM
The two labels meaning show and hide? Wouldn't this mod do exactly what you are looking for? http://custom.simplemachines.org/mods/index.php?mod=3981
Title: Re: Spoilers
Post by: dougiefresh on November 16, 2015, 05:33:18 PM
I can add that functionality to my spoiler mod (http://custom.simplemachines.org/mods/index.php?mod=3981)
Title: Re: Spoilers
Post by: dougiefresh on November 18, 2015, 06:38:59 PM
@Luigi master: Version 2.1 of the Expandable Spoiler BBCode (http://custom.simplemachines.org/mods/index.php?mod=3981) (mentioned in last two posts) has two new parameters: hide and show.  If they are not specified, the default text is used.

Hope this helps you!
Title: Re: Spoilers
Post by: Luigi master on November 27, 2015, 06:35:52 PM
Quote from: dougiefresh on November 18, 2015, 06:38:59 PM
@Luigi master: Version 2.1 of the Expandable Spoiler BBCode (http://custom.simplemachines.org/mods/index.php?mod=3981) (mentioned in last two posts) has two new parameters: hide and show.  If they are not specified, the default text is used.

Hope this helps you!
Thanks! Its funny how your mod is the one I was using before...
Title: Re: Spoilers
Post by: dougiefresh on November 29, 2015, 02:40:46 PM
LOL!  That's cool!  Anytime you want to request a feature in my mods, just put the request in the support thread for that mod.....