Extension talk:JSpoiler

this does not work!

Undefined variable
Getting this error: Notice: Undefined variable: frame in /var/www/zavtra.bezslabostei.ru/extensions/JSpoiler/JSpoiler.php on line 109 --SimonLitt (talk) 07:34, 17 February 2013 (UTC)

Fixed the problem by adding the line "$frame = "";" between "global $defaultText;" and "$outputObj = $parser->recursiveTagParse( $input, $frame );". So that's how my code looks like: --Aduril (talk) 11:42, 4 March 2013 (UTC)

Undefined index
Getting this error: Notice: Undefined index: text in /var/www/northisup/mediawiki/extensions/spoiler.php on line 110

This problem can be fixed by replacing

with

--Gary Anderson 22:54, 14 February 2010 (UTC)

Break list

 * When using a numbered list, it breaks. How to solve the problem?

Problems with reference-extension
Hey, i have problems with this and the cite.php-extension(for the references).

If i have a spoiler after a reference the reference will not be displayed.

What can i do?

Solved
Now i just use the Collapsible Tables. They are FAR better.

Parser issue
At mediawiki 1.17 I get the following error:
 * Warning: in_array [function.in-array]: Wrong datatype for second argument in /var/.../includes/parser/ParserOptions.php on line 292

I fix it by replacing following lines to --SimonLitt 12:57, 8 September 2011 (UTC)

-
How can I download this extension for my MW1.16 if there isn't any link provided? Another question: For what reason is the instruction how to install it if noone can download it? 178.183.175.31 22:32, 15 May 2012 (UTC)
 * My mistake, I can download by manual copying a code to a php file. But more easier would be to provide a "pack" of necessary files to download (IMO).
 * 178.183.175.31 22:40, 15 May 2012 (UTC)

popup and inline
(Sorry for bad english)
 * add z-index : $spoilerCSS = "border: 1px solid black; background-color: #EEEEF2; padding: 5px 15px;position:absolute;z-index:100;";
 * change block to inline : styleObject.display = 'inline';\n".
 * delete ALL newLine in renderSpoiler function:
 * litlle bug: spoiler appears on side. It can be fixed by setting 0px to css-left or css-top ... or both...

Video embedding not working
Hi.

I have installed JSpoiler 1.2 and Mediawiki 1.22. Also using EmbedVideo and WidgetsFramework exstensions. Notifies you that since version 1.2 video under spoiler has stopped working.

Example code

With JSpoiler 1.1 everything works fine.

--89.222.167.6 06:36, 10 January 2014 (UTC)

Signatures not working
Hi, nice extension! We had a problem with signatures, which remained as ~ when enclosed within spoiler tags. This was a problem for us. I found that it was due to this bug in Mediawiki. I found that you could fix it by implementing the solution pointed to in comment 80. This requires the change to Parser.php specified on that page. You do not need to change CoreTagHooks.php. You then modify the setHook line in JSpoiler.php to $wgParser->setHook( "spoiler", "renderSpoiler", array('preSaveTrans' => true)); and then signatures work.