Last modified: 2008-09-11 06:50:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10188 - Provide combo box containing protection expiration suggestions (as on Special:Blockip) to protection form
Provide combo box containing protection expiration suggestions (as on Special...
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
All All
: Normal enhancement with 5 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
: 11866 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2007-06-07 15:30 UTC by Adam Dziura
Modified: 2008-09-11 06:50 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

Adds dropdown expiry time to the protection form (2.08 KB, patch)
2008-02-06 07:19 UTC, wikibugs
Adds function considerChangingExpiryFocus from block.js (618 bytes, patch)
2008-02-06 07:20 UTC, wikibugs
fixes unprotection bug (2.08 KB, patch)
2008-02-06 07:43 UTC, wikibugs
Adds dropdown expiry time to the protection form (2.37 KB, patch)
2008-02-06 07:48 UTC, wikibugs

Description Adam Dziura 2007-06-07 15:30:46 UTC
Please change default time protection from infinite to 1 month ( or add this option to change (by polish admins) on [[Special:Allmessages]].

Or better: add a selection box a time for protection (like on a page to block users).
Comment 1 Rob Church 2007-06-07 18:32:49 UTC
Repurposing to the "better" option.
Comment 2 Raimond Spekking 2007-11-14 15:08:21 UTC
*** Bug 11866 has been marked as a duplicate of this bug. ***
Comment 3 oysterguitarist 2008-02-05 04:28:52 UTC
I like the "better" idea, this would make it easier for admin's to apply protection.
Comment 4 wikibugs 2008-02-06 07:19:28 UTC
Created attachment 4620 [details]
Adds dropdown expiry time to the protection form

I copied the basic structure from SpecialBlockip.php and renamed some of the variables for the protection page.  It still uses the same system messages from SpecialBlockip.php (MediaWiki:Ipboptions, MediaWiki:Ipbother and MediaWiki:Ipbotheroption) which will need to be updated.
Comment 5 wikibugs 2008-02-06 07:20:48 UTC
Created attachment 4621 [details]
Adds function considerChangingExpiryFocus from block.js

Adds the function considerChangingExpiryFocus from block.js to protect.js to enable hiding the other expiry time box when a value is selected from the dropdown box.
Comment 6 wikibugs 2008-02-06 07:43:57 UTC
Created attachment 4622 [details]
fixes unprotection bug

$this->mExpiry returned 'other' instead of a string with zero length.
Comment 7 wikibugs 2008-02-06 07:48:30 UTC
Created attachment 4623 [details]
Adds dropdown expiry time to the protection form

Sorry for the inbox spam, I managed to attatch the correct file this time.
Comment 8 oysterguitarist 2008-02-29 05:38:26 UTC
Attachement seems good, but I haven't tested it on a wiki yet.
Comment 9 Aaron Schulz 2008-09-11 06:50:48 UTC
Done in r40555

Note You need to log in before you can comment on or make changes to this bug.