Extension talk:ShoutBox

From MediaWiki.org
Jump to navigation Jump to search

PHP Warning[edit]

The extension works but I get an error in my php error log file at every load of the shoutbox extension:

PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in ...root.../extensions/ShoutBox.php on line 170; which is:

$wgShoutBox->placeholderCorrections( $parser, &$text );
--Subfader 11:41, 21 August 2007 (UTC)

Hi, personally solved the problem by removing the & before $text. -- Jean-François Gariépy 19:49, 16 septembre 2008
Solution

Yes, I removed the & before $text as suggested above and this seems to fix it. This changes line 213 from:

  $wgShoutBox->placeholderCorrections( $parser, &$text );

to:

  $wgShoutBox->placeholderCorrections( $parser, $text );

-- BrainDestroy

External CSS[edit]

This function needs a way to provide the external-css to use, using the wiki-code parameters instead of only php variables.
This way it will be much more usefull and dynamic on usage.
--TriMoon 08:07, 30 January 2011 (UTC)