Register Members List Search Today's Posts Mark Forums Read

Mod Options
ksjQuery Sliding Spoiler Details »
ksjQuery Sliding Spoiler
Mod Version: 0.1, by Raug (Member) Raug is offline
Developer Last Online: Jun 2011 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (0 vote - 0 average) Installs: 8
Released: 09 Feb 2011 Last Update: Never Downloads: 88
Not Supported Uses Plugins Auto-Template Additional Files Re-usable Code Translations External Content  

My very first attempt at a plugin so where else to start other than BB code (yet another one, right)?

In essence, everything this plugin does, can be done via a template edit and by creating 2 custom BB codes.

I created this little plugin based on some javascript by Andy Langton ( which, maybe not very efficiently, prevents problems when multiple spoilers are on one page. This is significant because many of the other jQuery spoilers I have tried could only handle one per page as a second or more would just mean no working spoilers at all. I have seen an alternate version using $(this.hash) in far less lines but I only tried this one and it worked which was good enough for me.

Installation Note: only tested on 4.1.1 but it should work on 4.x
1) Upload the file in the upload folder to your forum root (clientscript/ksspoiler.js).
2) Import the product (product-ksjqueryspoiler.xml)

The plugin adds two scripts (mine and jquery) to headinclude_css and manually inserts two custom BB codes called jspoiler. One version uses {option} and the other does not to allow for a little flexibility. I highly suggest that you customize the name and titles of the BB codes to your liking. All this is meant to do is to a utomate a couple easy steps (mainly because I haven't been able to learn any more than that ._. sorry!)

However, due to my lack of knowledge, the only way to fully uninstall the plugin is to uninstall the plugin and then manually deleting the custom BB code.

A live preview can be seen here near the bottom:


Credit to Andy Langton for writing the javascript

Download Now

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

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 [BB Code] Sliding Spoiler with jQuery bpr vBulletin 4.x Add-ons 4 10 Sep 2011 09:04

Old 10 Feb 2011, 17:39
mokonzi's Avatar
mokonzi mokonzi is offline
Join Date: Nov 2007
How does this deal with the sidebar previews that often reveal BBCode?
Mokonzi, home to the Xtended Mod and fansite for the X: The Threat and X: Reunion by Egosoft.
Reply With Quote
Old 11 Feb 2011, 20:52
mfnforex mfnforex is offline
Join Date: Jan 2010
Thank you
Six Sigma Black Belt
Reply With Quote
Old 14 Feb 2011, 09:25
Raug Raug is offline
Join Date: Apr 2008
Originally Posted by mokonzi View Post
How does this deal with the sidebar previews that often reveal BBCode?
Unfortunately, as far as I know, BB code just doesn't work with the forum side bar. I personally don't use it right now (and I don't really use the forums atm. I'm just trying to use vB in some way bit by bit since I paid for it and I only really need the CMS side where even Wordpress would be infinitely better). However, that aside, I haven't come across any type of fixes and my best guess is that a file edit will be required.
Reply With Quote
Old 16 Jul 2011, 18:54
Khriz's Avatar
Khriz Khriz is offline
Join Date: Apr 2011
Do not work me in vbulletin 4.1.4
Reply With Quote

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 21:27.

Layout Options | Width: Wide Color: