vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=248145

Custom Title Spoiler Button (Smooth Version)
by GamBun
07 Aug 2010 02:55

2 Attachment(s)
This Mod supports all 3X Versions - 4.2.x Versions!
Due to the demands, I have created a new version of spoilers. The greatest complaint I received HERE, was the framing of the actual spoiler. So gone is the "ugly" box! It is really quite easy to remove, but I understand that coding can be confusing/foreign to some people, this is why, I am releasing a clean, "NO BOX" version. I will still support those who want the box, for the 3X version, until the migration of everyone to the 4.X.x is made completely mandatory.

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 really 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="Custom Button Title"]Hidden Content 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 (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) The image would go in your forums images/editor directory.

Remove tag if empty: Click "Yes"

...leave the rest at "No"

Click "Save" button & that is it!

The code will then be:

[SPOILER="Custom Button Title"]Hidden Content Here...[/SPOILER]

This also works to nested spoilers as well!

Nested Code Example:

[SPOILER="Button Title Here"]Hidden Content Here...[SPOILER="2nd Nested Button Title Here"]2nd Hidden Nested content Here...[/SPOILER][/SPOILER]


>>LIVE EXAMPLE<< (You can test there without signing up, if you want to see how it works).

It also works for the CMS suites! >>LIVE EXAMPLE<< (Please feel free to post comments & give it a try!)

ENJOY! :D

Please Note: if for any reason this spoiler system breaks when converting from 3X to 4.0 upgrade. Just go 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 BB code properly.

Juggernaut 07 Aug 2010 04:26

Great work man :D

GamBun 07 Aug 2010 17:26

Thanks! :)

myarmy 20 Aug 2010 05:09

nice one... thanks!

Zombo 21 Aug 2010 10:19

does not work on 4.0.6

GamBun 23 Aug 2010 17:28

Actually, it does. Where are you having the problem?

Afsoul 29 Aug 2010 14:16

This is what I need... Thank you very much :D

angeljs 27 May 2011 22:15

Exactly what I was looking for and working perfectly, thanks :)

GE-Tom 07 Oct 2011 07:19

Work great with 4.1.6. Thanks a lot. Easy to customize. Installed.

I adapted it slightly.

Spoiler close: http://s3.imgimg.de/uploads/customsp...ab7c7a1jpg.jpg
Spoiler open: http://s3.imgimg.de/uploads/customsp...1dea0dajpg.jpg


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

But i think its better to outsource the css code.

GamBun 14 Oct 2011 15:48

Nice GE-Tom! :)

ShackMaster 31 Oct 2011 15:11

Doesn't work for me on 4.1.4 ... It does not hide the spoiler... just shows tags.

ShackMaster 31 Oct 2011 15:19

If I change Use {option} to "No" it works fine.

MJJUltimate 03 Apr 2012 19:45

Quote:

Originally Posted by ShackMaster (Post 2263180)
If I change Use {option} to "No" it works fine.

Same here, I could only get it to work by disabling that option. Now it works fine :)

GamBun 20 Jun 2012 11:51

@ ShackMaster & MJJUltimate - This may be from personal styling to your site. In most cases it should be "Yes." I have added this bit of info in case others have the same issues. Enjoy the spoilers. :)

hamdanikcung 19 Feb 2013 04:25

doesnot work in mobile ?


All times are GMT. The time now is 12:01.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.