I would make it a hidden field on the form and give it a value, like "User".  
The name can be duplicated, it's the username that has to be unique.

 





________________________________
From: Mark Simko <[email protected]>
To: [email protected]
Sent: Mon, May 24, 2010 9:58:15 AM
Subject: [joomla] Removing name field from user registration

I've spent the better part of a weekend tracing through the convoluted mess of 
MVC coding, trying to remove the required name field from the user registration 
component.

There are several recent posts on the Joomla forums looking for a
solution to this exact problem (removing the name field from
registration). There are no posted solutions.

Gary had suggested that I create my own registration form, but there are so 
many links to the registation page throughout the site that I felt this was 
impractical.

I've removed the input field from the form, but the validation process spits 
back a request for the name field to be filled in. I've tried to trace back 
where this gets validated. It looks like somewhere there is a validate.js file, 
but I cannot find it. It is possibly part of mootools.

So now this is what I think I am going to do. I'll go back into the form and 
assign a value for the name field - something generic like 'left blank'. 
However, this is something that may be overwritten with a Joomla update, so it 
would be best to do this as a template override if possible.

Any thoughts on template overrides? Where to put it, how to structure it.

 Any thoughts on the original track, which was to eliminate validation of the 
name field? How it gets requested. Changes that I might be overlooking such as 
in an xml file or class file.

Thanks,
Mark
_______________________________________________
New York PHP SIG: Joomla! Mailing List
http://lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to