Spoiler Plugin

Downloads: 8299
Category: Plugin
Compatible with: GetSimple 3.0 - 3.2

Last Updated: May 27, 2013
Tags: Spoiler
Author: ePirat
Author Website: http://epirat.de
Support: Support Forum

(3.8) 6 Votes

Plugin Description:

This Plugin adds the ability to use [spoiler] [/spoiler] BBCode Style on GetSimple Pages. It is optimized for "Innovation" Theme but I am working on it to get it work with other themes too.

Changelog

V1.9
  • Fixed some strict php errors
  • Fixed a bug with custom classes, everything should work fine now

V1.8
  • Added support for custom classes for button and div
  • Switched to domready to load faster

V1.7
  • Fixed another Firefox issue, where the Button/Link text won't change properly

V1.6
  • Improved JavaScript Code to work with IE6+ and Firefox

V1.5
  • Added Settings:
    • Set default show/hide text
    • Decide if button/link should appear after or before the spoiler
    • Switch between Link and Button

V1.4
  • Rewrote Javascript Code (thanks to frnkkpp, he did most of the work), cleaned up PHP code
  • Added ability to specify different text for show/hide
  • Changed default button text to Show Spoiler and Hide Spoiler
  • HTML produced by the spoiler plugin should now be valid

V1.3
  • Fixed a bug that prevented the regex to work in some rare situtions

V1.2
  • Now you can use [spoiler=Custom Text]My hidden Text[/spoiler] to give the spoiler button a custom caption
  • Will not add javascript and css code if no spoiler is used on the page
  • Improved onload function to not conflict with other plugins Thanks to singulae from the forum!

V1.1
  • Fixed Background-Color, now transparent, not white.
  • When Javascript is disabled the spoiler text color is now set to the same as the background, so that the spoiler text is definitely not visible.

Install Instructions:

Extract the "spoiler-plugin.zip" and upload the "spoiler_button.php" file to the /plugins folder of your GetSimple installation. (If you have an old version of it there, simply replace the file with the new one)

Archived Versions:

These are old versions of this file. Please use with caution as they are probably out of date and no longer supported. ShowHide