Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.
NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
We extend the PhpBB table phpbb_profile_fields_data with a number of fields to support our membership administration in our club, and this works great.
Among other tasks we can also disable and enable users by updating fields user_inactive_reason and user_inactive_time in table phpbb_users.
Now we want to be able to create a user from the external application, and it sort of works.
The records in tables phpbb_users and hpbb_profile_fields_data are being created, and since we cannot encrypt the password from the external application this is done in the ACP --> Users and groups --> Find the new user --> Change the users password.
The new user can now login but sees an empty forum.
What are we missing here, are there any other tables that must be updated with new user info, or what is controlling this?
tia
/Poul
Last edited by thecoalman on Sun Sep 26, 2021 12:17 pm, edited 1 time in total.
Reason:Moved to Custom Coding
PoulJ wrote: ↑Sun Sep 26, 2021 7:17 am
Yes - same group_id as all other registered users (non-admins).
/Poul
Just.setting the group id in phpbb_users is not enough. You will need to add the user to the phpbb_user_group table as well. Also, it is highly suggested to use the methodes provided by phpbb to add new users, and not directly insert them into the database.
"The good news is hell is just the product of a morbid human imagination.
The bad news is, whatever humans can imagine, they can usually create." - Harmony Cobel
Thanks guys that got me going: adding the user to the phpbb_user_group table.
I plan on automating setting the password in ACP (to be tested whether this is possible).
The reason I would like to avoid using ACP is the possibility to use more unskilled people to add new users, and to avoid using two apps to add a new user as we do now.