11 Posts
proserven
7 years ago
6
Topic

I would like to add three groups. For example: Registered, Group A, and Group B. There is a user manager that would enable only the users for group A, and a user manager that could only do the same for the group B. 

How can I add both groups in a user per example?, because right now I when I try to add both groups in the user independently, the other group remains out of the #_user_usergroup_map ?

Thanks for all your help.

Get a VIP membership
1283 Posts
Bucklash
7 years ago
1
Level 1

Hi

I think I would create a aelect dynamic field, grab the values required from the db and then using afterstore, loop through the values and update the db per loop

This tut goes someway to helping

create-content-dynamiclly-using-code

11 Posts
proserven
7 years ago
0
Level 2

Thanks a lot Bucklash, 

I actually are doing that, but the situation is, I want to isolate the possibility that one o the managers can change the other manager selection. I want to find a way to add a separated selection in "group" without the possibility on interference from the other manager.

Thanks againg for all your help.

1283 Posts
Bucklash
7 years ago
1
Level 1

Hi

If looping through the values and updating db does mot work then I'm out of ideas, hopefully someone else is better equipped to assist

11 Posts
proserven
7 years ago
0
Level 2

Thanks a lot for your help. I appreciate the effort and time to answer the question.

4229 Posts
Kadministrator
7 years ago
1
Level 1

Probably easiest would be to add 2 fields, e.g. radio buttons, where one field would only be visible to admin a and second to admin b (using one of the restriction plugins e.g. joomla user or group restriciton from acl pack ) and hidden field user groups. Then in beforeStore calculate value of user groups field based on a and b field values.

11 Posts
proserven
7 years ago
0
Level 2

I am working in this idea, Thanks a lot for your help.

Get a Book for SEBLOD