Hi,
I want to change the username rules to allow lowercase & underscores ('_'). I was able to change some code in User.php to allow the creation of an account with the new rules. I'm also able to log-in on the new account, but when I try to change the user rights using SpecialPages:UserRights, it just says the username doesn't exist?
Can somehow provide me with a list of all the functions that needs to be changed to fully implement my new rules?
Thanks!
Best regards, Thomas Fogh
PS. As I searched the internet for an answer I saw that the most common change people do to MediaWiki is changing the username rules. Unfortunately all use a very old version of MediaWiki and combine the change with a AuthPlugin using different kinds of databases, so the various modified wikis I found weren't useful for me. Maybe a few options on the username rules when setting up wiki would be helpful to a lot of people...
On 07/03/07, Thomas Fogh thomas_fogh@hotmail.com wrote:
Can somehow provide me with a list of all the functions that needs to be changed to fully implement my new rules?
Be prepared to alter a lot of the code; MediaWiki requires all usernames to be valid page titles, and enforces some assumptions made on those throughout the codebase.
Rob Church
I've wondered about the requirement for uppercase for both page titles and usernames. The former can get overridden with
$wgCapitalLinks =false;
which is important for genetics, where "lacZ" and "LacZ" are not the same thing and "GAL4" and "gal4" are a different pair of things (I didn't make this rule, so don't blame me!).
I also find that when recruiting people who've been using computers a lot they reflexively type all lowercase into the Create and account box. So...what's the reasoning behind the uppercase first letter rule? It seems more like something that Microsoft word would do...perhaps because I'm often annoyed at Word for doing the same thing. ===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
On Mar 7, 2007, at 3:22 AM, Rob Church wrote:
On 07/03/07, Thomas Fogh thomas_fogh@hotmail.com wrote:
Can somehow provide me with a list of all the functions that needs to be changed to fully implement my new rules?
Be prepared to alter a lot of the code; MediaWiki requires all usernames to be valid page titles, and enforces some assumptions made on those throughout the codebase.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jim Hu wrote:
I also find that when recruiting people who've been using computers a lot they reflexively type all lowercase into the Create and account box. So...what's the reasoning behind the uppercase first letter rule?
So you won't scream and yell when your username doesn't work on the other wikis without the full-case-sensitive option, but instead transparently works everywhere (due to the automatic uppercasing).
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
n Mar 9, 2007, at 9:46 AM, Brion Vibber wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jim Hu wrote:
I also find that when recruiting people who've been using computers a lot they reflexively type all lowercase into the Create and account box. So...what's the reasoning behind the uppercase first letter rule?
So you won't scream and yell when your username doesn't work on the other wikis without the full-case-sensitive option, but instead transparently works everywhere (due to the automatic uppercasing).
OK, that sort of makes sense. But I was actually wondering why this was chosen to be the setup way back in mediawiki history, before they changed the water. Not asking you to change it...just wondering.
Jim
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF8XMowRnhpk1wk44RArOoAKCTFoGuaSyPCOh0fQ0CVAvdxG8augCgpclM Ve3sXZL1G+474y0fS/r97iw= =mI0b -----END PGP SIGNATURE-----
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jim Hu wrote:
OK, that sort of makes sense. But I was actually wondering why this was chosen to be the setup way back in mediawiki history, before they changed the water. Not asking you to change it...just wondering.
Usernames are a subset of page titles, as they have always been.
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
So...what's the reasoning behind the uppercase first letter rule?
So you don't have to remember whether the article starts with a capital letter of a lowercase letter when linking to it. In cases where it makes a big difference (eg. your genetics example), it would be good to have it otherwise, but in most cases it just means lots of redirects from the lowercase form to the uppercase (or visa versa).
mediawiki-l@lists.wikimedia.org