Closed veryard closed 5 years ago
Just tried this. 1) All bans end today (well, at least permanent ones, I only have those). 2) Ban reason is missing. 3) Ban source is always "MyBB Engine". 4) Several "Guest" accounts somehow creeped in? Maybe those are deleted users?
I don't mean to be picky, of course, just trying to help too.
Just tried this.
- All bans end today (well, at least permanent ones, I only have those).
- Ban reason is missing.
- Ban source is always "MyBB Engine".
- Several "Guest" accounts somehow creeped in? Maybe those are deleted users?
I don't mean to be picky, of course, just trying to help too.
Thanks for the feedback:
ban_reason
not the ban_give_reason
(I'll make it pull the ban_give_reason
if the initial one is empty)phpbb_log
but these can be cleared so im not to sure.I'll get to everything on Sunday.
Thanks, Brad.
I'll keep this as requiring changes until I've had a chance to test, then approve it if it looks like everything works. Thanks for the contribution š
I definitely have an account with both reasons filled in, still comes up empty in MyBB.
I think you're right about the logs. It would be helpful to pull the source from there, but it's not crucial.
Yes, it appears that deleted users can leave lingering bans, db integrity is not enforced. Can probably just skip these:
select count(ban_id) from phpbb_banlist where ban_userid not in (select user_id from phpbb_users);
+---------------+
| count(ban_id) |
+---------------+
| 8 |
+---------------+
Also, there are IP and email bans, ideally they should be transferred as well.
Hello,
Have made changes:
ban_give_reason
if ban_reason
is emptybantime
is now generated based from the phpBB fields ban_start
& ban_end
, treats bans less than one day as a one day ban. (phpBB allows users to be banned for 30 mins, 1 hour etc etc.)
- Also, there are IP and email bans, ideally they should be transferred as well.
I looked into this, looks like MyBB stores these bans in the banfilters
table which is a bit odd considering it all could be done from one table. I'll have to extend the code to do this some where down the line.
Iād be happy with email/IP bans being added at a later date, I think having just standard band would be a big enough improvement on its own.
On 23 Mar 2019, at 02:17, Brad Veryard notifications@github.com wrote:
Hello,
Have made changes:
Reason will pull from ban_give_reason if ban_reason is empty Deleted users or users that do not exist in the users table are ignored. bantime is now generated based from the phpBB fields ban_start & ban_end, treats bans less than one day as a one day ban. (phpBB allows users to be banned for 30 mins, 1 hour etc etc.) Also, there are IP and email bans, ideally they should be transferred as well. I looked into this, looks like MyBB stores these bans in the banfilters table which is a bit odd considering it all could be done from one table. I'll have to extend the code to do this some where down the line.
ā You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Let me know if you need me to fix/update anything.
Brad.
What if the text contains valid tags, though? Code snippets, etc.
What if the text contains valid tags, though? Code snippets, etc.
Sorry, I don't understand what you're saying?
err... that was for the pull for issue #223
err... that was for the pull for issue #223 I see, well phpBB uses BBCodes aswell, so they are code snippets are inside the
[code]
BBCode.