Extension talk:CharInsert/Archive

newbie notes
As someone who is just starting out installing and using Wiki's (as in I just started today) I thought I'd add some notes for those who are just getting going and save the hour I just wasted trying to figure out what to do.


 * Download the php file.
 * Create a folder on your server in /extensions called CharInsert
 * dump the php file there
 * add the require_once("$IP/extensions/CharInsert/CharInsert.php"); line to the LocalSettings.php file in your root.

Thats the install

Now to edit the Edit page

go to: index.php/MediaWiki:Edittools?action=edit

This brings up the editor interface allowing you to edit text that will be displayed at the bottom of every Edit page. Put in this text


 * OR ANY OTHER TEXT, e.g. the one you may have derived from MediaWiki: Edittools ---Horst Salzwedel 23:52, 21 October 2007 (UTC)

and save.
 * It is just does not work. I did everything like you. Added line in localsettings.php, put charinsert.php in charinsert newely created folder in extensions. Is it about permissions for file? I did changed permission to 777. Do not work. Please help.--71.111.53.144 20:25, 11 July 2007 (UTC)


 * Thanks for the information! The part about editing the edit page should be on the main installation for further clarification. Note, you can also copy the source from http://en.wikipedia.org/w/index.php?title=MediaWiki:Edittools&action=edit for more options as well. 159.39.19.254 16:03, 16 August 2007 (UTC)

wikibits.js
I've removed the note about wikibits.js, since it was misleading several people into believing they had to replace core skin files to get the extension working. Unfortunately, this often caused several other things to break. robchurch | talk 18:17, 13 December 2006 (UTC)

It no works.

 * MediaWiki: 1.6.8
 * PHP: 5.2.0 (cgi-fcgi)
 * MySQL: 4.0.23a-log
 * Extensions:
 * Parser hooks:
 * CharInsert, allows creation of JavaScript box for inserting non-standard characters, by Brion Vibber
 * Extension functions:
 * setupSpecialChars
 * Parser extension tags:
 * is correctly connected to a MagicWord-hook and  is a existing Template)'' -Sent 11:31, 24 February 2007 (UTC)
 * I fixed this -in a way- by translating to UTF8
 * &amp;#123;&amp;#123;wiu|+&amp;#125;&amp;#125; &amp;#123;&amp;#123;&amp;#125;&amp;#125;
 * -Sent 12:43, 24 February 2007 (UTC)

Using CharInsert for commonly-used images
Is it possible to extend CharInsert to provide a "palette" (for lack of a better term) for commonly-used images in a wiki? I'd like the box to show the actual image that will be inserted into the entry, and upon click, would insert the appropriate wiki code to insert the image into the article.

I've goofed around with it some, but it always displays the text of the insert, and never the image I'm trying to call. --Achernar Dni 04:44, 8 August 2007 (UTC)

Some characters are not displayed correctly
I noticed that some characters weren't displaying at all and just gave me the usual � in FF (and rectangles in IE) that you would see if you lacked the fonts and/or language support necessary. I know that couldn't be the case, as they all displayed just fine on a Wikipedia edit page, and what I was using on my own wiki was a direct copy from what Wikipedia had.

The symbols in question that would not display for me were:

† à Š Ġ ム Π Р ɠ ˠ

While they would not display at all in the CharInsert toolbox, they do display just fine when viewed in the edit box or when written outside of the box. This same set of symbols exhibited the same behavior on another MediaWiki installation I have on another computer, also running on a Windows platform. --87.168.116.1 20:27, 8 September 2007 (UTC)

Same here, it displays fine in the edit window but not when rendered outside of the window. Characters: ≠ † ɠ à and some more. Could that have something to do with the MySQL database? Is this a MySQL5 bug? --84.176.183.153 09:56, 5 October 2007 (UTC)

The problem exists only on a Windows-platform, it works fine on a Linux(debian) platform.

I tried to analyze it and I find that the problem arises from a wrong behaviour of the php function preg_split that recognizes as a white space one of the two byte-codes of utf-8 code of these characters. So a workaround on a windows-platform is to substitute the following line (line 55 in file charinsert.php) preg_split( '/\\s+/', charInsertArmor( $data ) ) ) ); with split(' +', charInsertArmor( $data ) ) ) ); It has one limit: you can use only a space as character-separator.

--85.18.66.28 16:31, 20 November 2007 (UTC)

Non-inserted but clickable text
Is there a way to add text within the charinsert tag that is shown but not inserted when clicked? For example, some IPA characters (such as stress marks) are very small and hard to click on. I'd like to have "stress mark - '" shown below the edit box, but only the ' mark inserted.