Page MenuHomePhabricator

Provide combo box containing protection expiration suggestions (as on Special:Blockip) to protection form
Closed, ResolvedPublic

Description

Author: adziura+wiki

Description:
Please change default time protection from infinite to 1 month (http://pl.wikipedia.org/w/index.php?title=PAGENAME&action=protect) 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).


Version: unspecified
Severity: enhancement
URL: http://pl.wikipedia.org/w/index.php?title=PAGENAME&action=protect

Details

Reference
bz10188

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:53 PM
bzimport set Reference to bz10188.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Repurposing to the "better" option.

  • Bug 11866 has been marked as a duplicate of this bug. ***

oysterguitarist wrote:

I like the "better" idea, this would make it easier for admin's to apply protection.

wikibugs wrote:

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.

attachment ProtectionForm.php.patch ignored as obsolete

wikibugs wrote:

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.

Attached:

wikibugs wrote:

fixes unprotection bug

$this->mExpiry returned 'other' instead of a string with zero length.

attachment ProtectionForm.php.patch ignored as obsolete

wikibugs wrote:

Adds dropdown expiry time to the protection form

Sorry for the inbox spam, I managed to attatch the correct file this time.

Attached:

oysterguitarist wrote:

Attachement seems good, but I haven't tested it on a wiki yet.