[CDB] [3.2][3.3] Userreminder

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Dezdan
Registered User
Posts: 197
Joined: Thu Apr 17, 2003 8:18 pm

Re: [3.2][3.3][RC] Userreminder

Post by Dezdan »

Hey Mike,

The forgot password URL sent in the first email is not working. It resolves in a 404: http://www.domain.com/ucp.php?mode=sendpassword

Did it Change with 3.3? I can get http://www.domain.com/forum/app.php/user/forgot_password to work.
User avatar
Mike-on-Tour
Registered User
Posts: 560
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][RC] Userreminder

Post by Mike-on-Tour »

Have you set the variables Server protocol, Domain name and (if your forum is within a subdirectory of your server root, which it seems to be) Script path (ACP -> "GENERAL" tab -> "Server settings") since these are used to build this link.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
Dezdan
Registered User
Posts: 197
Joined: Thu Apr 17, 2003 8:18 pm

Re: [3.2][3.3][RC] Userreminder

Post by Dezdan »

Mike-on-Tour wrote: Mon Jul 20, 2020 11:21 amHave you set the variables Server protocol, Domain name and (if your forum is within a subdirectory of your server root, which it seems to be) Script path (ACP -> "GENERAL" tab -> "Server settings") since these are used to build this link.
Yes, but they are not forced.
sERVERsETTINGS.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
Mike-on-Tour
Registered User
Posts: 560
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][RC] Userreminder

Post by Mike-on-Tour »

Neither are mine and since your settings are correct I checked the code. And it is really embarrassing but the script path wasn't included :oops:
I attach a corrected file, please upload it to /ext/mot/userreminder
I'm sorry for any inconvenience you may have encountered.
You do not have the required permissions to view the files attached to this post.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
Dezdan
Registered User
Posts: 197
Joined: Thu Apr 17, 2003 8:18 pm

Re: [3.2][3.3][RC] Userreminder

Post by Dezdan »

Mike-on-Tour wrote: Mon Jul 20, 2020 3:48 pmNeither are mine and since your settings are correct I checked the code. And it is really embarrassing but the script path wasn't included :oops:
I attach a corrected file, please upload it to /ext/mot/userreminder
I'm sorry for any inconvenience you may have encountered.
No worries. Does this file contain the multiple email fix as well?
User avatar
Mike-on-Tour
Registered User
Posts: 560
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][RC] Userreminder

Post by Mike-on-Tour »

Yes, it does. This fix is already part of my local GitHub repository. I'm still looking for a solution to mh254's problem which I would like to include into the official version as well.
And I will look into your thought about limiting the number of emails, but this may take a while because I give priority to mh254's problem.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
Dezdan
Registered User
Posts: 197
Joined: Thu Apr 17, 2003 8:18 pm

Re: [3.2][3.3][RC] Userreminder

Post by Dezdan »

No worries! Thanks for considering it! I know the other user reminder ext has that, and to me that is a big sell.

Also, for the second email, does the ext send that email automatically? If so, timing wise, when does it send it? All of the second emails for that day at once? Or at the exact same time when the first email was sent?
User avatar
Mike-on-Tour
Registered User
Posts: 560
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][RC] Userreminder

Post by Mike-on-Tour »

The selection to send emails automatically is for both emails. The second one will be sent as soon as a user logs into your board if the number of days you defined between the first and the second mail multiplied by 86400 seconds (number of seconds in 24 hours) has lapsed. If for example three first mails were sent on July 10, 2020 at 20:12:12 Hours and you set a time of 10 days between first and second mail then if somebody logs in on July 20, 2020 after 20:12:12 Hours the the three users will get the second mail.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
Dezdan
Registered User
Posts: 197
Joined: Thu Apr 17, 2003 8:18 pm

Re: [3.2][3.3][RC] Userreminder

Post by Dezdan »

As an FYI, after about the 5th email to yahoo users in a one hour period, yahoo puts your IP on a temporarily ban for about ~4 hours. In that time, ANY emails sent to yahoo users (new registrations, notifications, reset password, etc.) do not bounce back and do not go through. So if someone doesn't have access to server email reports, they have no idea that emails did not go through.
SMTP error from remote mail server after pipelined MAIL FROM:<[email protected]> SIZE=2590: 421 4.7.0 [TSS04] Messages from 23.254.xxx.xxx temporarily deferred due to user complaints - 4.16.55.1; see https://help.yahoo.com/kb/postmaster/SLN3434.html
This error indicates Yahoo is seeing unusual traffic from your IP address and/or that emails from your mail server are generating complaints from Yahoo Mail users.
This is the reason I asked for an hourly limit email setting.
JJGV
Registered User
Posts: 19
Joined: Fri Mar 06, 2020 3:04 pm
Location: The Netherlands

Re: [3.2][3.3][RC] Userreminder

Post by JJGV »

First of all, thanks for this extension, exactly the thing I needed!

I have the same issue as Dezdan, when several user get reminded, it's not sent to each individually, but is sent 3 times with every user in to:
I use SMTP on my board, and BCC my admin mailbox to check the mails are sent. Or should I use the boards mail function?

And is it possible to add remind zeroposters and sleepers automatically? That is something I really can use. So that would be great. :D

BTW, I'm translating the extension into Dutch ;)
User avatar
Mike-on-Tour
Registered User
Posts: 560
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][RC] Userreminder

Post by Mike-on-Tour »

Good news that you like this extension. :D
Regarding your problem with multiple mails to the same user: The common.php file I've posted for download here should do the trick (it did at least for Dezdan).

I thought I did it here but apparently it was on phpbb.de that I gave the reasons why sleepers and zeroposters are not reminded: If somebody registers and after activation never comes back to login at least once I assume there is no real interest in the forum, so why remind him? Same with zeroposters, these are obviously persons who seek a single piece of information and after having found it lost interest and if they don't come back after 70 days (which is my setting) I do assume that he/she has no longer any interest.

And thanks for your translation, I'm looking forward to it.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
JJGV
Registered User
Posts: 19
Joined: Fri Mar 06, 2020 3:04 pm
Location: The Netherlands

Re: [3.2][3.3][RC] Userreminder

Post by JJGV »

Ah okay, thanks, missed the common.php. downloaded it, and will keep a check on the progress.

I think it's a bit board specific regarding sleepers en zeroposters.
My board is for people that lost their wife/husband at a young age and want to talk about their grief. So our board is very dependent on people writing and sharing stories. So we want to encourage people to write and help others and themselves. If no one writes anything and only read, the board is doomed to die out. Most thing are only readable if you are a member, due to privacy.

Regarding the sleepers, we activate the accounts by admin approval due to the nature of the board, and it would be nice that we could remind them that the account has been activated, still not logged in after 30 days, then auto delete.

But hey, it's your choice ;) It would be a nice feature, but if I'm the only one using it, it's pointless to put the work into it, I understand.

I will post the translations asap when I have the time to translate them.
JJGV
Registered User
Posts: 19
Joined: Fri Mar 06, 2020 3:04 pm
Location: The Netherlands

Re: [3.2][3.3][RC] Userreminder

Post by JJGV »

Hi!, here are the dutch (NL) translations, they are not 100% perfect grammatically I imagine, but they will do the trick. ;)

info_acp_mot_userreminder.php:

Code: Select all

<?php
/**
*
* @package UserReminder v1.2.0
* @copyright (c) 2019, 2020 Mike-on-Tour
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
	'PLURAL_RULE'		=> 1,
	// Module
	'CONFIRM_USER_DELETE'						=> array(
		1	=> 'Weet je zeker dat je 1 gebruiker wilt verwijderen??<br><br><strong>Deze actie verwijderd de gebruiker permanent uit de database en kan niet worden teruggedraaid!</strong>',
		2	=> 'Weet je zeker dat je %d gebruikers wilt verwijderen??<br><br><strong>Deze actie verwijderd de gebruikers permanent uit de database en kan niet worden teruggedraaid!</strong>',
	),
	'NO_USER_SELECTED'							=> 'Je hebt geen enkele gebruiker geselecteerd voor deze actie, markeer tenminste 1 gebruiker.',
	'USER_DELETED'								=> array(
		1	=> '1 gebruiker succesvol verwijderd',
		2	=> '%d gebruikers succesvol verwijderd',
	),
	'USER_REMINDED'								=> array(
		1	=> 'Herinnering email verstuurd naar 1 gebruiker',
		2	=> 'Herinnering email verstuurd naar %d gebruikers',
	),
	'USER_POSTS'								=> 'Berichten',
	'DAYS_AGO'									=> 'Aantal dagen geleden',
	'AT_DATE'									=> 'Op',
	'MARK_REMIND'								=> 'Herinner',
	'MARK_DELETE'								=> 'Verwijder',
	'REMIND_MARKED'								=> 'Herinner gemarkeerden',
	'LOG_INACTIVE_REMIND_ONE'					=> '<strong>Eerste herinnering naar inactieve gebruikers gestuurd</strong><br>» %s',
	'LOG_INACTIVE_REMIND_TWO'					=> '<strong>Tweede herinnering naar inactieve gebruikers gestuurd</strong><br>» %s',
	//ACP
	'ACP_USERREMINDER'							=> 'User reminder',
	'ACP_USERREMINDER_SETTINGS'					=> 'Instelling User Reminder',
	'ACP_USERREMINDER_SETTINGS_EXPLAIN'			=> 'Hier pas je de instellingen aan voor User Reminder.',
	'ACP_USERREMINDER_SETTING_SAVED'			=> 'Instellingen User Reminder succesvol opgeslagen.',
	'ACP_USERREMINDER_TIME_SETTINGS_TITLE'		=> 'Stel de herinnerings intervallen in',
	'ACP_USERREMINDER_TIME_SETTING_TEXT'		=> 'Stel het aantal dagen in waarna een gebruiker als inactief gezien word, het aantal dagen tussen het eerste ne tweede herinneringsmailtje om de gebruiker te herinneren dat inloggen noodzakelijk is, en de periode totdat de gebruiker verwijderd word.<br>Je kunt ook gebruikers opgeven die beschermd zijn tegen herinneringen en verwijderen.',
	'ACP_USERREMINDER_INACTIVE'					=> 'Aantal dagen dat een gebruiker offline is voordat deze al inactief gezien word',
	'ACP_USERREMINDER_DAYS_REMINDED'			=> 'Aantal dagen voordat een gebruiker als inactief  gezien word en een tweede herinnering verstuurd word;<br>
													tweede mail versturen word uitgeschakeld als je "0" invult',
	'ACP_USERREMINDER_AUTOREMIND'				=> 'Verstuur herinneringen automatisch?',
	'ACP_USERREMINDER_DAYS_UNTIL_DELETED'		=> 'Aantal dagen na laatste herinnering voordat een gebruiker verwijderd kan worden',
	'ACP_USERREMINDER_AUTODELETE'				=> 'Verwijder gebruiker automatisch?',
	'ACP_USERREMINDER_PROTECTED_MEMBERS'		=> 'Vul de <i>user_id</i> in van de gebruikers genegeerd moeten worden bij herinneren of verwijderen. Meerdere user ids moeten gescheiden zijn door kommas! ',
	// ACP Mail settings
	'ACP_USERREMINDER_MAIL_SETTINGS_TITLE'		=> 'Email instellingen',
	'ACP_USERREMINDER_EMAIL_BCC_TEXT'			=> 'Stel hier 1 emailadres waar een blind carbon copy of een carbon copy van de herinnerings email naartoe gestuurd word.',
	'ACP_USERREMINDER_EMAIL_BCC'				=> 'Stuur een blind carbon copy naar',
	'ACP_USERREMINDER_EMAIL_CC'					=> 'Stuur een carbon copy naar',
	// ACP Mail text edit
	'ACP_USERREMINDER_MAIL_EDIT_TITLE'			=> 'Pas de email teksten aan',
	'ACP_USERREMINDER_MAIL_EDIT_TEXT'			=> 'Pas hier de standaardtekst aan van de eerste en tweede herinnering email.',
	'ACP_USERREMINDER_MAIL_LANG'				=> 'Kies taal',
	'ACP_USERREMINDER_MAIL_FILE'				=> 'Kies het aan te passen bestand',
	'ACP_USERREMINDER_MAIL_ONE'					=> 'Eerste herinnering',
	'ACP_USERREMINDER_MAIL_TWO'					=> 'Tweede herinnering',
	'ACP_USERREMINDER_MAIL_PREVIEW'				=> 'In het rechtervenster kun je de tekst aanpassen van de gekozen email. Door op de "Voorbeeld" knop te klikken zie je de tekst zoals
													deze te zien is in de email. De tokens worden vervangen door de respectievelijke data. In het voorbeeld is ook een knop om de tekst
													als bestand op de server.<br>
													Je kunt de volgende tokens als placeholders gebruiken voor de respectievelijke data van de gebruiker:<br>
													- {USERNAME}: Nikckname van de gebruiker<br>
													- {LAST_VISIT}: Datum laatste bezoek<br>
													- {LAST_REMIND}: Datum van verstuurde eerste herinnering email<br>
													De volgende tokens kunnen gebruikt worden als placeholders van system data:<br>
													- {SITENAME}: Naam van het forum<br>
													- {FORGOT_PASS}: Link naar "Ik ben mijn wachtwoord vergeten"<br>
													- {ADMIN_MAIL}: Emailadres van de beheerder<br>
													- {EMAIL_SIG}: Handtekening<br>
													- {DAYS_INACTIVE}: Het bovenin gedefinieerde aantal dagen van inactiviteit<br>
													- {DAYS_TIL_DELETE}: Het bovenin gedefinieerde aantal tot verwijderen<br>',
	'ACP_USERREMINDER_MAIL_LOAD_FILE'			=> 'Laad bestand',
	'ACP_USERREMINDER_PREVIEW_TEXT'				=> 'Let op:<br>In het voorbeeld venster worden de tokens vervangen door hun respectievelijke data, dit kan betekenen dat de voorbeeldtekst eventueel onduidelijk onduidelijk kan zijn.',
	'ACP_USERREMINDER_MAIL_SAVE_FILE'			=> 'Opslaan',
	'ACP_USERREMINDER_FILE_NOT_FOUND'			=> 'Kan bestanbd "%s" niet laden!.',
	'ACP_USERREMINDER_FILE_ERROR'				=> 'Er trad een fout op tijdens het opslaan van bestand "%s"!<br>Het bestand is <strong>niet opgeslagen</strong>!',
	'ACP_USERREMINDER_FILE_SAVED'				=> 'Bestand "%s" succesvol opgeslagen.',
	// ACP Reminder
	'ACP_USERREMINDER_REMINDER'					=> 'Herinner gebruikers',
	'ACP_USERREMINDER_REMINDER_EXPLAIN'			=> 'Een lijst van gebruikers die online zijn geweest, gepost hebben maar offline zijn sinds het aantal ingestelde dagen waarin zij als inactief gezien worden.
													Je kunt deze gebruikers handmatig markeren en herinnering emails versturen of verwijderen na de ingestelde periode nadat de 2e herinnering verstuurd is.
													Verwijderen is pas te selecteren als de ingestelde periodes in de instellingen zonder dat de gebruiker minimaal 1 keer ingelogd is geweest.',
	'ACP_USERREMINDER_REMINDER_ONE'				=> 'Eerste herinnering',
	'ACP_USERREMINDER_REMINDER_TWO'				=> 'Tweede herinnering',
	'ACP_USERREMINDER_NO_ENTRIES'				=> 'Geen data beschikbaar',
	'ACP_USERREMINDER_SORT_DESC'				=> 'Oplopend',
	'ACP_USERREMINDER_SORT_ASC'					=> 'Aflopend',
	'ACP_USERREMINDER_KEY_RD'					=> 'Registratie datum',
	'ACP_USERREMINDER_KEY_LV'					=> 'Laatste bezoek',
	'ACP_USERREMINDER_KEY_RO'					=> '1e herinnering',
	'ACP_USERREMINDER_KEY_RT'					=> '2e herinnering',
	'ACP_USERREMINDER_REGISTERED_ONLY'			=> 'Sleepers',
	'ACP_USERREMINDER_REGISTERED_ONLY_EXPLAIN'	=> 'Een lijst van gebruikers die nooit online zijn geweest na registratie en activatie.',
	// ACP Zeroposters
	'ACP_USERREMINDER_ZEROPOSTER'				=> 'Zeroposters',
	'ACP_USERREMINDER_ZEROPOSTER_EXPLAIN'		=> 'Een lijst van gebruikers die regelmatig online zijn maar nooit iets gepost hebben.',
));
reminder_one.txt

Code: Select all

Onderwerp: {SITENAME}: We missen je!

Hallo {USERNAME},

Je was op {LAST_VISIT} op ons forum {SITENAME}.
Dat is alweer even geleden en we willen je laten weten dat we hopen je weer snel te zien en wat van je te horen.

Mocht je je inloggegevens vergeten zijn, dan kun je ze altijd achterhalen via de volgende link.

{FORGOT_PASS}

Je kunt natuurlijk ook altijd contact opnemen met de beheerder van het forum via dit e-mailadres: {ADMIN_MAIL}

We hopen je snel weer te zien!

{EMAIL_SIG}
reminder_two.txt

Code: Select all

Onderwerp: {SITENAME}: We missen je nog steeds!

Hallo {USERNAME},

Op {LAST_REMIND} heb je een herinneringsmail van ons ontvangen omdat je meer dan {DAYS_INACTIVE} dagen op {SITENAME} bent geweest.
Sindsdien hebben we je helaas nog steeds niet gezien op {SITENAME}.
We hopen dat je niet de interesse hebt verloren in ons forum, en hopen je snel weer te zien!

Mocht je je inloggegevens vergeten zijn, dan kun je ze altijd achterhalen via de volgende link.

{FORGOT_PASS}

Je kunt natuurlijk ook altijd contact opnemen met de beheerder van het forum via dit e-mailadres: {ADMIN_MAIL}

Als je niet binnen {DAYS_TIL_DELETE} dagen inlogt op het forum dan word je account verwijderd zonder tegenbericht.

We hopen je snel weer te zien!

{EMAIL_SIG}
User avatar
Mike-on-Tour
Registered User
Posts: 560
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][RC] Userreminder

Post by Mike-on-Tour »

Hi JJGV,
thanks for the Dutch language pack and don't mind any grammar errors since I wouldn't notice anyways :D
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
Mike-on-Tour
Registered User
Posts: 560
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][RC] Userreminder

Post by Mike-on-Tour »

I have just submitted version 1.2.1 for validation, it is available through the download link in the original post.

Changes include the fixes to the problems MH254 and Dezdan reported as well as a number of changes and fixes necessary for validation. The download package does contain a CHANGELOG.md file which lists all changes, fixes and additions in more detail.

Please note that the minimum phpBB version is 3.2.6 due to the usage of $language instead of $user->lang, to prevent accidental installation on boards with a smaller version a ext.php file was added to check the phpBB version and terminate installation/enabling if a version <3.2.6 is detected.

Since the funcionality isn't improved (no new functions) it is not necessary to update if your current version is operating without faults. ;)
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image

Return to “Extensions in Development”