Commit graph

84 commits

Author SHA1 Message Date
Happy-melon
958adc77aa Fix encoding broken in r63707 2010-03-13 20:49:34 +00:00
Happy-melon
a6e0553747 Add $wgAllowUserCssPrefs option to disable CSS-based preferences. These are injected by a 'stylesheet' /w/index.php?title=-&action=raw&gen=css, which is ~20 times slower to get out to the browser than a normal stylesheet. If you don't care about your users too much, getting rid of these options can dramatically improve page load times.
Also, update monobook/main.css to actually offer the redlink colour that's been seen on wikipedia since forever.  It's only when you turn off this per-user styling stuff that you realise that it's been overriding a different colour since September 2004 :D
2010-03-13 20:46:22 +00:00
Alexandre Emsenhuber
fa55964d72 * (bug 22747) "Reveal my e-mail address in notification e-mails" preference is now only displayed when relevant 2010-03-06 20:49:19 +00:00
Ilmari Karonen
39b2ba062d followup to r63300: add links to /common.css & /common.js to preferences 2010-03-06 20:42:35 +00:00
Aryeh Gregor
2e29d785da Spell variables correctly 2010-02-28 19:34:23 +00:00
Alexandre Emsenhuber
21e953c65c * (bug 22606) The body of e-mail address confirmation message is now different when the address changed 2010-02-27 20:22:56 +00:00
Tim Starling
0781f6f3aa Fix r62774 in a different way. 2010-02-22 10:48:30 +00:00
Siebrand Mazeland
178c0e11a5 Partially revert r62774 to prevent PHP Notice: Undefined variable: wgUser in includes/Preferences.php on line 212 2010-02-21 17:28:13 +00:00
Domas Mituzas
77d49e1cef remove duplicate global definitions 2010-02-21 17:03:25 +00:00
Chad Horohoe
aa42646054 (bug 17947) Use current date/time on Special:Preferences rather than Wikipedia day. It has been pointed out that an arbitrary date can be confusing for users on a different calendar system. Wikipedia day is cute, but not useful. 2010-02-12 01:12:52 +00:00
Andrew Garrett
83d7e61373 Reverse removal of Live Preview in r59446, with the following changes:
* Make Live Preview entirely JS-based. It requires no modification of the HTML.
* Replace annoying slideDown with less annoying fadeIn().
* Ensure that elements not supposed to be shown are not, in fact, shown by fadeIn().
* Remove some redundant lines of code.
* Make compatible with the current jQuery usage in MediaWiki.
2010-02-09 07:39:09 +00:00
Tim Starling
7688101426 Removed JS2 work (has been moved to the js2-work branch). Has been lightly tested, should mostly work. Some of the more complicated associated changes are listed below.
* Reverted HttpFunctions.php to r45549 and renamed wgSyncHTTPTimeout back to wgHTTPTimeout
* Edited out the asynchronous features from UploadFromUrl. Made fetchFile() use the curlCopy() function from new-upload r47811 instead of Http::doDownload(). Wrote my own URL validity check to avoid having to use either of the two buggy precedents.
* Removed UploadFromChunk
* Removed chunk upload and background status from ApiUpload.php
* Reverted r54669, use of addScriptClass()
* Left getHeadScripts() in its current location (OutputPage) instead of moving it back to SkinTemplate, just added wikibits.js to it to replace the removed addCoreScripts2Top()
2009-11-26 12:00:36 +00:00
Jure Kajzer
08331dc572 reverted; somehow the global defaults got mangeled. Trying to find out where. 2009-10-23 08:24:28 +00:00
Jure Kajzer
63f6267a58 changed def. gender to unknown. 2009-10-22 17:02:15 +00:00
Jure Kajzer
699c9270e0 Added default value for gender and editfont to avoid Global default invalid message. 2009-10-22 16:48:43 +00:00
Raimond Spekking
8853b80263 Consistency tweak: Reduce the length of these input field and make them consistent with other input fields for numeric values 2009-10-15 20:31:19 +00:00
Raimond Spekking
7b897be9ae Consistency tweak: coalesce tool links with pipes instead of a lot () () () 2009-10-08 19:35:24 +00:00
Siebrand Mazeland
f854edfe87 New permission 'sendemail' added. Default right for all registered users. Can for example be used to prevent new accounts from sending spam.
* hide some user settings if user is not allowed to send e-mail, but can receive e-mail
* update API 'cannot send e-mail' message
* FIXME: gives 'mailnologin'/'mailnologintext' as error. Error handling should be made more fine grained
2009-09-26 23:11:45 +00:00
Aryeh Gregor
b716b2e971 Reformat comment
<3 vim Ctrl-V
2009-08-23 20:09:59 +00:00
Brion Vibber
8737795ba0 Revert r54585 "Fix bug 19261 by saving the username as the signature if it is submitted empty"
Looks like the base problem is that empty is being interpreted as "put empty in the sig" instead of as "use default sig" at signature replacement time.
We shouldn't be saving the username into preferences if it hasn't been explicitly typed; if the user changes their name, they should automatically pick up the new value.
2009-08-19 02:33:04 +00:00
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