Notifications
Clear all

Usergroups assigned at registration

10 Posts
3 Users
0 Reactions
319 Views
Posts: 5
Topic starter
(@saustin123)
Active Member
Joined: 3 weeks ago

I am attempting to find a way to automatically assign a new member to either usergroup A or usergroup B at registration based on their answer to the "Job Title" question on the registration form (I have the user custom fields plugin). At this time, all new members are being assigned to one default usergroup regardless of the "Job Title" option chosen.


Topic Tags
9 Replies
Sofy
Posts: 5643
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Hi,

Please note, all questions related to paid addons should be asked in the gVectors.com forum. Here, we only support issues related to the free wpForo plugin.

The wpForo User Custom Fields addon's support forum: https://gvectors.com/forum/wpforo-user-custom-fields/


Reply
Posts: 5
Topic starter
(@saustin123)
Active Member
Joined: 3 weeks ago

I spent about 2 hours working with WP to see what the issue was and if they could help me find where I could make this change. There seems to be a default setting in the wpForo settings that forces all new registrations into only one usergroup, regardless of what I do in the User Custom Fields addon.


Reply
1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5643

@saustin123 

You can create secondary usergroups using job titles such as Job Title 1, Job Title 2, and so on.
Then, add these fields to the registration form using the wpForo User Custom Fields addon. This way, users will be able to choose their secondary usergroups during registration.

Using this setup, you can easily control forum access and usergroup permissions.

You can find the related information below:

 


Reply
Posts: 5
Topic starter
(@saustin123)
Active Member
Joined: 3 weeks ago

I have done this. I have followed all steps to correctly set up all usregroups, secondary usergroups, registration form, ACF addon, and forum permission to reach my goal. There is a breakdown I am not able to correct to add new members to the Job Title 2 usergroup. All new registrations are only added to Job Title 1.


Reply
2 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5643

@saustin123 

Could you please leave the URL of your forum?

Also, please provide us with some screenshots of the settings you've made, or record a video where we can see all settings related to Usergroups, forum accesses, and the registration page.


Reply
(@saustin123)
Joined: 3 weeks ago

Active Member
Posts: 5
Robert
Posts: 10604
Admin
(@robert)
Support Team
Joined: 10 years ago

Hi @saustin123 ,

I don't see why you think the "Job Title" field should change the user group of a registered user. What kind of field is the "Job Title"? It could be either drop-down or Secondary usergroups, but it cannot be Primary usergroups.

Please read the Primary and Secondary usergroups difference here: https://gvectors.com/using-secondary-usergroups-in-wpforo-wordpress-forum-plugin/

There is no way to set different primary usergroups on registration. The usergroup of user is being set based on WordPress setting New User Default Role which is located in Dashboard > Settings > General admin page of WordPress not wpForo. The setting allows you to select a User Role which will be used by wpForo to assign Usergroup based on User Role <> Usergroup synchronization. As far as I see you have created Subscriber  usergroups and it's synched with Subscriber User Role that's why your new users will get Subscriber usergroups but they will have another usergroup as a secondary group which can be seen in Edit User screen in WordPress Dashboard > Users admin page.


Reply
2 Replies
(@saustin123)
Joined: 3 weeks ago

Active Member
Posts: 5

@robert

As I have been reviewing the usergroup, user role, and access permissions, I contacted WordPress directly to ask a few questions. As wpForo and gVectors build addons and plugins that are compatible with WordPress, I am sure you are aware of what I found out. WordPress has a default usergroup selection that can not be turned off. I asked about how I can work around my issue. They said it is something that the User Field Manager should be designed to work with the WordPress default. They are not sure why it would either not be functioning correctly or not have the capability to work around the WordPress default.

What I am attempting to do is simply have the person registering for the forum be placed into one of two usergroups based on the "Job Title" they select at registration. As in the screenshots above, I am forced to choose the "Job Title" preset and customize which usergroup the registrant selects. From what I see in the User Fields Manager, "Job Title" is supposed to place the registrant in the "usergroup" selected, thus I expected this option to automatically add the registrant to the usergroup selected instead of dumping everyone in the WordPress default group. WordPress Support stated this is a common function for addons/plugins fulfilling the same or similar roles as the User Fields Manager. Since it is an advertised function for the Use Field Manager and was the only reason I purchased the addon for my forum, it would be nice to find a resolution to my problem.


Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5643

@saustin123 

First of all, please note that you should not allow everyone to choose high-level user group permissions from the frontend. In this case, anyone would be able to access your dashboard and potentially cause damage. Please configure the Cans/Permissions carefully.

Regarding your configuration, it appears that you have added the Usergroups field on the registration page using the wpForo Custom Fields add-on. Instead, you should add the “User Groups Secondary” field.

Again, please be careful and do not allow regular users to access your forum dashboard. This is not recommended.

 


Reply