Hi there,
I've recently built my first extension for Mediawiki using the CustomUserCreateForm extension as a base and a bit of the ConfirmEdit extension. My goal was to have a checkbox on the register form for new user where they have to agree to the wiki's terms before they can become users. Using the previous mentioned extensions as a base I succeeded in this, yet I've the feeling the extension could/should use some (probably a lot actually) changes that would make it better.
For instance I replace the php template for the registration of new users with my own, but I have hardcode the link to the terms. I would prefer this to be set by a user of this plugin using a variable instead of forcing them to change a template. Actually I would rather not replace the register php template at all, but just add a new form element to it.
Anyway, I hope some of you have some time to review my work so far and point me in the right direction to do things the mediawiki way :)
The plugin code can found as a zip file on my site: http://www.burobjorn.nl/customUserCreateForm.zip (approx 5Kb)
Looking forward to your feedback and comments,
On Mon, Oct 6, 2008 at 10:51 PM, Burobjorn burobjorn@gmail.com wrote:
For instance I replace the php template for the registration of new users with my own, but I have hardcode the link to the terms. I would prefer this to be set by a user of this plugin using a variable instead of forcing them to change a template. Actually I would rather not replace the register php template at all, but just add a new form element to it.
You can add things to the extraInput member of the data array in order to add extra input elements.
Bryan
wikitech-l@lists.wikimedia.org