Extensions Database 3.2 / 3.3 / 4.0 ⇒ 3.3 & 4.0 Delete Inactive Users

3.2 & 3.3 & 4.0
User avatar

eunaumtenhoid
Users
Users
Posts: 68
Joined: Oct 14th, '16, 03:10

Re: Delete Inactive Users

Post by eunaumtenhoid »

Yeah lol ty for ext

Brazilian Portuguese translation by eunaumtenhoid [2019][ver 1.0.1]
https://github.com/phpBBTraducoes/deleteinactiveusers
Last edited by eunaumtenhoid on Aug 9th, '19, 15:07, edited 2 times in total.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6815
Joined: Jan 13th, '14, 20:45

Re: Delete Inactive Users

Post by dmzx »

eunaumtenhoid wrote: Aug 9th, '19, 15:01 yeah lol ty for ext

Brazilian Portuguese translation by eunaumtenhoid [2019][ver 1.0.1]
https://github.com/phpBBTraducoes/deleteinactiveusers
nice :thumbup:

User avatar

eunaumtenhoid
Users
Users
Posts: 68
Joined: Oct 14th, '16, 03:10

Re: Delete Inactive Users

Post by eunaumtenhoid »

DOUBT
deleting the user will delete his posts too?
could have an option to avoid that

User avatar

ivailo95
Donator
Donator
Posts: 945
Joined: Feb 2nd, '18, 11:04

Re: Delete Inactive Users

Post by ivailo95 »

eunaumtenhoid wrote: Aug 9th, '19, 15:20 DOUBT
deleting the user will delete his posts too?
could have an option to avoid that
there is an option when deleting user thro the ACP
Image
Feed like a disease
And bring them to their knees
They'll pay for their deceit

User avatar

eunaumtenhoid
Users
Users
Posts: 68
Joined: Oct 14th, '16, 03:10

Re: Delete Inactive Users

Post by eunaumtenhoid »

Dude what does this have to do with the extension ??

User avatar

ivailo95
Donator
Donator
Posts: 945
Joined: Feb 2nd, '18, 11:04

Re: Delete Inactive Users

Post by ivailo95 »

eunaumtenhoid wrote: Aug 9th, '19, 18:05 dude what does this have to do with the extension ??
you said
eunaumtenhoid wrote: Aug 9th, '19, 15:20 DOUBT
deleting the user will delete his posts too?
could have an option to avoid that
here is the option to avoid it

User avatar

eunaumtenhoid
Users
Users
Posts: 68
Joined: Oct 14th, '16, 03:10

Re: Delete Inactive Users

Post by eunaumtenhoid »

Man i'm talking about an option in this extension and not in the default phpbb sisteam :guns:

User avatar

ivailo95
Donator
Donator
Posts: 945
Joined: Feb 2nd, '18, 11:04

Re: Delete Inactive Users

Post by ivailo95 »

eunaumtenhoid wrote: Aug 9th, '19, 22:38 man i'm talking about an option in this extension and not in the default phpbb sisteam :guns:
well..as you can see there is no option about it..

User avatar

martin
Admin
Admin
Posts: 5144
Joined: Apr 6th, '14, 14:12

Re: Delete Inactive Users

Post by martin »

Not tested but if a user with a post count is deleted his posts should stay in place also his name but with no link to the profile.
Image

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6815
Joined: Jan 13th, '14, 20:45

Re: Delete Inactive Users

Post by dmzx »

First post updated

User avatar

stone23
Users
Users
Posts: 46
Joined: Nov 7th, '18, 16:44

Re: Delete Inactive Users

Post by stone23 »

Hello,
There is a problem with the language in the notification email: the message is translated but the date remains in English.

In my opinion, the line 144 in the file deleteinactiveusers/cron/deleteinactiveusers_prune.php could be the source of the problem :

Code: Select all

						'REGISTER_DATE'	=> date('g:ia \o\n l jS F Y', $value['regdate'])
Can you watch so that the date appears in the user's language?

Thanks

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6815
Joined: Jan 13th, '14, 20:45

Re: Delete Inactive Users

Post by dmzx »

stone23 wrote: Oct 10th, '19, 11:03 Hello,
There is a problem with the language in the notification email: the message is translated but the date remains in English.

In my opinion, the line 144 in the file deleteinactiveusers/cron/deleteinactiveusers_prune.php could be the source of the problem :

Code: Select all

						'REGISTER_DATE'	=> date('g:ia \o\n l jS F Y', $value['regdate'])
Can you watch so that the date appears in the user's language?

Thanks
Yes you are correct with the date.

try this, but i did not test it just a quick thought, if it works let me know:

Code: Select all

$messenger->assign_vars([
						'USERNAME'		=> htmlspecialchars_decode($value['name']),
						'REGISTER_DATE'	=> $this->user->format_date($value['regdate'], false, true),
					]);

User avatar

stone23
Users
Users
Posts: 46
Joined: Nov 7th, '18, 16:44

Re: Delete Inactive Users

Post by stone23 »

Thank you for the answer. I test and I'll let you know.
Last edited by stone23 on Oct 29th, '19, 08:31, edited 1 time in total.

User avatar

stone23
Users
Users
Posts: 46
Joined: Nov 7th, '18, 16:44

Re: Delete Inactive Users

Post by stone23 »

I tested the code but the registration date does not appear in the notification email. it does not match

User avatar

stone23
Users
Users
Posts: 46
Joined: Nov 7th, '18, 16:44

Re: Delete Inactive Users

Post by stone23 »

Hello,
No idea?