On 5/4/06, Hiram Clawson hiram@soe.ucsc.edu wrote:
Good Afternoon Wiki Fans:
Is is possible to configure the MediaWiki system to only allow additions to Discussion/Talk pages and prohibit editing other's additions to these pages ? I'd like to be able to capture a discussion during the development of an idea and thereby record its history without users being able to go back and edit previous inputs.
Hmmm.... Well, if the LiquidThreads/discussion overhaul that is being propossed for Google Summer of Code goes through...
One way I see to do this is to only allow the "section=new" editing of discussion pages but not allow the raw editing of discussion pages.
Look at EditPage.php. $this->section is assigned on line 409 in version 1.6.5. You will probably want to insert some logic after this line to manually set $this->section to 'new' when you are editing a discussion page. I am not sure what side-effects this will have, however. In addition, you will still see 'edit' links next to section titles on discussion pages but this hack will force their clicking to result in the "section=new" behavior while editing.
The only other way I see to do what you want is to write an 'ArticleSave' hook. The hook will return true if old content is not destroyed and false if it is. However, you will still have issues with the edit box displaying other's content. You might be able to write a hook for the edit page that removes other's content from the text box. I've never tried this and don't know if it is even possible.