New users see an empty forum

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
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
PoulJ
Registered User
Posts: 33
Joined: Thu Nov 14, 2019 3:00 pm

New users see an empty forum

Post by PoulJ »

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
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: New users see an empty forum

Post by david63 »

It sounds like a permission problem. Are you putting the users in the Registered Users group?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
PoulJ
Registered User
Posts: 33
Joined: Thu Nov 14, 2019 3:00 pm

Re: New users see an empty forum

Post by PoulJ »

Yes - same group_id as all other registered users (non-admins).

/Poul
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: New users see an empty forum

Post by david63 »

Do a permissions trace on one of the new users to see if there is a problem
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28619
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: New users see an empty forum

Post by Paul »

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.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: New users see an empty forum

Post by Mick »

Any particular reason you can’t use ACP Add User?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "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
PoulJ
Registered User
Posts: 33
Joined: Thu Nov 14, 2019 3:00 pm

Re: New users see an empty forum

Post by PoulJ »

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.


Cheers
/Poul
Post Reply

Return to “phpBB Custom Coding”