Extension talk:EditWarning

I get this error:

Fatal error: Cannot redeclare fneditwarning (previously declared in D:\Server\mediawiki-1.10.0\extensions\EditWarning\EditWarning.php:42) in D:\Server\mediawiki-1.10.0\extensions\EditWarning\EditWarning.php on line 50

how can I solve this problem?

--84.59.136.197 23:32, 25 November 2007 (UTC)


 * Hi! Sorry for the late response. This was just a little bug which is fixed now. Just grab the updated tar.gz from server. --Nemphis 14:27, 30 November 2007 (UTC)

Editing in different sections
Alice wants to edit Section "foo" at page "FooBar". Now Bob wants edit Section "bar" at the same page (FooBar) too. He gets a warning message that says Alice is currently editing the page. Is it possible to disable this message in the case that Alice and Bob are editing different Sections?
 * The extension doesn't care about sections currently. But the next version will support sections. Then two users won't get a warning message if they work on different sections. --Nemphis 15:32, 26 September 2008 (UTC)

Sidebar
I installed this extension on a 1.10.1 installation. When I edit a page my sidebar and other supporting content fails to appear. All that shows is the Editing area along with the buttons below. Is this a known problem? or Is it simply some conflict with my heavily extended installation. @media all { 	#siteSub, #footer, .portlet { display:none; } } to: /* @media all { 	#siteSub, #footer, .portlet { display:none; } }*/ --Nemphis 20:22, 18 June 2008 (UTC)
 * Does it look like that: [[Media:EditWarning_editing.png]]? --87.179.199.94 17:24, 13 June 2008 (UTC)
 * Yeah, anyone got a fix for this? I have fresh installation of 1.12.0 and I too have the same problem so I suppose this isn't a conflict with other extensions 212.160.172.70 14:19, 18 June 2008 (UTC)
 * Hi! This is not a bug, it's a feature! :) The extension hides everything except the editor area to make the user clicking on the "Cancel" button. If you don't like this behavior, just change the file article_edit.css from:

French translation
Hi, this extension is very good. So I translate it into french. You can get the files here. I hope it could be usefull for anybody.--Add 18:09, 17 December 2007 (UTC)

Two questions

 * Can the extension be changed to recognize anonymous edits, too?
 * I think that's not possible. The problem is, that the extension needs to identify every user, which is editing the page. That's a bit difficult with anonymous users. --Nemphis 19:55, 24 January 2008 (UTC)
 * If the edit lock is implemented, can it be turned off on a project that uses the extension? Omegatron 14:05, 23 January 2008 (UTC)
 * Yes. The lock will be optional. --Nemphis 19:55, 24 January 2008 (UTC)

Bug
I love the extension but it seems to have a little bug. It seems that if the first editor cancels out of editing the page, the extension still thinks the person is editing it. Can someone help solve this? I really like this extension. Also, is there a time-out? Can a person hold the page for days? Ed (February 2, 2008)
 * This is a known problem. If any editor cancels the editing, the entry in the database will not be deleted. But the regular timeout of 10 minutes prevents holding a page over days. I try to fix this behavior soon. --Nemphis 09:28, 3 February 2008 (UTC)

EditWarning 0.3 beta
The new version is out! It should look nicer and work better. Grab it while it's hot!

Plans for the future: --Nemphis 17:25, 30 March 2008 (UTC)
 * Support more templates.
 * Improve recognation of editing aborts.
 * Page lock.
 * Basic handling of anonymous users.

Great job Nemphis! Thank you for updating the extension. Very useful! Ed D (May 6, 2008)

Error when rolling back recent changes
Hi everybody! When rolling back recent changes, I'm getting this error:

Warning: Missing argument 9 for fnEditWarning_save in [my_wiki_folder]/extensions/EditWarning/EditWarning.php on line 143

Any ideas how to avoid this error? Thanks! --89.12.5.60 15:12, 26 June 2008 (UTC)


 * Thanks for your report! I fixed this problem with the 0.3.2 release. --Nemphis 15:39, 13 July 2008 (UTC)

Fatal error: Call to undefined function bcdiv
Hi, I get this error: Fatal error: Call to undefined function bcdiv in [Wiki Folder]/extensions/EditWarning/EditWarning.php on line 105

Can someone help? -- Thi.


 * You have to compile php with bcmath


 * hi, i'm also getting this error. How to compile php with bcmath? Thanks! --LizK 09:25, 25 August 2008 (UTC)
 * Add this to the beginning of EditWarning.php:

if( !function_exists( "bcdiv" ) ) {   function bcdiv( $first, $second, $scale = 0 ) {       $res = $first / $second; return round( $res, $scale ); } }

Some bugs
1. If the default page is not called index.php, tpl_(notice|warning).html include wrong files (or 404 error).
 * Thanks for your report! This behavior is fixed with the 0.3.2 release. --Nemphis 15:44, 13 July 2008 (UTC)

2. Not possible to lock individual sections.

I solved the first by just modifying the tpl*.html files manually (ereg_replace could be used to fix it permanently). I will have a look at locking by sections, if at all possible, will do something to enable it eventually...

Great work, thanks for your code.


 * The possibility to lock individual sections is planned for the 0.4 release I'm currently working on. Stay tuned! --Nemphis 15:44, 13 July 2008 (UTC)

Downloading the latest version
I'm having trouble downloading the file. The tar file gives me "Error reading header after processing 0 files". Is there an alternate link? Is there a way around this problem? Ed D (Sept 28, 2008)