Last modified: 2009-08-27 14:15:49 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 T22404, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20404 - prefsectiontip for extra fields in user create
prefsectiontip for extra fields in user create
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-26 11:37 UTC by Max Sikström
Modified: 2009-08-27 14:15 UTC (History)
3 users (show)

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


Attachments
Patch for /trunk repos, should work some other versions too. (1.30 KB, patch)
2009-08-26 11:37 UTC, Max Sikström
Details
Adds help text for extra fields in user create form. (979 bytes, patch)
2009-08-26 17:28 UTC, Max Sikström
Details

Description Max Sikström 2009-08-26 11:37:29 UTC
Created attachment 6494 [details]
Patch for /trunk repos, should work some other versions too.

Extensions can add extra fields for user creation through $template->addInputField.

An optional field for that function to be able add a help text, like email-help would be helpful.
Comment 1 Niklas Laxström 2009-08-26 14:51:43 UTC
+function addInputItem( $name, $value, $type, $msg, $helptext=false ) {

Spaces around =

-$this->msgWiki( $inputItem['msg'] ) ?></label><?php
+$this->msg( $inputItem['msg'] ) ?></label><?php

Unrelated change?
Comment 2 Max Sikström 2009-08-26 14:57:22 UTC
Unrelated. Seems like a fix for another problem I failed to remove from the patch.

The msgWiki/msg-problem is that msgWiki adds <p> around the label, witch adds padding above the label.
Comment 3 Max Sikström 2009-08-26 17:28:17 UTC
Created attachment 6495 [details]
Adds help text for extra fields in user create form.

This patch should be correct then.
Comment 4 Alexandre Emsenhuber [IAlex] 2009-08-27 14:15:49 UTC
Applied in r55618.

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


Navigation
Links