Commit graph

196 commits

Author SHA1 Message Date
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
Brion Vibber
724411c7ca * (bug 19784) date option "ISO 8601" produced illegal id
Now running auto-generated id/names for radio group items through Sanitizer::escapeId().
For good measure, also manually checking the input 'name' and 'id' field values for base fields against validation and throwing an exception if we ain't got em.
2009-07-19 16:49:58 +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
Andrew Garrett
e8f73d6e9c Force select-or-other type fields to string values, fixing problem where stub threshold was not being properly loaded into preferences window once saved differently to the default 2009-07-15 16:36:04 +00:00
Andrew Garrett
ecdbf0758f Fix bug in HTMLForm system where "Other" option for timezone was shown twice, reported as bug 19321 2009-07-03 14:06:22 +00:00
Jack Phoenix
0350cffc5f coding style tweaks 2009-06-21 18:26:29 +00:00
Andrew Garrett
0386a9427e Fix for string/int inconsistency in value and option for imagesize, resulting in unintended preference reversion. 2009-06-17 19:08:14 +00:00
Andrew Garrett
9505767893 Reimplement Special:MoveThread with the new HTMLForm interface, fixing several bugs in the process:
* Bug 18949 LiquidThreads allows threads to be moved to pages without LiquidThreads enabled.
* You could move a thread to the page it was already on, which would leave strange placeholders that don't make sense.
* Allowing wikitext in some new places where it makes sense.
2009-05-27 16:11:23 +00:00
Andrew Garrett
d4e61f4e83 * Fix silly PHP annoyance where eauth message was shown on all saves.
* Disable email-related checkboxes when email address is not confirmed
2009-04-28 01:00:35 +00:00
Andrew Garrett
f43bcb7b55 Fix regression in r49790, weird spacing for Gadgets and Skin tab. 2009-04-27 14:18:40 +00:00
Niklas Laxström
b98d0b724f * Wrapping inside <p>' creates too much space in search namespace selesction 2009-04-27 11:45:45 +00:00
Andrew Garrett
9b533ab58c Fix display of inverted check fields in HTML forms -- fixes bug 18581. 2009-04-27 00:55:23 +00:00
Andrew Garrett
6650e6e3a9 Fix ids for multi-select types 2009-04-24 11:11:44 +00:00
Andrew Garrett
8b7f9c3d26 Fix selectorother automatic addition of "other" field -- not switched over for the switching of keys/values 2009-04-24 09:02:21 +00:00
Andrew Garrett
de003a1edc Update HTMLSelectOrOtherField to correctly work, since the code changes of having "nested" options and swapping keys and values 2009-04-24 08:58:19 +00:00
Andrew Garrett
155ddf6de4 Branch merge of preferences work branch. Includes fixes for several bugs. WARNING: Breaks some extensions which have not been adapted to use it properly (basically anything not used on Wikimedia). 2009-04-24 01:31:17 +00:00
Aryeh Gregor
c7c4617484 Various Userrights-related fixes:
* Adjust UserrightsForm so that it inherits from SpecialPage; nuke HTMLForm.  Since this breaks backward compatibility, renamed to UserrightsPage.
* Created SpecialPage::isRestricted() and enforced use of SpecialPage::userCanExecute() instead of hardcoded checks.  These can now be overridden so that more complicated restriction systems work sanely.  Used them for UserrightsPage (fixes bug 12489).
* A few random comment/documentation tweaks.
Also, update Special:Version date.
2008-01-03 23:43:24 +00:00
Rotem Liss
d8887852c0 Removing the function HTMLSelectGroups: no longer used (both Special:Userrights and Special:Makesysop use a function from their class). 2007-08-07 19:52:24 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Antoine Musso
84a27cc33e Some fixes to avoid Xml::element call with null content when we actually want
to open a XML element. It should help fix bug #5312 later on.

* XML attributes rendering now made by private Xml::expandAttributes() method
* Xml::openElement() and Xml::tags() no more rely on Xml::element() with
  a null content.
* Fix wfElement() call with null content when we actually open an element.
2007-05-10 20:51:15 +00:00
Brion Vibber
d27f1953fa Beautify the Special:Userrights form a bit 2007-04-27 15:53:28 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Nick Jenkins
14c53b728f Code housekeeping stuff (and barring any stuff-ups on my behalf, there should be no changes in behaviour whatsoever after this) -
* removing some unused global declarations.
* removing or commenting out or adding comments for unused local vars.
* Adding one or two local var declarations.
* Declaring $matches array passed to preg_match() / preg_match_all() as array() before using [not required, just have a slight preference for the explicitness].
* remove one or two pass-by-reference function declarations where the value is not modified.
* Adding some braces to if-else blocks.
* In Parser.php, stripstrate is now an object rather than an array as per r17820, so we no longer need ask for a reference to it (as in "$x =& $this->mStripState;"), and in fact it's probably just simpler to get rid of $x altogether.
* Moving some preg regexes from "" quoting to '' quoting to stop static analyzer whinging about bad escape sequences.

... up to "LinksUpdate.php" in the includes/ directory.
2006-11-23 08:25:56 +00:00
Brion Vibber
79763d905f * (bug 7188) Fix minor borkage in HTMLForm 2006-09-01 11:33:23 +00:00
Rotem Liss
53f5677da1 Removing an unused function (was used in SpecialGroups.php). 2006-07-23 11:57:54 +00:00
Rotem Liss
6f0d8da544 Removing the obsolete user group management files. 2006-06-24 20:56:08 +00:00
Antoine Musso
473cd5cbcc unused variables as per #3692 2006-05-01 10:53:59 +00:00
Antoine Musso
69689725c1 Switching from phpdoc to doxygen (use less than 32MB of memory).
Run maintenance/mwdocgen.php to generate doc in ./docs/html/ .
2006-04-19 15:46:24 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Brion Vibber
a6d47f47ff Rework the user_groups system, again, into something that seems to actually
more or less work for now.

* user_groups ur_group is now a short string key ('sysop' etc)
* groups table is gone
* user_rights table is gone
* Permissions for groups are for now set in $wgGroupPermissions.
An in-database management system could be re-added in the future
if it's really needed, but for now it's mostly just been screwing
things up.
* Group.php and Special:Groups are deprecated; will probably die.
* User group memberships are set explicitly through addGroup and
removeGroup methods instead of being re-saved on every change to
the user record.

Group keys are migrated from user_rights at upgrade time for older wikis.
The fields in prior 1.5alpha tables were too screwed up and will need to
manually have sysops re-assigned.

The Makesysop extension will need some minor tweaks.
2005-06-09 09:49:10 +00:00
Tim Starling
9bc0985006 fixed Special:Userrights log, and a few other Special:Userrights problems 2005-05-14 05:42:47 +00:00
Tim Starling
f98c133919 Major changes to user groups:
* Added "static groups" feature to remove memcached/DB load time
* Added i18n support, allowing names and descriptions to be optionally drawn from wfMsg/wfMsgForContent
* Fixed Special:Groups, it is now half-decent. Too many changes to list here.
2005-05-01 18:24:20 +00:00
Tim Starling
faef2026c9 Moving Special:Userlevels and Special:Grouplevels to Special:Userrights and Special:Groups respectively. 2005-05-01 12:59:39 +00:00
Antoine Musso
feb72b4162 phpdoc fixes 2005-03-04 08:41:28 +00:00
Antoine Musso
2104f62734 fix phpdoc comment 2005-01-27 19:51:47 +00:00
Antoine Musso
ba4b6af5b5 Implement #858 : split user assignment and group rights. 2005-01-17 11:45:47 +00:00
Antoine Musso
bd46c557ca XHTML fixes 2004-10-24 20:01:23 +00:00
Antoine Musso
fc11eaedaa New userlevel feature. Sysop only, for testing. NO FORM IS VALIDATED : use at your own risks 2004-10-01 15:57:09 +00:00
Jens Frank
d06ec3f12b Documentation: Assign files to packages 2004-10-01 06:25:50 +00:00
Antoine Musso
b6d74c6de1 comments 2004-10-01 03:10:10 +00:00
Antoine Musso
82817746e6 * arraybox() : revert "$value" parameter
* new textareabox()
2004-10-01 03:01:22 +00:00
Antoine Musso
da88c13d76 allow 'value' parameter for array box 2004-10-01 01:16:18 +00:00
Antoine Musso
514120660a typo 2004-09-30 23:48:22 +00:00
Antoine Musso
20b5d4447a removing occurences of sitesettings. Replaced by an internal name. 2004-09-30 23:44:54 +00:00
Antoine Musso
aa487fcf97 class to build forms (c) JeLuF 2004-09-30 22:49:26 +00:00