Extension talk:JSpoiler

From MediaWiki.org
Jump to: navigation, search

this does not work!

Contents

[edit] 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

  1. if ($argv["text"] == "") {
    

with

  1. if (empty($argv["text"])) {
    

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

[edit] Break list

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

[edit] 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?

[edit] Solved

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

[edit] 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

$localParser = new Parser();
$outputObj = $localParser->parse($text, $parser->mTitle, $parser->mOptions);
...
$output .= $outputObj->getText() . "\n";

to

$outputObj = $parser->recursiveTagParse($text);
...
$output .= $outputObj . "\n";

--SimonLitt 12:57, 8 September 2011 (UTC)

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox