Commit graph

64 commits

Author SHA1 Message Date
Andrew Garrett
9831d50371 Fix bug 19261 by saving the username as the signature if it is submitted empty 2009-08-07 16:06:06 +00:00
Tobias
6df30513dd using wgOut->parseInline for signature preview in preferences. following r54454 2009-08-07 14:44:32 +00:00
Aryeh Gregor
e0834ecdbf Start using some HTML 5 form features
autofocus attribute added in some places; this looks like it's respected
by both recent Opera and recent WebKit.  Its function is
self-explanatory.  :)  I used this in a few obvious places like
Special:UserLogin and Special:ResetPass to focus the first field in the
form.  Could be used in other places too: Special:Search, etc.

required attribute added in some places.  This is only supported in
recent Opera at the moment.  Also self-explanatory: it won't allow form
submission if the field is empty.

For stuff using HTMLForm (i.e., Special:Preferences), validation will be
done for integers and floats.  Browsers that support this (recent Opera)
will not allow non-integers to be submitted for integer fields, will not
allow non-floating-point values to be submitted for float fields, and
will enforce any min/max values specified.  Opera also gives little up
and down arrows to allow the user to increment/decrement the value in
addition to letting them edit the field as text.

For HTMLForm and account creation, the email input type is used for
e-mails.  This enforces a sane set of values for e-mails (alphanumerics
plus some ASCII punctuation, with an @ in it).  Again, this is supported
only by recent Opera (yay Opera!).  Note that this is actually more
restrictive than what we currently check for on the server side; it
might be sane to tighten up our server-side checks to forbid e-mail
addresses that HTML 5 forbids.

In all cases, the extra features aren't added if $wgHtml5 is false, and
will be ignored by non-supporting browsers.

The major room for further improvement here is use of the pattern
attribute.  We can have the client refuse to submit the form unless it
matches a regex!  The HTML 5 spec says that if a title attribute is
provided, it should be a message that explains what the valid values
are and browsers should provide it to the user if the regex doesn't
match, so it's not a usability problem.  I didn't bother adding that
anywhere at this point because it would require adding new messages, but
it should be easy to do.  Note of course that HTMLForm should be updated
to verify that pattern matches on the server side as well -- this way we
have a clean, unified way of ensuring that our client and server checks
are the same.
2009-08-07 03:32:20 +00:00
Tobias
a6d37a81d5 Adding signature preview on Special:Preferences and introducing help text for signature. (bug 16836) 2009-08-05 14:45:21 +00:00
Andrew Garrett
802384c2c3 (bug 19798) High-level documentation for Preferences. 2009-07-31 10:42:34 +00:00
Niklas Laxström
4c2d645ef3 I'm being bold here, proposed solution to:
* (bug 16697) Unicode combining characters are difficult to edit in some browsers
Adds font style option to preferences and adds default override for Lingala (ln)
2009-07-28 15:37:59 +00:00
Niklas Laxström
bb07e068bf * (bug 14454) "Member of group(s)" in Special:Preferences causes language difficulties 2009-07-28 15:10:42 +00:00
Andrew Garrett
427de60fef Allow HTML in message emailnotauthenticated, fixes formatting regression caused by r53173 and bug 19820 2009-07-27 10:32:18 +00:00
Shinjiman
0a114fd1ea Tweak the language code display more comply with the BCP 47 standards, using a new global function wfBCP47(). 2009-07-24 17:41:01 +00:00
Raimond Spekking
18b5fb369b Fix a regression from the preference rewrite: The help messages for maximum values were lost.
Tweak 'en' messages: Remove () for consistency with other help messages
2009-07-24 08:09:17 +00:00
Aryeh Gregor
7b66b14738 Add opt-in RSS feed for watchlist
Authentication is via a token entered in preferences, if not blank.  If
you set a token in your preferences, the following sort of link will
generate the RSS feed:

api.php?action=feedwatchlist&list=watchlist&wluser=Simetrical&wltoken=91c1ef18279f9c24ccf67a79e899ae4d2a3201bc

I haven't actually added the <link> tag to Special:Watchlist, since I've
done enough coding for one night.  Someone else can feel free to do
that (otherwise people might get kind of confused :) ).

An auto-generated random token is suggested to the user on the pref page
so that they don't have to be too creative.  Pref help text is rather
underemphasized in the default style, though.

It would be worth considering making this opt-out instead of opt-in,
but that would require some voodoo magic to get the default prefs to
work right (since we'd need a different value for each user).  We might
set the default to some function of user id + secret site-specific value
to avoid having to store the values in the database.

Since the feature is implemented via the API, it only works if the API
is enabled.  Some API people might want to review my code for sanity.

Bug: 471
2009-07-24 01:22:06 +00:00
Purodha B Blissenbach
567e1d6bc6 Allow date/time separation in the data following MediaWiki:prefs-registration 2009-07-20 02:14:54 +00:00
Aryeh Gregor
5ed6a1ec3a Allow non-integral days for watchlists and RC
Fixes bug 19296.  This was a regression due to the preferences work.
2009-07-17 22:19:02 +00:00
Aryeh Gregor
906ac9016a Adjust error message to be clearer for empty var 2009-07-09 01:03:57 +00:00
Roan Kattouw
8eb5691cf1 Fix missing global declaration 2009-07-08 17:07:39 +00:00
Andrew Garrett
2cae0f1d65 Put registration time in local timezone 2009-07-06 18:50:33 +00:00
Chad Horohoe
c27ffd34fa (bug 19468) $wgEnotifWatchlist disabled, but option available on preferences 2009-07-04 01:46:41 +00:00
Andrew Garrett
fd6dd8b4ed (bug 18760) Do not show any email-related preferences if $wgEnableEmail is off. 2009-07-03 13:14:11 +00:00
Raimond Spekking
526a29459d * (bug 19450) Use formatNum for "Number of edits" in Special:Preferences 2009-06-30 19:06:34 +00:00
Jack Phoenix
1772cec17c coding style tweaks 2009-06-21 14:16:11 +00:00
Raimond Spekking
c6d6f2199e * Show user preference 'Use live preview' if $wgLivePreview is enabled only 2009-06-17 18:23:36 +00:00
Andrew Garrett
fe37353663 * Fix preferences for languages without a "default" entry in the date options. 2009-06-16 20:53:59 +00:00
Alexandre Emsenhuber
35656218e6 removed unneeded semi-colon 2009-06-16 12:37:44 +00:00
Chad Horohoe
9a97ba7bd0 Per code review: call allowPropChange() directly, and only reference the deprecated methods if they're available, this way if someone _has_ implemented these, they will still get their desired results. Removed them so A) We don't encourage people to use them, and B) We don't fool ourselves with is_callable() 2009-06-11 23:35:34 +00:00
Alexandre Emsenhuber
54ebc9c590 Fix for r51667: external diff is also controlled by $wgUseExternalEditor (see includes/diff/DifferenceEngine.php line 107). $wgExternalDiffEngine is used to change the difference engine's backend (wikidiff, wikidiff2, ...) and not to allow users to have their own difference engine. 2009-06-11 10:49:33 +00:00
Chad Horohoe
249645867e Oartial revert of r50809. Call the old method names for b/c. 2009-06-09 23:59:42 +00:00
Chad Horohoe
cba211ee3f (bug 19112) Preferences now respects $wgUseExternalEditor, $wgExternalDiffEngine. Patch by jidanni. 2009-06-09 23:01:00 +00:00
Andrew Garrett
77bac0d25e Fix default check for preferences 2009-06-09 17:32:33 +00:00
Siebrand Mazeland
38ca12aa82 * replace some use of deprecated makeKnownLinkObj() by link() in core
* use array type parameter instead of string to escapeLocalUrl(), getFullURL() and getFullUrl() for readability
* add FIXME in Parser.php and LogEventsList.php where I didn't know how to replace makeKnownLinkObj by link()
* return type for private method Skin::editUrlOptions() changed from string to array
* some code readability improvements

Linking this to r51559 for CodeReview as there is some discussion there, and these changes are very similar.

Todo: core special pages
2009-06-07 15:02:12 +00:00
Andrew Garrett
8819185e28 Revert r51128, and its follow-up revisions r51129, r51130, r51390.
Commit message was: "* (bug 18958) Added ability to disable entire variant conversion engine per user preferences (languages with language converter class only)"
Reverted because of multiple issues on CodeReview, notably:
* Unexplained rename of a configuration variable, with no backwards-compatibility code.
* Suspected parser cache pollution.
* Variant tabs flip-flop with parser cache misses and hits.
* Hacky implementation: changing configuration variables on the fly is almost always a bad idea, unless you are writing a configuration extension.
* Implementation of default is done as a special case in code accessing the preference, rather than by adding an entry to $wgDefaultUserOptions.
2009-06-04 09:48:11 +00:00
Andrew Garrett
4d96067489 Add extra toggles from $wgContLang->getExtraUserToggles() to preferences, under i18n 2009-06-03 16:45:03 +00:00
Andrew Garrett
f37979bcca Fix logic error involving interpretation of result from validate() method, causing bug 18763 "Unable to save preferences after switching language" and possibly others. 2009-06-03 09:38:36 +00:00
Robert Stojnić
fbe4a5ab5f New search option:
* new option to search all namespaces: searcheverything
* add a switch ($wgSearchEverythingOnlyLoggedIn) to limit this option only to logged-in users, this way one 
  can set different default values of this option for logged-in and logged-out (disabled by default)
2009-05-31 16:46:52 +00:00
Shinjiman
9952b3f25d * (bug 18958) Added ability to disable entire variant conversion engine per user preferences (languages with language converter class only) 2009-05-28 18:13:52 +00:00
Robin Pepermans
45e9b032ec Update per r50782:
* Remove all $wgAllowRealName, check $wgHiddenPrefs instead
* Make $wgAllowUserSkin obsolete too, check $wgHiddenPrefs instead
* And also only call globals if really needed, and remove unused globals
2009-05-24 12:09:15 +00:00
Siebrand Mazeland
7b25513557 Fix special page case 2009-05-24 09:23:40 +00:00
Niklas Laxström
12de0ff83d Revert a bit of too much escaping 2009-05-22 14:35:23 +00:00
Niklas Laxström
d3b61fea7c Escaping fixes 2009-05-22 09:35:48 +00:00
Siebrand Mazeland
114f75b577 Follow-up to r50869:
* added messages for advanced preferences to prevent reuse and allow customisation per preference tab
* add colon to 'timezonelegend' for consistency
* update 'prefs-help-recentchangescount'
* remove label 'dateformat'; not needed
* remove unused 'timezoneselect'
* update messages.inc
* rebuild language files
2009-05-21 21:56:02 +00:00
Trevor Parscal
22dd9849b7 Moved top-level preferences into sub-categories to improve UI consistency. 2009-05-21 20:25:03 +00:00
Chad Horohoe
c458e633de (bug 18761) Add setting to hide a list of preferences. 2009-05-19 17:07:46 +00:00
Chad Horohoe
9b3711e58b Per code review: Redo these allowBlah() functions (except allowPasswordChange) into a general allowPropChange(), update Preferences to use this. Checked extensions in SVN using AuthPlugin and none have implemented any of the allow*() functions, so nothing should break. 2009-05-19 16:23:58 +00:00
Chad Horohoe
15cd4ffcf5 Rm unused $wgLang and some trailing whitespace. 2009-05-17 00:09:30 +00:00
Chad Horohoe
d13e10a0a1 Don't need to use $wgUser, isValidEmailAddr() is static. 2009-05-15 16:43:09 +00:00
Siebrand Mazeland
547858b7fe Use link() instead of deprecated makeLinkObj() where possible. 2009-05-08 23:24:31 +00:00
Chad Horohoe
1f18e8b35c (bug 9219) Auth plugins can control editing RealName/Email/Nick preferences. Based on patch by MrPete. 2009-05-01 01:27:22 +00:00
Andrew Garrett
5e358ff84a Fix alignment of prefs buttons in standard and cologneblue 2009-04-29 00:01:47 +00:00
Andrew Garrett
0fd51b7e40 Uncommitted stuff still in my working copy:
* Logic for disabling email fields for unauthenticated addresses.
* Remove float styling for fieldsets in preferences form, ugly and annoying.
2009-04-28 23:49:44 +00:00
Siebrand Mazeland
973094184d * move skin preferences to top of rendering tab (eliminating skin tab)
* move math preferences below file preferences in rendering tab
2009-04-28 14:31:58 +00:00
Siebrand Mazeland
6944303d0d * take $defaultPreferences['rememberpassword'] out of section personal/i18n and move it to personal/info below the change password link
* move gender selection to above change password link
2009-04-28 14:00:43 +00:00