Suggestion: Ban message integration

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Suggestion: Ban message integration

Re: Suggestion: Ban message integration

by axew3 » Sat Mar 07, 2020 1:07 am

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.

Re: Suggestion: Ban message integration

by axew3 » Tue Mar 03, 2020 1:02 pm

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.

Suggestion: Ban message integration

by Dysphoria » Tue Mar 03, 2020 11:46 am

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?

Top