Suggestion: Ban message integration

Dysphoria
User ww
User ww
Posts: 43
Joined: Tue Feb 11, 2020 8:45 am

Suggestion: Ban message integration

Post by Dysphoria »

Unless it's already there and I just didn't see it, I've got a suggestion.
I just tried out banning a test user and I'm glad it kinda blocks users from logging into the wordpress part.
The only thing is, when you try to log in on the wp side, there doesn't come a message. Maybe there's a way to let the ban message from phpBB show up on wordpress?

User avatar
axew3
w3all User
w3all User
Posts: 1932
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Suggestion: Ban message integration

Post by axew3 »

Another important to add is to display a message as well, WHEN IT IS A DEACTIVATED USER!
These two are very important and very easy to be added ...

Are important because if not, also while testing things, deleting users in wp, maybe etc, it's easy to be confused! It is my experience often i note ... i always have to remind me: i deleted in WP it is deactivated in phpBB if i do not delete also in phpBB ... is this user banned!?

Yes, important point, will be fixed on next release, if 2.3.0 do not need to come out suddenly for some urgent reason. So expect this both mentioned, BANNED or DEACTIVATED messages for users ADDED into 2.3.0 or 2.3.1 at max.

User avatar
axew3
w3all User
w3all User
Posts: 1932
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Suggestion: Ban message integration

Post by axew3 »

It has been added (on next 2.3.0) all about to correctly handle in WP, a deactivated/banned user in phpBB.

Only a mention about how the thing work about deactivated/banned phpBB users in WordPress:
If an user has been banned by username or email in phpBB, then when action done by an admin (not sure if it is the same if done by moderator on mcp, not tested), his session also is being removed from database.
Then at this time, if an user is still logged into wordpress and navigating it, will be suddenly logged out and no warning will display, since will be impossible to retrieve user's data (no session will be found).
When same user will try then to login, a message informing about what happen will display: phpBB ban reason msg could be also added as error message in WP, actually as code it is a simple
Notice: your username, IP or email results to be banned into our forum. Please contact an administrator to resolve this issue.
will display, or in case it is deactivated:
Notice: your account results to be deactivated into our forum. Please contact an administrator to resolve this issue.
While if an user deleted in WordPress, then it is deactivated in phpBB without deleting his session (a deleted WP user is ever Deactivated, NOT deleted in phpBB). In this case, the user will be logged out, redirected to login page, and the warning message will display immediately.

*

The w3_phpbb_ban() function, now correctly check for expired bans and handle all phpBB ban possibilities, cleanup unwanted, speedup code execution.
If an user try to login into WordPress and result to be banned or deactivated, it is informed as above explained, and if not existent already,
will NOT be added into WordPress.

2.3.0 is coming (so) soon with more very important fixes!

*
p.s
mhh ... just thinking beside all, if it would not be better to reset any user's phpBB session, when user deleted in wordpress.

I just think it is better to do what phpBB do, so when user deleted in wordpress, it will be deactivated in phpBB, and any session that belong to this user, deleted/removed.

Post Reply