[Mediawiki-l] MediaWiki:Passwordremindertext adventures...
Jan Steinman
Jan at Bytesmiths.com
Wed Nov 23 17:30:45 UTC 2005
When a user asks for a password reminder, I want to include a nice,
all-inclusive link in the generated email.
I've had good success, except for one quirk in our particular wiki
conventions: all user names are pre-defined as "Firstname Lastname"
-- including the space between the two --, rather than dealing with
the username/realname dichotomy.
So I have the following (in part) in MediaWiki:Passwordremindertext:
You should log in and change your password now, by going to:
{{SERVER}}{{localurl:Special:Userlogin|wpName=$2&wpPassword=
$3&returnto=Special:Preferences}}
But unfortunately, this shows up in email with the space intact
between "Firstname" and "Lastname":
http://www.somesite.org/wiki?title=Special:Userlogin&wpName=Jan
Steinman&wpPassword=qHU5wGG&returnto=Special:Preferences
which is no longer a valid, clickable URL, which sort of defeats the
purpose!
Before you say "RTFM", I've been all over http://meta.wikimedia.org/
wiki/Help:Variable . If there is a better place to get that info, let
me know.
That page says to put "/" between the page name and the query string,
but that results in the following mess:
http://www.ecoreality.org/wiki/Special:Userlogin/%3FwpName%3D%
242%26wpPassword%3D%243%26returnto%3DSpecial:Preferences
which doesn't seem to perform properly when clicked.
Any thoughts?
Oh yea, I think I've discovered a bug: I have account creation turned
off (MW 1.5.2), but in the previous example, you end up with the
account creation fields! (I haven't actually tried to see if it would
actually let an account be created this way.)
:::: Given an infinite source of energy, population growth still
produces an inescapable problem. The problem of the acquisition of
energy is replaced by the problem of its dissipation. -- Garrett Hardin
:::: Jan Steinman <http://www.Bytesmiths.com/Van>
More information about the MediaWiki-l
mailing list