Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Custom Title Spoiler Button Details »
Custom Title Spoiler Button
Mod Version: 1.0.1, by GamBun (Member) GamBun is offline
Developer Last Online: Jul 2014 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (9 votes - 4.89 average) Installs: 84
Released: 05 Mar 2009 Last Update: Never Downloads: 11
Not Supported Auto-Template Re-usable Code Translations  

I have a Spoiler Tag Feature at my site that allows for a spoiler with a custom button title to be initially seen (great if you want to hint what is hidden inside).

I don't see anything exactly the same here...although some are similar... & have seen many requests for other spoiler ideas, so.... I thought I might share. Please be kind as this is my first shared hack.

Update: Spoilers still work in version 4.x.x (including suites). Spoilers may be used as intended, in all Blog posts, forum posts, & published article content (CMS) to hide hints/cheats. I will not support it anywhere else outside of posting areas.

It's real easy. Just log into the AdminCP=>Custom BBCodes=>Add New BB Code

Then do this:

Title: Spoiler
BB Code Tag Name: Spoiler

Replacement:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example: [spoiler=Title Text]Hidden Text Here[/spoiler]

description: Creates a button that hides/shows spoiler messages.

use {option}: Click "Yes" (Note: some have found they need to set this option to "No" due to personal styling, but in most cases it should be "Yes").

add the path to your "spoiler" icon The image would go in your forums images/editor directory. (Feel free to use the icon I added at the bottom of this post.. just right click on it to download it to your computer)

Remove tag if empty: Click Yes

...leave the rest at "No"

click "save" button & that's it!

>>LIVE EXAMPLE<< (You can test there without signing up, if you want to see how it works, but also not this is the newer "Smooth Version" the "Box Version" can be seen in the screen shots below).

The code will then be: [spoiler="Button Title Here"]Hidden Content Here...[/spoiler]

This also works to nested spoilers as well!

Below there is an icon to use as well. Just add your image of choice to your path... /images/editor directory.

ENJOY!

Please Note: if for any reason this spoiler system breaks when converting to 4.0 upgrade. Just to BB Code manager & delete it, go through the process of adding it again, as given above. Doing this will not make you lose any forum content as long as you use the the same code (i.e. if you modified the code I gave you, then you will have to do the same again for it to work as you want). Doing this will force the new version to read the bbcode properly. It also works in CMS, but I personally am not using it right now, as it's not relevant to my site. So let me know if you have any problems, & I'll test.

We have a smooth, "NO BOX" version HERE that also works for all 3X versions.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	scrnshot1.gif
Views:	1771
Size:	21.1 KB
ID:	95914   Click image for larger version

Name:	scrnshot2.gif
Views:	2188
Size:	19.4 KB
ID:	95915   Click image for larger version

Name:	scrnshot.gif
Views:	1547
Size:	21.2 KB
ID:	96079  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements Button spoiler godkillah vBulletin 3.7 Add-ons 11 30 Nov 2012 17:01
BB Code Enhancements Spoiler BB Code with Show/Hide Button Deadly Stream Modification Graveyard 22 22 Mar 2010 00:06

  #16  
Old 15 May 2009, 05:06
Seshat Diva Seshat Diva is offline
 
Join Date: Oct 2008
Real name: WebkinzDiva
Very easy, nice spoiler, thank you!

Installed!!
Reply With Quote
  #17  
Old 08 Jun 2009, 11:35
GamBun's Avatar
GamBun GamBun is offline
 
Join Date: Jun 2006
Originally Posted by Jafo232 View Post

This mod is best used for text type hidden content. It won't work well for moving content because of the fact it collapses. Sorry about that. :S

I am so glad to see this is working for many of you.

Last edited by GamBun; 08 Jun 2009 at 12:04. Reason: typo
Reply With Quote
  #18  
Old 22 Jun 2009, 00:34
Slam Da Brakes Slam Da Brakes is offline
 
Join Date: Oct 2008
Thanks. Definitely installed at my game guide site!
Reply With Quote
  #19  
Old 29 Jun 2009, 19:41
Jman423's Avatar
Jman423 Jman423 is offline
 
Join Date: Jan 2008
Originally Posted by JohnBee View Post
It's a nice idea(like it), but is there a way to hide the blank bar?
It doesn't always play nice with the theme and post content

--- later that day... ---


Okay, I fixed it
How did you hide the blank bar?
Reply With Quote
  #20  
Old 12 Jul 2009, 19:41
GamBun's Avatar
GamBun GamBun is offline
 
Join Date: Jun 2006
Originally Posted by Jman423 View Post
How did you hide the blank bar?
If you are refering to the box. Try changing this code...

border: 1px inset

to

border: 0px

Don't be afraid to play with the pixels to get desired results. You can always come back to the original code here.

I hope that helps.

Last edited by GamBun; 12 Jul 2009 at 19:58.
Reply With Quote
  #21  
Old 10 Sep 2009, 12:22
Drache Drache is offline
 
Join Date: Aug 2004
If I enable option yes then the old post with spoilers will not work. how do i fix this?
Reply With Quote
  #22  
Old 29 Nov 2009, 17:34
GamBun's Avatar
GamBun GamBun is offline
 
Join Date: Jun 2006
Originally Posted by Drache View Post
If I enable option yes then the old post with spoilers will not work. how do i fix this?
Can you share the old code for your spoilers. I don't know what you used. Just PM me about it.
Reply With Quote
  #23  
Old 30 Nov 2009, 12:12
ImYourLady ImYourLady is offline
 
Join Date: Dec 2008
Thanks. Works well with 3.8.2
Reply With Quote
  #24  
Old 01 Dec 2009, 16:01
The Smoking Gun The Smoking Gun is offline
 
Join Date: Jul 2009
Love it!!! Installed!!

Any chance of using {username} in title? So that each time a thread starter is displayed it is personalized by the member viewing it with their user name?

If so send the update alert I will tag too!

TSG!
Reply With Quote
  #25  
Old 19 Dec 2009, 02:59
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Will this work with vB4?
Reply With Quote
  #26  
Old 09 Jan 2010, 23:00
tonyzhou tonyzhou is offline
 
Join Date: Nov 2007
should apply to this one as well;

XSS

[spoiler=xss';alert('XSS');var y=']test[/spoiler]

click button twice
Reply With Quote
  #27  
Old 17 Jan 2010, 15:15
ndut ndut is offline
 
Join Date: Sep 2007
there's diffence if no title...& with title??
Reply With Quote
  #28  
Old 22 Mar 2010, 00:04
Nook_Neformat Nook_Neformat is offline
 
Join Date: May 2006
anyone knows how to make spoiler work with rss?
Reply With Quote
  #29  
Old 26 Mar 2010, 16:11
GamBun's Avatar
GamBun GamBun is offline
 
Join Date: Jun 2006
Originally Posted by Nook_Neformat View Post
anyone knows how to make spoiler work with rss?
Not really, This content was created for direct posting. Sorry.

Update: Spoilers still work in version 4.2.x, Tested in the Suites as well. Spoilers may be used as intended, in all Blog posts, forum posts, & published article content (CMS).

I will update the main content pages when 4.2.x becomes available in the BB CODE updates section.

Last edited by GamBun; 26 Mar 2010 at 16:22.
Reply With Quote
  #30  
Old 06 Apr 2010, 14:56
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Real name: Brian
Ok, installed but a slight problem with the look. I've edited the code from border: 1px inset to border: 0px and that works (see pic Unhidden) but the hidden pic still shows the long grey bar.

How can I remove this?
Attached Images
File Type: jpg Hidden.jpg (41.5 KB, 28 views)
File Type: jpg Unhidden.jpg (39.1 KB, 27 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:18.

Layout Options | Width: Wide Color: