OK, I got it now.
They included all the calls actually in the MediaWiki:Copyrightwarning
article. That's pretty smart.
On 10/6/05, Hans Voss <hans.voss(a)gmail.com> wrote:
Unfortunately, that doesn't do the trick.
The code in the CharInsert.php gets run (tested by inserting an echo command).
The 'setupSpecialChars' function gets called.
The following function defined by the hook: charInsert never gets called.
Manually calling charInsert from the EditPage.php does show the 'echo
DEBUG: charInsert called' but no other results whatsoever.
I checked the CharInsert code and there doesn't seem to be any other
trigger or condition that has got to be met.
Can someone point me in the right direction? THanks
On 10/5/05, Rob Church <robchur(a)gmail.com> wrote:
The functionality you describe is provided by an
extension called
CharInsert, available from CVS - see
http://cvs.sourceforge.net/viewcvs.py/wikipedia/extensions/CharInsert.
This needs to be placed in your include directory, and a line in
LocalSettings.php added as follows:
// CharInsert extension
include('includes/CharInsert.php');
Hope this answers your question.
Rob Church
On 05/10/05, Hans Voss <hans.voss(a)gmail.com> wrote:
Hi all,
The (dutch) Wikipedia has a nice box with all the common diacriticals
that you can click on and the wiki will enter them into the edit box.
See for example:
http://nl.wikipedia.org/wiki/blalbalbalblapagenonsense?action=edit and
look and the bottom of the page. (Do not forget to cancel your edits).
I am trying to get that to work on the wiki of a customer of mine.
I know that it is included as seperate pieces of JavaScript on the
final edit page in the browser. What I am looking for is where to
tweak the MW code.
I can think of several ways that I can achieve this in my own wiki.
The most clear one being editing includes/EditPage.php directly. This
however means that my changes will be gone on a next mediawiki code
upgrade (like to 1.5 release version).
I can't follow the code well enough the determine a 'safe' spot on
where to include this tweak.
As far as I can determine from looking at the EditPage.php code there
is no special flag I can use to trigger this info. (I can't get to the
EditPage.php on the mediawiki to check what they've done).
--
----
Met vriendelijke groeten / With kind regards
Hans Voss
---------------------------------------
skype: hans.voss
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
--
----
Met vriendelijke groeten / With kind regards
Hans Voss
---------------------------------------
skype: hans.voss
--
----
Met vriendelijke groeten / With kind regards
Hans Voss
---------------------------------------
skype: hans.voss