NOTE: Force User Field Registration has reached End-of-Life. WordPress 2.6.x will be the last supported version! Read more: http://andrewferguson.net/2008/08/06/force-user-field-registration-end-of-life/
Overview
Forces new users to register additional fields. Available fields are:
- First Name
- Last Name
- Nickname
- AIM screen name
- Yahoo IM screen name
- Jabber/Google Talk user name

Compatibility
- 2.5.*
Warning: This plugin WILL NOT work with version prior to 2.5!
Installation for Regular WordPress
Download the file and put it in your plugins directory.
Activate it.
To configure what fields are required register an account, login to the WordPress Dashboard. Then go to “Options” > “Force User Field Registration”
Known issues:
- There are no known issues.
Installation for WordPress MultiUser
Download the file and put it in your plugins directory.
Activate it.
To configure what fields are required register an account, login to the WordPress Dashboard. Then go to “Options” > “Force User Field Registration”
Known issues:
- There are no known issues with the MU version.
Download
Latest version:
Change Log
0.6
Release Date: 5/19/2008
* Added PHPDoc
* Updated add_action to use inbuilt filter rather then have users add their own
* Update admin UI to 2.5 LnF
* Updated input tag to make it look like native input tags
* Updated fergcorp_forceRegistrationField_updateFields to use passed variable instead of DB query
* Updated error handling in fergcorp_forceRegistrationField_checkFields to use the new WP_Error object (note: this makes WP 2.5 a minimum requirement)
0.6 MU
Release Date: 1/17/2008
Only worked with username-only signups. Now it works with all types of signups.
0.5 MU
Release Date: 1/15/2008
Port of standard WP version to the WPMU platform to accommodate the architecture differences.
Changes include:
Some add_actions were changed to add_filters to take advantage of MU specific filter hooks.
Added a new function to accommodate the differences in WPMU user registration.
Enjoy!
0.5
Release Date: 10/27/2007
Added back end management. This should make it pretty easy to use.
Updated code to take advantage of already established WordPress functions
Removed URL option due to a move in the WP database.
0.11
Release Date: 9/19/2007
Fixed hardcoded database entry and updated homepage link
Hosting switched to separate entity (i.e. no longer under fergcorp directory on svn)
0.1
Release Date: Long time ago
Original release
Hi Andrew,
That sounds great to have such a plugin. It will be much more usable with other plugins indeed !
If yo talk about WordPress 2.5, will you also concider to make this compatible with WordPress MU ?
Thanks for your replies !
In MU version, you should use get_site_option instead of get_option. Or update_site_option.
@Patrick:
What’s the difference between the two? I can’t seem to find a Codex page explaining usage differences.
for update_site_option it’s only saved one data for blog but use for every blog. If you use update_option it’s will saved data for every blog, duplicate data.
[...] Force User Field Registration Overview: Make users enter their name when registering [...]
Andrew, why does this go into the plugins directory of WPMU instead of mu-plugins? I don’t think the regular user should see this in their plugins page (or have the ability to activate/deactivate).
Hey Andrew. Is there any way to set a required value for one of the fields. What I want to do if possible is have a field for a invite key / passcode, which if it is not correct I do not want the registration to go through.
Let me know if you get the chance.
Thanks in advance!
@jonas:
Mostly because I don’t use WPMU and have no idea how it’s typically deployed.
You should be able to put it in this “mu-plugins” folder you speak of without any issues, but I haven’t tested it yet.
@AJ:
There is not a way to do what you want with this plugin. I also don’t believe I will be adding that feature since it lies outside the scope of the plugin.
However, I can’t believe that there’s not a plugin that does what you want already. Have you tried looking?
Thanks for the quick response, Andrew. I put it in mu-plugins, and that does remove it from the plugins tab and it still works, but it still shows up for all users under the options section. I’m trying to figure out how I can remove that, and just set the configuration inside the file itself rather than pulling it from the form on the options page.
To set the configuration–the fields I want, presumably I have to set a variable manually. Is it this one:
$fergcorp_forceRegistrationField_mu_getOptions
Can you show me an example of how to assign to that? Does it take an array or a hash?
Many thanks. I have a deadline tomorrow, so I pray that you have a chance to answer today!
-Jonas
This seems to be working okay. I commented out the part for the options page and made small changes:
$fergcorp_forceRegistrationField_mu_knownFields = array(
“name” => “Name”,
“dog_name” => “Dog Name”,
“cat_name” => “Cat Name”
);
$additionalFields = array(“additionalFields” => array(“name”,”dog_name”, “cat_name”));
add_option(“fergcorp_forceRegistrationField_mu”, $additionalFields);
$fergcorp_forceRegistrationField_mu_getOptions = get_option(“fergcorp_forceRegistrationField_mu”);
That gets it working pretty well. The next thing I need to do is change the user’s profile page so they can edit the new fields.
Thanks for the great plugin!
Hi Andrew,
Another question for you. Each of the fields has a corresponding hidden input field with an identical id attribute. Is there any way to change the way this works, because if there’s a duplicate of id values, then autocomplete won’t work on the page. And for a lot of input values on a registration page, you need autocomplete, because a dropdown is not practical for a larger selection. Autocomplete via something like scriptaculous requires unique IDs. Please help!
Thanks.
Jonas
@jonas:
Are you willing to share this when you fixed it ?
“That gets it working pretty well. The next thing I need to do is change the user’s profile age so they can edit the new fields.”
Would be nice to see if we can get something to work here together.
@jonas:
Sorry I wasn’t able to get back to you sooner. It’s been a busy week. Did you get everything figured out that you needed to?
Thanks, Andrew. Still working on the autocomplete and the profile page. I’m more concerned about the autocomplete, because i’m not sure how to get a unique id if the same id is required for the hidden field. Any suggestion?
mattz,
i’ll post when i get the profile editing bit done.
stay tuned!
[...] 142) Force User Field Registration [...]
Hi Jonas,
I’m looking forward to it !
Do alreaqdy have some BETA code ?
Hey Mattz,
You can try something like this:
http://pastie.caboo.se/171354
That will put the field(s) on the user’s profile page.
Hi Jonas,
Wow, we can start with this indeed.
Do you know if you see the fielddata of the user also when you login as admin to his backend ?
It was filled with the user and empty when I did that as an admin… at least that was the problem that I had with some creature of me
Hiii,
I am having 2.5 version but it is not working in that. Please help…
you know what your doing dude. so make sure that people get this i got this stupid script working but had a so much hard time.. anyways if this was working i wont mind giving you money. good luck.. guys need help with this script.
Looks like there is a slight problem with 2.5. The form fields in the plug-in settings are not visible. I had set up this plugin before upgrading to 2.5 but if I needed to modify it or use it for the firt time, I would not be able to set it up.
I thought Andrew was going to release a new version for 2.5 with some extra features.
I don’t know if he had time yet, he is quite busy.
[...] Force User Field Registration 0.5 » Andrew Ferguson (url) Forces new users to register additional fields [...]
Hi,
I’m using this plugin with WP 2.5.1 and SABRE, and the new registered users on my blog don’t have their fist na name and last name set, as I asked this plugin to do. Is that a bug, you think?
Thanks,
Chris
I hope he updates this plugin soon. I noticed that the extra form fields are not updating in a new users profile. I thought the form fields we simply not visible but now the plugin is all but unusable with 2.5.1
Anyone able to use this plugin with the latest version of WP?
Sorry all for not getting around to updating this sooner. It’s been a rough semester, but I’m almost done. I hope to turn my attention back to developing soon, but school has to come first, sorry guys.
Works for me in 2.5 (I haven’t tried 2.5.1 yet).
I placed the hook (
do_action('fergcorp_forceRegistrationField_hook');) on line 184, just abovewp_new_user_notification($user_id, $user_pass);I suppose CSS issues could be causing the fields to not show under certain conditions.
Thanks for the plugin Andrew.
Just a tip for the MU version:
You can place a call at the top checking to see if the user accessing the menu is the SITE admin, whcih is the master admin guy in an MU install (if is-site_admin).
that way the Site Admin can fiddle with it for registrations and the users can’t access it.
i’ll see if I can have a look at the code and help out specifically for MU.
(get better soon. study hard for those exams.
)
Whit are you making the changes to the fercorp_forceRegistrationField.php ?
I don not see the code you listed above on line 185.
Hello.
I´ve updated to WP 2.5.1 and your plugin doesn´t work.
Do you have some code for 2.5.1?
Registrants who filled aou the applet with name are not shown in the menu of wp.
Thanks for updating the plugin Justin. Looks like it plays nice with 2.5.1 now.
[...] Read more or download it! [...]
As craig noted, version 0.6 is now out and is playing nicely with WP 2.5.*.
Check out the release notes if you have any questions, however I will mention that you do need WP 2.5 or higher in order to use this release. This is due to a new error handling object that WP introduced in WP 2.5. Also, you do not need to modify the wp-login.php file anymore. I found the hook I’ve been looking for (it’s buried about three function calls deep in the WP code from where I was expecting it), so you should just be able to install the plugin, activate it, configure it, and go.
Enjoy!
Will this one also work on the new MU, 1.5 you think ?
@Mattz:
Force User Registration Field v0.6 for regular WordPress will not work with WPMU. WPMU uses a different set of hooks.
Hi Andrew,
But you released a WPMU 0.6 version also ? this one works with the same features as the WP version ?
@Mattz:
The two different versions are not kept in step version wise – which hopefully doesn’t cause too much confusion.
Force User Registration Field for WPMU is already at v0.6, however it has not been updated since January. However, it still works with the most recent release of WPMU.
Hi Andrew,
In regards to the required field errors…
On my development server (Apache with PHP 5) I get the errors when the plugin fields are not filled in.
On the live server (Microsoft IIS 5 with PHP 4.3.11) I am able to submit the form with empty fields (only username and email prompt errors).
Any idea where I can start to trouble shoot this?
Thanks
@Ryan:
What error are you getting? What version of WP are you using?
Andrew,
That’s the problem – I don’t get any “required” errors if the extra fields are not filled in. So a user registering is able to submit if the fields are empty (only the username and email get checked for empty fields), but this is only happening on the IIS server (PHP 4), not Apache (PHP 5).
I am using wordpress 2.5.1 (latest) and the latest version of your plugin.
The only major difference I can see between the two servers that would cause this is the version of PHP running on the IIS server. I know there is not too much code in your plugin, but is it supposed to work with PHP 4.3.11?
Thanks
hi Andrew, i use this in mu it works on the register page, now how to get it show in the user page (get_option? is there anyway to hook in the user page? I had add a few field ie phone, and 2nd email.
tq
any chance of captcha integration (those little deformed words)??
ie: http://recaptcha.net/resources.html
Thank You!
@travis:
Captcha’s are not within the scope of the plugin. I’d suggest using another plug, such as Skullbit’s Register Plus (http://wordpress.org/extend/plugins/register-plus/).
[...] For better or for worse, this is the End-of-Life announcement for Force User Field Registration. [...]
@Everyone:
Force User Field Registration is going End-of-Life: http://andrewferguson.net/2008/08/06/force-user-field-registration-end-of-life/
[...] Force User Field Registration Forces new users to register additional fields such as First & Last name, etc. [...]
[...] 213 Force User Field Registration [...]
[...] 270 © Force User Field Registration Üyelik panelinde İsim soyisim belirlenmesini sağlar. [...]
[...] The user based is the same user base and WordPress is using. This totally removes the frustration for the user having to log in twice and remembering several passwords. (Not sure to which extend the additional user attributes offered in Simple:Press Forum will be able to replace the extra fields I already have in place using this plugin.) [...]
A user sent me an email:
I did run into a problem with the registration process. WPMU allows you to sign up for a blog when you register, and when that happened, all the extra registration info evaporated. I eventually figured out that you can make it stick around by adding a hook to the ‘signup_blogform’ filter and making a bunch of hidden input fields containing the information there.
[...] 新的 WP User Registration 集成了 Force User Field Registration 的功能, [...]
[...] Force User Field Registration – Forces new users to register additional fields. As a WordPress admin, it is nice to know that your website’s members are human. [...]
Hey i use this plugin on my site but i have a few problems with it. Id didnt have the same style as the other fields so i took your style code out and fixed the tab index thing, but even though the code looks exactly the same as the other fields on the page, it doesnt render it right. (check out my pages registration page.
@Aaron
Please read the end of life notice as mentioned above: http://andrewferguson.net/2008/08/06/force-user-field-registration-end-of-life/
Hi,
I am trying to install you plugin but i am facing some problem.
In admin it shows that it has been activated while in user section it don’t display.
Kindly help me its urgent for me.
Thanks
Devendra
As stated on the top of the page, Force User Field Registration has reached the end of it’s life and is no longer supported. For more information, see http://andrewferguson.net/2008/08/06/force-user-field-registration-end-of-life/
Hi,
I am trying to implement add_ajax_login_widget() function but unable to do this.
Kindly help me.
Thanks
Devendra
@Devendra,
As I already said, the plugin has reached the end of its life. This means that I am no longer developing this program or offering support.
If you would like to hire me to help you with this problem, my rates are very reasonable.
I edited the code for the plugin to get the input fields to look exactly like the ones that WP provides — the ones this plugin generates don’t match. Within the tag
input type="text"use this inline CSS:style="font-size: 20px; width: 97%; height: 29px; padding: 3px; margin-right: 6px; margin-bottom:15px; background-color: #fbfbfb; border: solid 1px #dfdfdf;"Trying to edit the plugin to add “Unit Type” and “District” as fields.
Unit Type needs a drop down: Pack, Troop, Crew, At-Large
District needs a drop down: District A, B, C, etc, and Other Council
Is that possible? Can you help?
Please see the note at the top of this page:
If you’re interested in hiring me to write some code for you, send me an email.
[...] Force User Field Registration: forces users to register with additional fields (full name, email address, etc). I’m not a fan of stupid user names, so this plugin was good for me in that sense. [...]
[...] Dagon Design and Andrew Ferguson – These two sites have plugins that I currently installed on my wordpress blog. I used both the [...]