On Sun, 13 Mar 2005 08:56:50 +0100, f2396576@est.fib.upc.edu f2396576@est.fib.upc.edu wrote:
- To customize my own wiki, the 1.3.11 tar contains everytring I need? I mean,
the code I must see and reutilize is the .php only?
Well, without really knowing what you're trying to customise exactly, the answer is almost certainly yes: PHP isn't a compiled language, so everything that's running is there waiting to be hacked. Note that there's a lot of customisation you can do without altering the code, and various things which may or may not make what you want to do easy. Check out http://meta.wikimedia.org/wiki/Help:Contents for some pointers.
- How exactly handles concurrency Mediawiki? I mean, two people editing same
page at the moment, how handles it? By database, by .php (what archive), etc...?
If you submit a page and somebody else has saved a version since you clicked "edit", the code will first attempt to use "diff3" (if present and correctly referenced in LocalSettings.php) to merge the two sets of changes automatically; if that fails, you will be given an "edit conflict" screen with the two conflicting versions in textareas and a diff, and ask you to merge them by hand. Note that testing this requires logging in to two accounts, as conflicts between the same user are treated as exceptions. I believe most of the code related to this is in includes/EditPage.php
- Can Mediawiki call/integrate an application, like an external editor (also
free software)?
Well, as a web-based application, invoking an external editor is not really something MediaWiki can or should concern itself with - if the browser wants to invoke an external editor for textareas, then that's fine. There are a few extensions for Mozilla and/or Firefox that allow you to do this, for instance, and see http://en.wikipedia.org/wiki/Wikipedia:Text_editor_support for some tools (syntax highlighting etc) people have written for dealing with wiki markup in various editors.
If you actually just mean some automated task, and "external editor" is a red herring, then sure, you can integrate whatever you like - just find an appropriate place to put it in the source. PHP documentation can be found at http://php.net if you're not sure how best to call the program.