JuWi wrote:
> Hi all,
>
> I'd appreciate your help: I'd like to add a message to the account
> creation form. The message contains an internal link, it should appear
> right above the submit button.
>
> The hook I tried is $template->addInputItem, although no interaction is
> actually needed. The problem is that whatever way I try to output the
> message, the link appears as plain text.
>
> This is what I did:
> $wgHooks['UserCreateForm'][] = 'efAddTerms';
> function efAddTerms (&$template) {
> $template->addInputItem( 'terms', false, 'checkbox', 'Create-terms' );
> return true;
> }
> Create-terms is the system-message containing the link.
>
> Could someone please show me how to do this?
>
> Thanks in advance
> Mirko

Try using $template->set( 'extrafields', $field ); You can place html there.
See for instance:
http://svn.wikimedia.org/viewvc/mediawiki/branches/wmf/1.17wmf1/extensions/CentralAuth/CentralAuthPlugin.php?r1=75040&r2=75041&;


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to