Hello everybody, I am trying to run a wiki of my own on Linux basig in Mediawiki (I used xampp to running the LAMP environment), and have some questions:
- 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?
- 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...?
- Can Mediawiki call/integrate an application, like an external editor (also free software)?
Thanks in advance
Jordi
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.
At 01:26 PM 3/13/05, Rowan Collins wrote:
---snip--- 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.
---snip--- I have noticed when editing articles on WikiPedia, that I'll sometimes get an edit conflict presentation, although I'm sure that I'm the only one editing. And there won't be any major difference between the versions presented. So I'll just tell it to save one.
I've had one similar situation on my wiki, and I couldn't get out of it. I had to abandon and come back in fresh.
Ideas?
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
On Sun, 13 Mar 2005 09:32:19 -0600, =James Birkholz= j.birchwood@verizon.net wrote:
[double-snip]
I have noticed when editing articles on WikiPedia, that I'll sometimes get an edit conflict presentation, although I'm sure that I'm the only one editing. And there won't be any major difference between the versions presented. So I'll just tell it to save one.
Did you check the edit history to see if there was actually somebody else editting at the same time? If there isn't "any major difference", presumably there is *some*? In which case, what is it that makes you think these aren't just common-or-garden edit conflicts?
I've had one similar situation on my wiki, and I couldn't get out of it. I had to abandon and come back in fresh.
What do you mean by "couldn't get out of it"? What did you attempt to do, and what was the result?
It's hard to diagnose the situation you're describing without a bit more detail.
Lot of thanks, Rowan!
About the external editor and customise: my aim is to create a collaborative editor in the web, any-user-friendly (apt to everybody), to manage .po (traduction files). A bit to use applications like KBabel, but without installings nor not-scientifics stuff: simply a web page that allows the thing that KBabel or other editors allow.
My project boss told me wasn't necessary to recreate an editor, as free software allows their use, so probably I will "fusionate" a wiki of mine with Kbabel or something.
I looked things as Zope, but I think, and more with your responses, that Mediawiki is good to my aim, and the LAMP is very used. So, I will explorate more the PHP.
Jordi
Quoting Rowan Collins rowan.collins@gmail.com:
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.
-- Rowan Collins BSc [IMSoP] _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org