6 years ago
2
Topic

Hello!

I'm using Joomla 3.7 with Seblod 3.11 . And I would like to change the type of field used to mark the user groups in the user form.

For my website, this field will be a dynamic select configured according to the attached image.


But when registering a new user it always writes the user type as 'registered' in the user_usergroup_map table, even though I choose the type 'administrator' for it.

How do I write the user group corretona table 'user_usergroup_map'?

Hug!

Get a Book for SEBLOD
4229 Posts
Kadministrator
6 years ago
1
Level 1

You need to use the defualt field as there are multiple tables involved. 

Other way to do it is to use code pack -  afterStore event to set the right values in user_usergroup_map , but that requires a working knowledge of php and mysql.

6 years ago
0
Level 2

I just bought the 'code pack' plugin, could someone help me with PHP and MySQL code.


Obrigado!

Get a VIP membership