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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12188, the corresponding Phabricator task for complete and up-to-date bug report information.
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...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Normal enhancement with 5 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://pl.wikipedia.org/w/index.php?t...
: patch, patch-need-review
: 11866 (view as bug list)
Depends on:
Blocks:
  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: ---


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

Description Adam Dziura 2007-06-07 15:30:46 UTC
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).
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.


Navigation
Links