Extension talk:Emoticons

Does not appear to work in 1.10.1 -

On version 1.11 I got the following error: "Detected bug in an extension! Hook fnEmoticons failed to return a value; should return true to continue hook processing or false to abort." Mediawiki apparently now requires a return value of true for continue or false for cancel.

Adding "return true" between line 67 and line 68 (just before the last curly brace) seemed to fix the problem for me.

Can't get it to work
In most recent version it gives a 500 internal server error.

return true fix doesn't work

Return true; definitely needed in extension.
* MediaWiki: 1.11.0 * PHP: 5.2.0 (apache2handler) * MySQL: 5.0.45

under this setup, adding return true; before the last } made it work fine.

Use the Mediawiki:Emoticons page for viewing purposes also
If you look at the parsed configuration page it doesn't look very suitable for using it as a description page for the authors to see which emoticons are available.

So for our wiki I replaced the line

$emoticonList = explode( "\n", $emoticonListArticle->mContent );

by the following

so that I can use some tags like nowiki or table to format the list so that it is viewable also.

The example

would show (imagine a suitable icon image) something like this:

and can still be parsed by the extension.

Depending on the tags you want to use in the definition lines you could add further strings to the emSearch array. Lines without the // separator (i.e. the table lines in the example above) don't need to be removed as they are ignored already by the unchanged extension. --Wolverine 16:43, 2 January 2008 (UTC)

UNIQ errors in MediaWiki 1.12.0
This extension causes UNIQ errors. As seen in the example below.

UNIQ3cb085dc58727e57-nowiki-00000000-QINU.

Someone might want to update it so that it can work in the latest version.

-Augrunt 03:18, 22 March 2008 (UTC)